Top |
GtkWidget * | gimp_int_option_menu_new () |
void | gimp_int_option_menu_set_history () |
gboolean | (*GimpIntOptionMenuSensitivityCallback) () |
void | gimp_int_option_menu_set_sensitive () |
GtkWidget * | gimp_option_menu_new () |
GtkWidget * | gimp_option_menu_new2 () |
void | gimp_option_menu_set_history () |
gboolean | (*GimpOptionMenuSensitivityCallback) () |
void | gimp_option_menu_set_sensitive () |
void | gimp_menu_item_update () |
void | gimp_toggle_button_sensitive_update () |
GtkWidget * | gimp_pixmap_button_new () |
void | gimp_unit_menu_update () |
GtkWidget * gimp_int_option_menu_new (gboolean menu_only
,GCallback menu_item_callback
,gpointer menu_item_callback_data
,gint initial
);
gimp_int_option_menu_new
is deprecated and should not be used in newly-written code.
Convenience function to create a GtkOptionMenu or a GtkMenu. This
function does the same thing as the deprecated function
gimp_option_menu_new2()
, but it takes integers as item_data
instead of pointers, since that is a very common case (mapping an
enum to a menu).
menu_only |
|
|
menu_item_callback |
The callback each menu item's "activate" signal will be connected with. |
|
menu_item_callback_data |
The data which will be passed to |
|
initial |
The |
|
... |
A |
void gimp_int_option_menu_set_history (GtkOptionMenu *option_menu
,gint item_data
);
gimp_int_option_menu_set_history
is deprecated and should not be used in newly-written code.
Iterates over all entries in a GtkOptionMenu and selects the one with the
matching item_data
. Probably only makes sense to use with a GtkOptionMenu
that was created using gimp_int_option_menu_new()
. This function does the
same thing as gimp_option_menu_set_history()
, but takes integers as
item_data
instead of pointers.
option_menu |
A GtkOptionMenu as returned by |
|
item_data |
The |
gboolean (*GimpIntOptionMenuSensitivityCallback) (gint item_data
,gpointer callback_data
);
GimpIntOptionMenuSensitivityCallback
is deprecated and should not be used in newly-written code.
void gimp_int_option_menu_set_sensitive (GtkOptionMenu *option_menu
,GimpIntOptionMenuSensitivityCallback callback
,gpointer callback_data
);
gimp_int_option_menu_set_sensitive
is deprecated and should not be used in newly-written code.
Calls the given callback
for each item in the menu and passes it the
item_data and the callback_data
. The menu item's sensitivity is set
according to the return value of this function. This function does the
same thing as gimp_option_menu_set_sensitive()
, but takes integers as
item_data
instead of pointers.
option_menu |
a GtkOptionMenu as returned by |
|
callback |
a function called for each item in the menu to determine the the sensitivity state. |
|
callback_data |
data to pass to the |
GtkWidget *
gimp_option_menu_new (gboolean menu_only
);
gimp_option_menu_new
is deprecated and should not be used in newly-written code.
Convenience function to create a GtkOptionMenu or a GtkMenu.
GtkWidget * gimp_option_menu_new2 (gboolean menu_only
,GCallback menu_item_callback
,gpointer menu_item_callback_data
,gpointer initial
);
gimp_option_menu_new2
is deprecated and should not be used in newly-written code.
Convenience function to create a GtkOptionMenu or a GtkMenu.
menu_only |
|
|
menu_item_callback |
The callback each menu item's "activate" signal will be connected with. |
|
menu_item_callback_data |
The data which will be passed to |
|
initial |
The |
|
... |
A |
void gimp_option_menu_set_history (GtkOptionMenu *option_menu
,gpointer item_data
);
gimp_option_menu_set_history
is deprecated and should not be used in newly-written code.
Iterates over all entries in a GtkOptionMenu and selects the one
with the matching item_data
. Probably only makes sense to use with
a GtkOptionMenu that was created using gimp_option_menu_new()
or
gimp_option_menu_new2()
.
option_menu |
A GtkOptionMenu as returned by |
|
item_data |
The |
gboolean (*GimpOptionMenuSensitivityCallback) (gpointer item_data
,gpointer callback_data
);
GimpOptionMenuSensitivityCallback
is deprecated and should not be used in newly-written code.
void gimp_option_menu_set_sensitive (GtkOptionMenu *option_menu
,GimpOptionMenuSensitivityCallback callback
,gpointer callback_data
);
gimp_option_menu_set_sensitive
is deprecated and should not be used in newly-written code.
Calls the given callback
for each item in the menu and passes it the
item_data and the callback_data
. The menu item's sensitivity is set
according to the return value of this function.
option_menu |
a GtkOptionMenu as returned by |
|
callback |
a function called for each item in the menu to determine the the sensitivity state. |
|
callback_data |
data to pass to the |
void gimp_menu_item_update (GtkWidget *widget
,gpointer data
);
gimp_menu_item_update
is deprecated and should not be used in newly-written code.
void
gimp_toggle_button_sensitive_update (GtkToggleButton *toggle_button
);
gimp_toggle_button_sensitive_update
is deprecated and should not be used in newly-written code.
use g_object_bind_property()
instead of using the
"set_sensitive" and "inverse_sensitive" data pointers.
If you attached a pointer to a GtkWidget with g_object_set_data()
and
the "set_sensitive" key to the GtkToggleButton, the sensitive state of
the attached widget will be set according to the toggle button's
"active" state.
You can attach an arbitrary list of widgets by attaching another "set_sensitive" data pointer to the first widget (and so on...).
This function can also set the sensitive state according to the toggle button's inverse "active" state by attaching widgets with the "inverse_sensitive" key.
GtkWidget * gimp_pixmap_button_new (gchar **xpm_data
,const gchar *text
);
gimp_pixmap_button_new
is deprecated and should not be used in newly-written code.
Convenience function that creates a GtkButton with a GimpPixmap and an optional GtkLabel.
xpm_data |
The XPM data which will be passed to |
|
text |
An optional text which will appear right of the pixmap. |
void gimp_unit_menu_update (GtkWidget *widget
,gpointer data
);
gimp_unit_menu_update
is deprecated and should not be used in newly-written code.
use GimpUnitComboBox instead.
This callback can set the number of decimal digits of an arbitrary number
of GtkSpinButton's. To use this functionality, attach the spinbuttons
as list of data pointers attached with g_object_set_data()
with the
"set_digits" key.
See gimp_toggle_button_sensitive_update()
for a description of how
to set up the list.
widget |
A GimpUnitMenu. |
|
data |
A pointer to a GimpUnit variable which will store the unit menu's value. |