gtk/gtk.symbols new function to get an action's accel_closure (Fixes
2005-06-10 Michael Natterer <mitch@imendio.com> * gtk/gtk.symbols * gtk/gtkaction.[ch] (gtk_action_get_accel_closure): new function to get an action's accel_closure (Fixes #141750 and #148106).
This commit is contained in:
parent
181da436d4
commit
e4384dcadb
@ -1,3 +1,9 @@
|
|||||||
|
2005-06-10 Michael Natterer <mitch@imendio.com>
|
||||||
|
|
||||||
|
* gtk/gtk.symbols
|
||||||
|
* gtk/gtkaction.[ch] (gtk_action_get_accel_closure): new function
|
||||||
|
to get an action's accel_closure (Fixes #141750 and #148106).
|
||||||
|
|
||||||
2005-06-10 Matthias Clasen <mclasen@redhat.com>
|
2005-06-10 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* gdk/gen-keyname-table.pl: Generate N_() calls for
|
* gdk/gen-keyname-table.pl: Generate N_() calls for
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
2005-06-10 Michael Natterer <mitch@imendio.com>
|
||||||
|
|
||||||
|
* gtk/gtk.symbols
|
||||||
|
* gtk/gtkaction.[ch] (gtk_action_get_accel_closure): new function
|
||||||
|
to get an action's accel_closure (Fixes #141750 and #148106).
|
||||||
|
|
||||||
2005-06-10 Matthias Clasen <mclasen@redhat.com>
|
2005-06-10 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* gdk/gen-keyname-table.pl: Generate N_() calls for
|
* gdk/gen-keyname-table.pl: Generate N_() calls for
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
2005-06-10 Michael Natterer <mitch@imendio.com>
|
||||||
|
|
||||||
|
* gtk/gtk.symbols
|
||||||
|
* gtk/gtkaction.[ch] (gtk_action_get_accel_closure): new function
|
||||||
|
to get an action's accel_closure (Fixes #141750 and #148106).
|
||||||
|
|
||||||
2005-06-10 Matthias Clasen <mclasen@redhat.com>
|
2005-06-10 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* gdk/gen-keyname-table.pl: Generate N_() calls for
|
* gdk/gen-keyname-table.pl: Generate N_() calls for
|
||||||
|
@ -138,6 +138,7 @@ gtk_action_create_menu_item
|
|||||||
gtk_action_create_tool_item
|
gtk_action_create_tool_item
|
||||||
gtk_action_disconnect_accelerator
|
gtk_action_disconnect_accelerator
|
||||||
gtk_action_disconnect_proxy
|
gtk_action_disconnect_proxy
|
||||||
|
gtk_action_get_accel_closure
|
||||||
gtk_action_get_accel_path
|
gtk_action_get_accel_path
|
||||||
gtk_action_get_name
|
gtk_action_get_name
|
||||||
gtk_action_get_proxies
|
gtk_action_get_proxies
|
||||||
|
@ -1491,6 +1491,25 @@ gtk_action_get_accel_path (GtkAction *action)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* gtk_action_get_accel_closure:
|
||||||
|
* @action: the action object
|
||||||
|
*
|
||||||
|
* Returns the accel closure for this action.
|
||||||
|
*
|
||||||
|
* Since: 2.8
|
||||||
|
*
|
||||||
|
* Returns: the accel closure for this action. The returned closure is
|
||||||
|
* owned by GTK+ must and not be unrefed or modified.
|
||||||
|
*/
|
||||||
|
GClosure *
|
||||||
|
gtk_action_get_accel_closure (GtkAction *action)
|
||||||
|
{
|
||||||
|
g_return_val_if_fail (GTK_IS_ACTION (action), NULL);
|
||||||
|
|
||||||
|
return action->private_data->accel_closure;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* gtk_action_set_accel_group:
|
* gtk_action_set_accel_group:
|
||||||
|
@ -107,6 +107,7 @@ GSList* gtk_action_get_proxies (GtkAction *action);
|
|||||||
void gtk_action_connect_accelerator (GtkAction *action);
|
void gtk_action_connect_accelerator (GtkAction *action);
|
||||||
void gtk_action_disconnect_accelerator (GtkAction *action);
|
void gtk_action_disconnect_accelerator (GtkAction *action);
|
||||||
G_CONST_RETURN gchar *gtk_action_get_accel_path (GtkAction *action);
|
G_CONST_RETURN gchar *gtk_action_get_accel_path (GtkAction *action);
|
||||||
|
GClosure *gtk_action_get_accel_closure (GtkAction *action);
|
||||||
|
|
||||||
/* protected ... for use by child actions */
|
/* protected ... for use by child actions */
|
||||||
void gtk_action_block_activate_from (GtkAction *action,
|
void gtk_action_block_activate_from (GtkAction *action,
|
||||||
|
Loading…
Reference in New Issue
Block a user