diff options
author | Benjamin Otte <otte@redhat.com> | 2015-07-14 18:02:48 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2015-07-16 06:15:13 +0200 |
commit | b9b17c3c2a434983452561c396918070c9702f5e (patch) | |
tree | 324df9602c71703bfbacf28f9bde2f8e7785bae6 /gtk/gtkheaderbar.c | |
parent | 8e87988179defdc7fd056300fb418d2a5f4c44a7 (diff) | |
download | gtk+-b9b17c3c2a434983452561c396918070c9702f5e.tar.gz |
headerbar: Remove unused variables in private struct
Diffstat (limited to 'gtk/gtkheaderbar.c')
-rw-r--r-- | gtk/gtkheaderbar.c | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/gtk/gtkheaderbar.c b/gtk/gtkheaderbar.c index 1e7bc5aa95..0d729a13a3 100644 --- a/gtk/gtkheaderbar.c +++ b/gtk/gtkheaderbar.c @@ -79,10 +79,6 @@ struct _GtkHeaderBarPrivate GtkWidget *titlebar_end_separator; GtkWidget *titlebar_icon; - GtkWidget *titlebar_menu_button; - GtkWidget *titlebar_min_button; - GtkWidget *titlebar_max_button; - GtkWidget *titlebar_close_button; }; typedef struct _Child Child; @@ -287,31 +283,6 @@ _gtk_header_bar_update_window_buttons (GtkHeaderBar *bar) if (!gtk_widget_get_realized (widget)) return; - if (priv->titlebar_icon) - { - gtk_widget_destroy (priv->titlebar_icon); - priv->titlebar_icon = NULL; - } - if (priv->titlebar_menu_button) - { - gtk_widget_destroy (priv->titlebar_menu_button); - priv->titlebar_menu_button = NULL; - } - if (priv->titlebar_min_button) - { - gtk_widget_destroy (priv->titlebar_min_button); - priv->titlebar_min_button = NULL; - } - if (priv->titlebar_max_button) - { - gtk_widget_destroy (priv->titlebar_max_button); - priv->titlebar_max_button = NULL; - } - if (priv->titlebar_close_button) - { - gtk_widget_destroy (priv->titlebar_close_button); - priv->titlebar_close_button = NULL; - } if (priv->titlebar_start_box) { gtk_widget_destroy (priv->titlebar_start_box); @@ -325,9 +296,6 @@ _gtk_header_bar_update_window_buttons (GtkHeaderBar *bar) priv->titlebar_end_separator = NULL; } - if (!priv->shows_wm_decorations) - return; - direction = gtk_widget_get_direction (widget); g_object_get (gtk_widget_get_settings (widget), @@ -413,7 +381,6 @@ _gtk_header_bar_update_window_buttons (GtkHeaderBar *bar) if (GTK_IS_ACCESSIBLE (accessible)) atk_object_set_name (accessible, _("Application menu")); priv->titlebar_icon = image; - priv->titlebar_menu_button = button; if (!_gtk_header_bar_update_window_icon (bar, window)) gtk_image_set_from_icon_name (GTK_IMAGE (priv->titlebar_icon), "process-stop-symbolic", GTK_ICON_SIZE_MENU); } @@ -434,7 +401,6 @@ _gtk_header_bar_update_window_buttons (GtkHeaderBar *bar) accessible = gtk_widget_get_accessible (button); if (GTK_IS_ACCESSIBLE (accessible)) atk_object_set_name (accessible, _("Minimize")); - priv->titlebar_min_button = button; } else if (strcmp (t[j], "maximize") == 0 && gtk_window_get_resizable (window) && @@ -458,7 +424,6 @@ _gtk_header_bar_update_window_buttons (GtkHeaderBar *bar) accessible = gtk_widget_get_accessible (button); if (GTK_IS_ACCESSIBLE (accessible)) atk_object_set_name (accessible, maximized ? _("Restore") : _("Maximize")); - priv->titlebar_max_button = button; } else if (strcmp (t[j], "close") == 0 && gtk_window_get_deletable (window)) @@ -477,7 +442,6 @@ _gtk_header_bar_update_window_buttons (GtkHeaderBar *bar) accessible = gtk_widget_get_accessible (button); if (GTK_IS_ACCESSIBLE (accessible)) atk_object_set_name (accessible, _("Close")); - priv->titlebar_close_button = button; } if (button) |