[Xfce4-commits] <thunar:jannis/new-shortcuts-pane> Make eject icons slightly smaller and reduce the minimum row size to 24.

Jannis Pohlmann noreply at xfce.org
Tue Jun 7 00:56:01 CEST 2011


Updating branch refs/heads/jannis/new-shortcuts-pane
         to 9393c942666cf38bbbbc6b997bb416f9c07f4b8e (commit)
       from 877401372d6545ee715d8c7e7d8832545d7ad7dd (commit)

commit 9393c942666cf38bbbbc6b997bb416f9c07f4b8e
Author: Jannis Pohlmann <jannis at xfce.org>
Date:   Tue Jun 7 00:53:47 2011 +0200

    Make eject icons slightly smaller and reduce the minimum row size to 24.

 thunar/thunar-shortcut-row.c    |    3 ++-
 thunar/thunar-shortcuts-model.c |   13 +++++++++++++
 2 files changed, 15 insertions(+), 1 deletions(-)

diff --git a/thunar/thunar-shortcut-row.c b/thunar/thunar-shortcut-row.c
index 00b86fe..0b8a514 100644
--- a/thunar/thunar-shortcut-row.c
+++ b/thunar/thunar-shortcut-row.c
@@ -38,7 +38,7 @@
 
 
 
-#define THUNAR_SHORTCUT_ROW_MIN_HEIGHT 26
+#define THUNAR_SHORTCUT_ROW_MIN_HEIGHT 24
 
 
 
@@ -1040,6 +1040,7 @@ thunar_shortcut_row_icon_size_changed (ThunarShortcutRow *row)
   _thunar_return_if_fail (THUNAR_IS_SHORTCUT_ROW (row));
 
   gtk_image_set_pixel_size (GTK_IMAGE (row->icon_image), row->icon_size);
+  gtk_image_set_pixel_size (GTK_IMAGE (row->action_image), row->icon_size - 2);
 }
 
 
diff --git a/thunar/thunar-shortcuts-model.c b/thunar/thunar-shortcuts-model.c
index 3b6ad57..441fdef 100644
--- a/thunar/thunar-shortcuts-model.c
+++ b/thunar/thunar-shortcuts-model.c
@@ -1036,6 +1036,19 @@ thunar_shortcuts_model_load_system_shortcuts (gpointer user_data)
   g_object_unref (desktop_file);
   g_object_unref (home_file);
 
+  /* create a trash shortcut */
+  shortcut = g_slice_new0 (ThunarShortcut);
+  shortcut->file = g_object_ref (desktop_file);
+  shortcut->icon = g_themed_icon_new ("user-desktop");
+  shortcut->name = g_strdup (_("Desktop"));
+  shortcut->type = THUNAR_SHORTCUT_USER_DIRECTORY;
+  shortcut->visible = TRUE;
+  shortcut->mutable = FALSE;
+  shortcut->persistent = TRUE;
+
+  /* add the shortcut */
+  thunar_shortcuts_model_add_shortcut (model, shortcut);
+
   /* create a shortcut for the root file system */
   shortcut = g_slice_new0 (ThunarShortcut);
   shortcut->file = thunar_g_file_new_for_root ();



More information about the Xfce4-commits mailing list