From gtk-app-devel Tue May 22 18:45:12 2007 From: Mike Melanson Date: Tue, 22 May 2007 18:45:12 +0000 To: gtk-app-devel Subject: Re: Fake pushing a GTK+ button Message-Id: <46533A38.3030108 () multimedia ! cx> X-MARC-Message: https://marc.info/?l=gtk-app-devel&m=117985954103085 danielg RHCE wrote: > I'm pulling my hair out over something that I believe should be easy but I > cannot see it. > > I have a program that has your basic set of buttons, windows, switches and > adjustables. I have added a listener to tell me if a directory has been added > to or changed. The printf statement works great and says, "Directory changed" > at all the right times and is silent at all the right other times. > > All I wanted to do was to refresh the directory listing inside the program, > unfortunately, I don't know the data structure it uses to create the directory > tree. > > Easy enough, right? All I have to do is tell the program that the refresh > button has been clicked whenever the directory changes. > > No, I don't know enough to know what to put in this post to help, but I've got > the code and I do have a decent idea how to read it, ask all the questions you > like, I'll be happy to answer. I'm stuck. Perhaps gtk_button_pressed() is what you are looking for? http://developer.gnome.org/doc/API/2.0/gtk/GtkButton.html#gtk-button-pressed "Emits a GtkButton::pressed signal to the given GtkButton." There's also one for a clicked signal; not sure about the diff. -- -Mike Melanson _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list