Author: nick
Date: 2007-10-28 17:05:33 +0000 (Sun, 28 Oct 2007)
New Revision: 26209

Modified:
   xfce4-panel/trunk/plugins/pager/pager.c
Log:
* Fix the large dnd icons in the pager. Quote of
  the day:

  "Windows are huge, so make the icons huge too"
                                   -- Wnck


Modified: xfce4-panel/trunk/plugins/pager/pager.c
===================================================================
--- xfce4-panel/trunk/plugins/pager/pager.c     2007-10-28 17:05:29 UTC (rev 
26208)
+++ xfce4-panel/trunk/plugins/pager/pager.c     2007-10-28 17:05:33 UTC (rev 
26209)
@@ -242,6 +242,7 @@
     GdkScreen *screen;
     int screen_idx;
     Pager *pager = panel_slice_new0 (Pager);
+    GtkSettings *settings;
 
     g_signal_connect (plugin, "orientation-changed",
                       G_CALLBACK (pager_orientation_changed), pager);
@@ -292,6 +293,11 @@
     pager->screen_size_changed_id =
         g_signal_connect (screen, "size-changed",
                           G_CALLBACK (pager_screen_size_changed), pager);
+
+    /* override default dnd icon size. wnck multiplies the dnd size with 3 for 
the
+     * drag icon, so we do 32 / 3 to get a normal drag icon */
+    settings = gtk_widget_get_settings (pager->pager);
+    g_object_set (G_OBJECT (settings), "gtk-icon-sizes", "gtk-dnd=11,11:", 
NULL);
 }
 
 /* -------------------------------------------------------------------- *
@@ -332,8 +338,8 @@
     if (pager->show_names != show_names)
     {
        pager->show_names = show_names;
-       
-       wnck_pager_set_display_mode (WNCK_PAGER (pager->pager), 
+
+       wnck_pager_set_display_mode (WNCK_PAGER (pager->pager),
                                     show_names ? WNCK_PAGER_DISPLAY_NAME : 
WNCK_PAGER_DISPLAY_CONTENT);
     }
 }

_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to