summaryrefslogtreecommitdiff
path: root/gtk/gtktoolitem.c
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2009-02-22 05:20:14 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2009-02-22 05:20:14 +0000
commite6f6ee193d81fdb7009cb324cf9d90e3d69b6616 (patch)
treee92996618c630662ff0dc07d62b26c24d5419c20 /gtk/gtktoolitem.c
parent005f5773dfea6048fbf458511238baa184bcf07d (diff)
downloadgtk+-e6f6ee193d81fdb7009cb324cf9d90e3d69b6616.tar.gz
Rename gtk_activatable_reset to gtk_activatable_sync_action_properties,
* gtk/gtk.symbols: * gtk/gtkactivatable.[hc]: Rename gtk_activatable_reset to gtk_activatable_sync_action_properties, since the previous name was deemed too generic. Update all implementations. svn path=/trunk/; revision=22389
Diffstat (limited to 'gtk/gtktoolitem.c')
-rw-r--r--gtk/gtktoolitem.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/gtk/gtktoolitem.c b/gtk/gtktoolitem.c
index 6360c444a4..9c00b0dab2 100644
--- a/gtk/gtktoolitem.c
+++ b/gtk/gtktoolitem.c
@@ -128,10 +128,10 @@ static gboolean gtk_tool_item_real_set_tooltip (GtkToolItem *tool_item,
const gchar *tip_private);
static void gtk_tool_item_activatable_interface_init (GtkActivatableIface *iface);
-static void gtk_tool_item_activatable_update (GtkActivatable *activatable,
+static void gtk_tool_item_update (GtkActivatable *activatable,
GtkAction *action,
const gchar *property_name);
-static void gtk_tool_item_activatable_reset (GtkActivatable *activatable,
+static void gtk_tool_item_sync_action_properties (GtkActivatable *activatable,
GtkAction *action);
static void gtk_tool_item_set_related_action (GtkToolItem *item,
GtkAction *action);
@@ -579,17 +579,17 @@ _gtk_tool_item_create_menu_proxy (GtkToolItem *item)
return FALSE;
}
-static void
-gtk_tool_item_activatable_interface_init (GtkActivatableIface *iface)
+static void
+gtk_tool_item_activatable_interface_init (GtkActivatableIface *iface)
{
- iface->update = gtk_tool_item_activatable_update;
- iface->reset = gtk_tool_item_activatable_reset;
+ iface->update = gtk_tool_item_update;
+ iface->sync_action_properties = gtk_tool_item_sync_action_properties;
}
-static void
-gtk_tool_item_activatable_update (GtkActivatable *activatable,
- GtkAction *action,
- const gchar *property_name)
+static void
+gtk_tool_item_update (GtkActivatable *activatable,
+ GtkAction *action,
+ const gchar *property_name)
{
if (strcmp (property_name, "visible") == 0)
{
@@ -614,9 +614,9 @@ gtk_tool_item_activatable_update (GtkActivatable *activatable,
gtk_action_get_is_important (action));
}
-static void
-gtk_tool_item_activatable_reset (GtkActivatable *activatable,
- GtkAction *action)
+static void
+gtk_tool_item_sync_action_properties (GtkActivatable *activatable,
+ GtkAction *action)
{
if (!action)
return;
@@ -656,14 +656,14 @@ gtk_tool_item_set_related_action (GtkToolItem *item,
}
static void
-gtk_tool_item_set_use_action_appearance (GtkToolItem *item,
+gtk_tool_item_set_use_action_appearance (GtkToolItem *item,
gboolean use_appearance)
{
if (item->priv->use_action_appearance != use_appearance)
{
item->priv->use_action_appearance = use_appearance;
-
- gtk_activatable_reset (GTK_ACTIVATABLE (item), item->priv->action);
+
+ gtk_activatable_sync_action_properties (GTK_ACTIVATABLE (item), item->priv->action);
}
}