[prev in list] [next in list] [prev in thread] [next in thread]
List: gtk-app-devel
Subject: Re: Fake pushing a GTK+ button
From: Mike Melanson <mike () multimedia ! cx>
Date: 2007-05-22 18:45:12
Message-ID: 46533A38.3030108 () multimedia ! cx
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic