[Xfce4-commits] [xfce/xfce4-session] 03/03: Drop unused xfsm_window_add_border

noreply at xfce.org noreply at xfce.org
Sat Apr 27 00:37:37 CEST 2019


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-session.

commit 30846a081d7bfb69cb4fa8760dbe19650a15bfbd
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Sat Apr 27 00:09:56 2019 +0200

    Drop unused xfsm_window_add_border
---
 libxfsm/xfsm-util.c      | 37 -------------------------------------
 libxfsm/xfsm-util.h      |  2 --
 xfce4-session/xfsm-dns.c |  2 +-
 3 files changed, 1 insertion(+), 40 deletions(-)

diff --git a/libxfsm/xfsm-util.c b/libxfsm/xfsm-util.c
index 537aab0..48f77fe 100644
--- a/libxfsm/xfsm-util.c
+++ b/libxfsm/xfsm-util.c
@@ -153,42 +153,6 @@ xfsm_strv_equal (gchar **a, gchar **b)
 }
 
 
-void
-xfsm_window_add_border (GtkWindow *window)
-{
-  GtkWidget *box1, *box2;
-  GtkWidget *child;
-  GdkRGBA    bg_color;
-
-  child = gtk_bin_get_child (GTK_BIN (window));
-  if (G_UNLIKELY (child == NULL))
-    return;
-
-  gtk_widget_realize(GTK_WIDGET(window));
-
-  box1 = gtk_event_box_new ();
-G_GNUC_BEGIN_IGNORE_DEPRECATIONS
-  gtk_style_context_get_background_color(gtk_widget_get_style_context (GTK_WIDGET(window)),
-                                         GTK_STATE_SELECTED,
-                                         &bg_color);
-  gtk_widget_override_background_color (box1, GTK_STATE_NORMAL,
-                                        &bg_color);
-G_GNUC_END_IGNORE_DEPRECATIONS
-  gtk_widget_show (box1);
-
-  box2 = gtk_event_box_new ();
-  gtk_widget_show (box2);
-  gtk_container_add (GTK_CONTAINER (box1), box2);
-
-  gtk_container_set_border_width (GTK_CONTAINER (box2), 6);
-
-  g_object_ref (child);
-  gtk_container_remove (GTK_CONTAINER (window), child);
-  gtk_container_add (GTK_CONTAINER (window), box1);
-  gtk_container_add (GTK_CONTAINER (box2), child);
-  g_object_unref (child);
-}
-
 XfconfChannel*
 xfsm_open_config (void)
 {
@@ -237,4 +201,3 @@ xfsm_gdk_display_get_fullname (GdkDisplay *display)
 
   return g_strdup (buffer);
 }
-
diff --git a/libxfsm/xfsm-util.h b/libxfsm/xfsm-util.h
index 8ca9fc2..9d545fc 100644
--- a/libxfsm/xfsm-util.h
+++ b/libxfsm/xfsm-util.h
@@ -45,8 +45,6 @@ void xfsm_place_trash_window (GtkWindow *window,
 /* XXX - move to libxfce4util? */
 gboolean xfsm_strv_equal (gchar **a, gchar **b);
 
-void xfsm_window_add_border (GtkWindow *window);
-
 XfconfChannel *xfsm_open_config (void);
 
 gchar *xfsm_gdk_display_get_fullname (GdkDisplay *display);
diff --git a/xfce4-session/xfsm-dns.c b/xfce4-session/xfsm-dns.c
index 6e62d7b..55ec6a6 100644
--- a/xfce4-session/xfsm-dns.c
+++ b/xfce4-session/xfsm-dns.c
@@ -161,7 +161,7 @@ xfsm_dns_check (void)
                                   NULL);
 
           gtk_window_set_screen (GTK_WINDOW (msgbox), screen);
-          xfsm_window_add_border (GTK_WINDOW (msgbox));
+          gtk_container_set_border_width (GTK_CONTAINER (msgbox), 6);
           gtk_window_set_position (GTK_WINDOW (msgbox), GTK_WIN_POS_CENTER);
         }
 

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


More information about the Xfce4-commits mailing list