[Xfce4-commits] [xfce/xfce4-panel] 01/01: Replace deprecated gdk_display_get_n_screens and gtk_widget_reparent

noreply at xfce.org noreply at xfce.org
Sat Apr 22 11:13:40 CEST 2017


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

ochosi pushed a commit to branch master
in repository xfce/xfce4-panel.

commit 65fd68beb5496a0cd7f242044db5854342cac7a7
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Sat Apr 22 11:13:28 2017 +0200

    Replace deprecated gdk_display_get_n_screens and gtk_widget_reparent
    
    From the Gtk+3 GdkDisplay documentation regarding get_n_screens:
    The number of screens is always 1.
---
 panel/panel-application.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/panel/panel-application.c b/panel/panel-application.c
index 5c5bc23..9f836f2 100644
--- a/panel/panel-application.c
+++ b/panel/panel-application.c
@@ -392,7 +392,7 @@ panel_application_load_real (PanelApplication *application)
               && strncmp (output_name, "screen-", 7) == 0
               && sscanf (output_name, "screen-%d", &screen_num) == 1)
             {
-              if (screen_num < gdk_display_get_n_screens (display))
+              if (screen_num < 1)
                 screen = gdk_display_get_screen (display, screen_num);
             }
           g_free (output_name);
@@ -947,7 +947,7 @@ panel_application_drag_data_received (PanelWindow      *window,
 
               /* reparent the widget, this will also call remove and add for the itembar */
               gtk_widget_hide (provider);
-              gtk_widget_reparent (provider, itembar);
+              xfce_widget_reparent (provider, itembar);
               gtk_widget_show (provider);
 
               /* move the item to the correct position on the itembar */

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


More information about the Xfce4-commits mailing list