diff options
author | Corentin Noël <corentin@elementary.io> | 2019-06-18 07:35:25 +0000 |
---|---|---|
committer | Alberto Fanjul <albertofanjul@gmail.com> | 2019-06-18 07:35:25 +0000 |
commit | 3fabe72401e8c179249feef3450031f389bce83f (patch) | |
tree | 3a9b1bc2c0fd5dca730689b4e3c5821129b9fc96 /src | |
parent | a543e99069b693d96e68eb8e00a2dce00a1946a7 (diff) | |
download | glade-3fabe72401e8c179249feef3450031f389bce83f.tar.gz |
Rename GWActionClass to GladeWidgetActionDef to use the right namespace
Diffstat (limited to 'src')
-rw-r--r-- | src/glade-window.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/glade-window.c b/src/glade-window.c index 9863a61a..305c0ac8 100644 --- a/src/glade-window.c +++ b/src/glade-window.c @@ -222,13 +222,13 @@ update_default_path (GladeWindow *window, const gchar *filename) static void activate_action (GtkToolButton *toolbutton, GladeWidgetAction *action) { - GladeWidget *widget; - GWActionClass *aclass = glade_widget_action_get_class (action); + GladeWidget *widget; + GladeWidgetActionDef *adef = glade_widget_action_get_def (action); if ((widget = g_object_get_data (G_OBJECT (toolbutton), "glade-widget"))) glade_widget_adaptor_action_activate (glade_widget_get_adaptor (widget), glade_widget_get_object (widget), - aclass->path); + adef->path); } static void @@ -277,10 +277,10 @@ add_actions (GladeWindow *window, GladeWidget *widget, GList *actions) for (l = actions; l; l = g_list_next (l)) { - GladeWidgetAction *action = l->data; - GWActionClass *aclass = glade_widget_action_get_class (action); + GladeWidgetAction *action = l->data; + GladeWidgetActionDef *adef = glade_widget_action_get_def (action); - if (!aclass->important || !glade_widget_action_get_visible (action)) + if (!adef->important || !glade_widget_action_get_visible (action)) continue; if (glade_widget_action_get_children (action)) @@ -289,12 +289,12 @@ add_actions (GladeWindow *window, GladeWidget *widget, GList *actions) continue; } - item = gtk_tool_button_new (NULL, aclass->label); + item = gtk_tool_button_new (NULL, adef->label); gtk_tool_button_set_icon_name (GTK_TOOL_BUTTON (item), - (aclass->stock) ? aclass->stock : "system-run"); + (adef->stock) ? adef->stock : "system-run"); - if (aclass->label) - gtk_widget_set_tooltip_text (GTK_WIDGET (item), aclass->label); + if (adef->label) + gtk_widget_set_tooltip_text (GTK_WIDGET (item), adef->label); g_object_set_data (G_OBJECT (item), "glade-widget", widget); |