[Xfce4-commits] [xfce/xfce4-settings] 01/04: settings-manager: Drop setting the old header style

noreply at xfce.org noreply at xfce.org
Tue Jan 14 00:40:20 CET 2020


This is an automated email from the git hooks/post-receive script.

o   c   h   o   s   i       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/xfce4-settings.

commit db1112915c117af56d747906cd1efa99369bd5af
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Wed Jan 8 23:57:09 2020 +0100

    settings-manager: Drop setting the old header style
---
 .../xfce-settings-manager-dialog.c                 | 43 +---------------------
 1 file changed, 2 insertions(+), 41 deletions(-)

diff --git a/xfce4-settings-manager/xfce-settings-manager-dialog.c b/xfce4-settings-manager/xfce-settings-manager-dialog.c
index f860175..10fc65f 100644
--- a/xfce4-settings-manager/xfce-settings-manager-dialog.c
+++ b/xfce4-settings-manager/xfce-settings-manager-dialog.c
@@ -113,9 +113,6 @@ static void     xfce_settings_manager_dialog_style_updated   (GtkWidget
 static void     xfce_settings_manager_dialog_set_hover_style (XfceSettingsManagerDialog *dialog);
 static void     xfce_settings_manager_dialog_response        (GtkDialog                 *widget,
                                                               gint                       response_id);
-static void     xfce_settings_manager_dialog_header_style    (GtkWidget                 *header,
-                                                              GtkStyle                  *old_style,
-                                                              GtkWidget                 *ebox);
 static void     xfce_settings_manager_dialog_set_title       (XfceSettingsManagerDialog *dialog,
                                                               const gchar               *title,
                                                               const gchar               *icon_name,
@@ -221,8 +218,6 @@ xfce_settings_manager_dialog_init (XfceSettingsManagerDialog *dialog)
     GtkWidget *dialog_vbox;
     GtkWidget *ebox;
     GtkWidget *entry;
-    GtkWidget *hbox;
-    GtkWidget *header;
     GtkWidget *scroll;
     GtkWidget *viewport;
     GtkWidget *image;
@@ -266,28 +261,7 @@ xfce_settings_manager_dialog_init (XfceSettingsManagerDialog *dialog)
     image = gtk_image_new_from_icon_name ("window-close-symbolic", GTK_ICON_SIZE_BUTTON);
     gtk_button_set_image (GTK_BUTTON (button), image);
 
-    /* add box at start of the main box */
-    hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
-    dialog_vbox = gtk_bin_get_child (GTK_BIN (dialog));
-    gtk_box_pack_start (GTK_BOX (dialog_vbox), hbox, FALSE, TRUE, 0);
-    gtk_box_reorder_child (GTK_BOX (dialog_vbox), hbox, 0);
-    gtk_widget_show (hbox);
-
-    /* move the xfce-header in the hbox */
-    children = gtk_container_get_children (GTK_CONTAINER (dialog_vbox));
-    header = g_list_nth_data (children, 1);
-    g_object_ref (G_OBJECT (header));
-    gtk_container_remove (GTK_CONTAINER (dialog_vbox), header);
-    gtk_box_pack_start (GTK_BOX (hbox), header, TRUE, TRUE, 0);
-    g_object_unref (G_OBJECT (header));
-    g_list_free (children);
-
-    ebox = gtk_event_box_new ();
-    gtk_box_pack_start (GTK_BOX (hbox), ebox, FALSE, TRUE, 0);
-    g_signal_connect (header, "style-set",
-        G_CALLBACK (xfce_settings_manager_dialog_header_style), ebox);
-    gtk_widget_show (ebox);
-
+    /* Add the filter box to the Headerbar */
     dialog->filter_entry = entry = gtk_entry_new ();
     gtk_widget_set_margin_end (GTK_WIDGET (entry), 6);
     gtk_container_add (GTK_CONTAINER (ebox), entry);
@@ -416,6 +390,7 @@ xfce_settings_manager_dialog_set_hover_style (XfceSettingsManagerDialog *dialog)
 }
 
 
+
 static void
 xfce_settings_manager_dialog_response (GtkDialog *widget,
                                        gint       response_id)
@@ -464,20 +439,6 @@ xfce_settings_manager_dialog_response (GtkDialog *widget,
 
 
 static void
-xfce_settings_manager_dialog_header_style (GtkWidget *header,
-                                           GtkStyle  *old_style,
-                                           GtkWidget *ebox)
-{
-    GtkStyleContext *context;
-
-    context = gtk_widget_get_style_context (ebox);
-    gtk_style_context_add_class (context, "view");
-    gtk_style_context_add_class (context, "XfceHeading");
-}
-
-
-
-static void
 xfce_settings_manager_dialog_set_title (XfceSettingsManagerDialog *dialog,
                                         const gchar               *title,
                                         const gchar               *icon_name,

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list