[gtk+/wip/csoriano/bookmarks: 3/3] gtkplacessidebar: add new bookmark icon



commit 2375088b72c13279cbc73033f7a69bac3a462954
Author: Carlos Soriano <csoriano gnome org>
Date:   Sat Apr 11 17:46:59 2015 +0200

    gtkplacessidebar: add new bookmark icon
    
    Following design mockups

 gtk/gtkplacessidebar.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c
index 2ce1138..92a60ba 100644
--- a/gtk/gtkplacessidebar.c
+++ b/gtk/gtkplacessidebar.c
@@ -1669,6 +1669,7 @@ show_new_bookmark_row (GtkPlacesSidebar *sidebar,
   int bookmarks_heading_index;
   gint drop_target_index;
   GtkTreePath *new_bookmark_path;
+  GIcon *new_bookmark_icon;
 
   bookmarks_heading_index = bookmarks_get_heading_index (sidebar);
   bookmarks_heading_index++;
@@ -1676,13 +1677,16 @@ show_new_bookmark_row (GtkPlacesSidebar *sidebar,
   /* Add the row if it doesn't exists yet */
   if (sidebar->drop_state == DROP_STATE_NORMAL)
     {
+      new_bookmark_icon =g_themed_icon_new ("bookmark-new-symbolic");
       gtk_list_store_insert_with_values (sidebar->store, &iter, bookmarks_heading_index,
                                          PLACES_SIDEBAR_COLUMN_ROW_TYPE, PLACES_DROP_FEEDBACK,
                                          PLACES_SIDEBAR_COLUMN_SECTION_TYPE, SECTION_BOOKMARKS,
+                                         PLACES_SIDEBAR_COLUMN_GICON, new_bookmark_icon,
                                          PLACES_SIDEBAR_COLUMN_NAME, _("New bookmark"),
                                          PLACES_SIDEBAR_COLUMN_INDEX, bookmarks_heading_index,
                                          PLACES_SIDEBAR_COLUMN_NO_EJECT, TRUE,
                                          -1);
+      g_object_unref (new_bookmark_icon);
     }
 
   /* Highlight the new bookmark row */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]