which solves the problem. But I have not noticed any other gtkdialog result processing that does that.

I assume the the "OK" is only a confirmation that the invocation did not fail, but a failure would probably output a message to stderr. Or would it?
Richard

The problem is with using RETVALS=`gtkdialog` is that you're going to catch everything sent to stdout including whatever programs you are running from within your gtkdialog application. Where does that "OK" come from? Something that your application is executing is responsible for that.

I'll tell you how it works: every widget that has a <variable> directive will be printed to stdout on application exit unless you use <variable export="false">. So do you actually want to evaluate everything or is there something in particular?

" | grep =" is going to remove lines such as "OK" which is good.

Do people actually use this method of capturing all of stdout? I don't think it's very common.

See this Frisbee post because I mentioned this before and I saw that peebee had changed the code.

Today I worked on the files within examples/miscellaneous and tested them with my /bin/sh linking to /bin/dash. I found a problem with the operation of the progressbar in the show_and_hide example with nonsensical gdk error messages, a non-showing window and I even had an empty window. All of these problems disappear when my /bin/sh links to /bin/bash, so I'm going to recommend that you try symlinking your /bin/sh to /bin/bash and then try your menu example again. Don't forget to symlink /bin/sh back to dash once you've finished. Im just throwing in suggestions -- maybe it'll help isolate the problem.

Yesterday I tried gtkdialog in Linux Mint 14 and the menus are working! Since it is ubuntu-based I kinda was expecting to come across the same issue but luckily I didn't. This led me to think that maybe something was wrong with my ubuntu config so I ran a clean install in virtualbox but still the menus and menubars aren't showing. So apparently there's some kind of incompatibility with 12.04.1 LTS. I am downloading version 12.10 now, I'll bring you the results in a couple of hours.

...
Is it possible to make a menu without menuitems so that it may do something when I click rather than display a bunch of options?
...
Also, can you include more than one condition in an action? Are there special operators to do so?

No and no. I've only just added support for conditions within actions but it can be expanded later. I'm currently working towards making an 0.8.3 source package release so I'm not planning on adding any more new features.

EDDIE_THE_HEAD wrote:

Nope. No menus in Ubuntu 12.10 either... It is starting to drive me crazy. I guess I'll have to switch to Mint for the moment

Ok, so what's the difference between your set-up and somebody else's? You said that you were using VirtualBox, therefore you have a host operating system with VirtualBox and then you're installing and running Ubuntu within a virtual machine.

What else? Ubuntu 12.04 uses Unity on top of GTK+ 3 therefore either it comes with GTK+ 2 too or you've installed it.

I'd like to discover why you can't see the menubar but I can't set-up a test environment like yours.

Do you have other GTK+ 2 apps written in C on your computer that have a menubar with menuitems? I can write a very simple program in C that has a menubar and one menuitem and I'll just copy and paste the code out of gtkdialog so it's all done in the same way and then you can test it.

November 16th r472 I connected-up the realize signal since it was half way there anyway but I experienced an instability later on because something was NULL that I wasn't expecting so I fixed it on November 30th r483, therefore I would recommend that if somebody has a version of gtkdialog that is r472 to r482 inclusive then they might want to consider upgrading to the latest version.

I'm all done with adding features to gtkdialog for the moment and am only hanging around making sure any potential problems are resolved, so what's in SVN now (r493) is pretty much what the next source package release is going to be although I'm trying to complete an example application before I release.

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot vote in polls in this forumYou cannot attach files in this forumYou can download files in this forum