[Xfce4-commits] [xfce/xfdesktop] 04/05: Correctly initialize the primary display value

noreply at xfce.org noreply at xfce.org
Fri Nov 16 19:12:40 CET 2018


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/xfdesktop.

commit 247311479e972963e8f47017a906eb9e9d3c7f55
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Sat Nov 10 23:41:58 2018 +0100

    Correctly initialize the primary display value
---
 src/xfce-desktop.c |  8 ++++----
 src/xfce-desktop.h | 11 +++++++----
 2 files changed, 11 insertions(+), 8 deletions(-)

diff --git a/src/xfce-desktop.c b/src/xfce-desktop.c
index a8f3af8..dca2025 100644
--- a/src/xfce-desktop.c
+++ b/src/xfce-desktop.c
@@ -172,9 +172,6 @@ static gboolean xfce_desktop_delete_event(GtkWidget *w,
                                           GdkEventAny *evt);
 static void xfce_desktop_style_updated(GtkWidget *w);
 
-static void xfce_desktop_set_primary(XfceDesktop *desktop,
-                                     gboolean primary);
-
 static void xfce_desktop_set_single_workspace_mode(XfceDesktop *desktop,
                                                    gboolean single_workspace);
 static void xfce_desktop_set_single_workspace_number(XfceDesktop *desktop,
@@ -276,6 +273,9 @@ xfce_desktop_setup_icon_view(XfceDesktop *desktop)
         gtk_widget_show(desktop->priv->icon_view);
         gtk_container_add(GTK_CONTAINER(desktop), desktop->priv->icon_view);
 
+        xfdesktop_icon_view_set_primary(XFDESKTOP_ICON_VIEW(desktop->priv->icon_view),
+                                        desktop->priv->primary);
+
         if(desktop->priv->icons_style == XFCE_DESKTOP_ICON_STYLE_FILES)
             g_signal_connect(G_OBJECT(manager), "hidden-state-changed",
                              G_CALLBACK(hidden_state_changed_cb), desktop);
@@ -1684,7 +1684,7 @@ xfce_desktop_set_icon_size(XfceDesktop *desktop,
 #endif
 }
 
-static void
+void
 xfce_desktop_set_primary(XfceDesktop *desktop,
                            gboolean primary)
 {
diff --git a/src/xfce-desktop.h b/src/xfce-desktop.h
index 640b778..8caadd2 100644
--- a/src/xfce-desktop.h
+++ b/src/xfce-desktop.h
@@ -51,7 +51,7 @@ typedef enum
 struct _XfceDesktop
 {
     GtkWindow window;
-    
+
     /*< private >*/
     XfceDesktopPriv *priv;
 };
@@ -59,13 +59,13 @@ struct _XfceDesktop
 struct _XfceDesktopClass
 {
     GtkWindowClass parent_class;
-    
+
     /*< signals >*/
-    
+
     /* for the app menu/file context menu */
     void (*populate_root_menu)(XfceDesktop *desktop,
                                GtkMenuShell *menu);
-    
+
     /* for the windowlist menu */
     void (*populate_secondary_root_menu)(XfceDesktop *desktop,
                                          GtkMenuShell *menu);
@@ -89,6 +89,9 @@ XfceDesktopIconStyle xfce_desktop_get_icon_style(XfceDesktop *desktop);
 void xfce_desktop_set_icon_size(XfceDesktop *desktop,
                                 guint icon_size);
 
+void xfce_desktop_set_primary(XfceDesktop *desktop,
+                              gboolean primary);
+
 void xfce_desktop_set_use_icon_font_size(XfceDesktop *desktop,
                                          gboolean use_system);
 void xfce_desktop_set_icon_font_size(XfceDesktop *desktop,

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


More information about the Xfce4-commits mailing list