| Top |
| GtkActionGroup * | action-group | Read / Write |
| gboolean | always-show-image | Read / Write / Construct |
| GIcon * | gicon | Read / Write |
| gboolean | hide-if-empty | Read / Write |
| gchar * | icon-name | Read / Write |
| gboolean | is-important | Read / Write |
| gchar * | label | Read / Write |
| gchar * | name | Read / Write / Construct Only |
| gboolean | sensitive | Read / Write |
| gchar * | short-label | Read / Write |
| gchar * | stock-id | Read / Write |
| gchar * | tooltip | Read / Write |
| gboolean | visible | Read / Write |
| gboolean | visible-horizontal | Read / Write |
| gboolean | visible-overflown | Read / Write |
| gboolean | visible-vertical | Read / Write |
GtkAction * gtk_action_new (const gchar *name,const gchar *label,const gchar *tooltip,const gchar *stock_id);
Since: 2.4
void gtk_action_set_sensitive (GtkAction *action,gboolean sensitive);
Since: 2.6
void gtk_action_set_visible (GtkAction *action,gboolean visible);
Since: 2.6
GtkWidget * gtk_action_create_icon (GtkAction *action,GtkIconSize icon_size);
Since: 2.4
GtkWidget *
gtk_action_create_menu_item (GtkAction *action);
Since: 2.4
GtkWidget *
gtk_action_create_tool_item (GtkAction *action);
Since: 2.4
void gtk_action_connect_proxy (GtkAction *action,GtkWidget *proxy);
gtk_action_connect_proxy has been deprecated since version 2.16 and should not be used in newly-written code.
Use gtk_activatable_set_related_action() instead.
Since: 2.4
void gtk_action_disconnect_proxy (GtkAction *action,GtkWidget *proxy);
gtk_action_disconnect_proxy has been deprecated since version 2.16 and should not be used in newly-written code.
Use gtk_activatable_set_related_action() instead.
Since: 2.4
void
gtk_action_connect_accelerator (GtkAction *action);
Since: 2.4
void
gtk_action_disconnect_accelerator (GtkAction *action);
Since: 2.4
void
gtk_action_block_activate (GtkAction *action);
gtk_action_block_activate is deprecated and should not be used in newly-written code.
Since: 2.16
void gtk_action_block_activate_from (GtkAction *action,GtkWidget *proxy);
gtk_action_block_activate_from has been deprecated since version 2.16 and should not be used in newly-written code.
activatables are now responsible for activating the action directly so this doesnt apply anymore.
Since: 2.4
void gtk_action_unblock_activate_from (GtkAction *action,GtkWidget *proxy);
gtk_action_unblock_activate_from has been deprecated since version 2.16 and should not be used in newly-written code.
activatables are now responsible for activating the action directly so this doesnt apply anymore.
Since: 2.4
gboolean
gtk_action_get_always_show_image (GtkAction *action);
Since: 2.20
void gtk_action_set_always_show_image (GtkAction *action,gboolean always_show);
Since: 2.20
const gchar *
gtk_action_get_accel_path (GtkAction *action);
Since: 2.6
void gtk_action_set_accel_path (GtkAction *action,const gchar *accel_path);
Since: 2.4
GClosure *
gtk_action_get_accel_closure (GtkAction *action);
Since: 2.8
void gtk_action_set_accel_group (GtkAction *action,GtkAccelGroup *accel_group);
Since: 2.4
void gtk_action_set_label (GtkAction *action,const gchar *label);
Since: 2.16
void gtk_action_set_short_label (GtkAction *action,const gchar *short_label);
Since: 2.16
const gchar *
gtk_action_get_short_label (GtkAction *action);
Since: 2.16
void gtk_action_set_tooltip (GtkAction *action,const gchar *tooltip);
Since: 2.16
void gtk_action_set_stock_id (GtkAction *action,const gchar *stock_id);
Since: 2.16
void gtk_action_set_icon_name (GtkAction *action,const gchar *icon_name);
Since: 2.16
void gtk_action_set_visible_horizontal (GtkAction *action,gboolean visible_horizontal);
Since: 2.16
gboolean
gtk_action_get_visible_horizontal (GtkAction *action);
Since: 2.16
void gtk_action_set_visible_vertical (GtkAction *action,gboolean visible_vertical);
Since: 2.16
gboolean
gtk_action_get_visible_vertical (GtkAction *action);
Since: 2.16
void gtk_action_set_is_important (GtkAction *action,gboolean is_important);
Since: 2.16
“action-group” property“action-group” GtkActionGroup *
The GtkActionGroup this GtkAction is associated with, or NULL (for internal use).
Flags: Read / Write
“always-show-image” property“always-show-image” gboolean
Whether the image will always be shown.
Flags: Read / Write / Construct
Default value: FALSE
Since: 2.20
“hide-if-empty” property“hide-if-empty” gboolean
When TRUE, empty menu proxies for this action are hidden.
Flags: Read / Write
Default value: TRUE
“icon-name” property“icon-name” gchar *
The name of the icon from the icon theme.
Flags: Read / Write
Default value: NULL
Since: 2.10
“is-important” property“is-important” gboolean
Whether the action is considered important. When TRUE, toolitem proxies for this action show text in GTK_TOOLBAR_BOTH_HORIZ mode.
Flags: Read / Write
Default value: FALSE
“label” property“label” gchar *
The label used for menu items and buttons that activate this action.
Flags: Read / Write
Default value: NULL
“name” property“name” gchar *
A unique name for the action.
Flags: Read / Write / Construct Only
Default value: NULL
“sensitive” property“sensitive” gboolean
Whether the action is enabled.
Flags: Read / Write
Default value: TRUE
“short-label” property“short-label” gchar *
A shorter label that may be used on toolbar buttons.
Flags: Read / Write
Default value: NULL
“stock-id” property“stock-id” gchar *
The stock icon displayed in widgets representing this action.
Flags: Read / Write
Default value: NULL
“tooltip” property“tooltip” gchar *
A tooltip for this action.
Flags: Read / Write
Default value: NULL
“visible” property“visible” gboolean
Whether the action is visible.
Flags: Read / Write
Default value: TRUE
“visible-horizontal” property“visible-horizontal” gboolean
Whether the toolbar item is visible when the toolbar is in a horizontal orientation.
Flags: Read / Write
Default value: TRUE
“visible-overflown” property“visible-overflown” gboolean
When TRUE, toolitem proxies for this action are represented in the toolbar overflow menu.
Flags: Read / Write
Default value: TRUE
Since: 2.6
“visible-vertical” property“visible-vertical” gboolean
Whether the toolbar item is visible when the toolbar is in a vertical orientation.
Flags: Read / Write
Default value: TRUE
“activate” signalvoid user_function (GtkAction *action, gpointer user_data)
Flags: No Recursion
Since: 2.4