Re: GtkButton set pressed



On Thu, Jun 16, 2005 at 02:14:57PM +0100, y g wrote:
I was looking the API documentation of the GtkButton
(http://developer.gnome.org/doc/API/2.0/gtk/GtkButton.html) and I
cannot find a function to set the button pressed or released like
gtk_toggle_button_set_mode() of a toggle button.
(http://developer.gnome.org/doc/API/2.0/gtk/GtkToggleButton.html#gtk-toggle-button-set-mode).

gtk_toggle_button_set_mode() affects appearance of radio and
check buttons.  What it should do with normal buttons?

The method to set pressed/released state is called
gtk_toggle_button_set_active() and it makes little sense for
normal buttons.  You can emit a click on normal button with
gtk_button_clicked().

Yeti


--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]