nautilus r14892 - in trunk: . icons src



Author: cosimoc
Date: Wed Jan 28 14:40:21 2009
New Revision: 14892
URL: http://svn.gnome.org/viewvc/nautilus?rev=14892&view=rev

Log:
2009-01-28  Cosimo Cecchi  <cosimoc pluto>

	* icons/Makefile.am:
	* src/nautilus-notes-viewer.c: (nautilus_notes_viewer_init):
	Remove "note-indicator.png" and use the themable icon we just
	added to display the emblem in the sidebar.


Removed:
   trunk/icons/note-indicator.png
Modified:
   trunk/ChangeLog
   trunk/icons/Makefile.am
   trunk/src/nautilus-notes-viewer.c

Modified: trunk/icons/Makefile.am
==============================================================================
--- trunk/icons/Makefile.am	(original)
+++ trunk/icons/Makefile.am	Wed Jan 28 14:40:21 2009
@@ -10,7 +10,6 @@
 	emblems.png \
 	erase.png \
 	knob.png \
-	note-indicator.png \
 	thumbnail_frame.png \
 	$(NULL)
 

Modified: trunk/src/nautilus-notes-viewer.c
==============================================================================
--- trunk/src/nautilus-notes-viewer.c	(original)
+++ trunk/src/nautilus-notes-viewer.c	Wed Jan 28 14:40:21 2009
@@ -309,19 +309,16 @@
 static void
 nautilus_notes_viewer_init (NautilusNotesViewer *sidebar)
 {
-        char *image_path;
         NautilusNotesViewerDetails *details;
+	NautilusIconInfo *info;
         
         details = g_new0 (NautilusNotesViewerDetails, 1);
         sidebar->details = details;
         
         details->uri = g_strdup ("");
 
-        image_path = nautilus_pixmap_file ("note-indicator.png");
-        if (image_path) {
-                details->icon = gdk_pixbuf_new_from_file (image_path, NULL);
-                g_free (image_path);
-        }
+	info = nautilus_icon_info_lookup_from_name ("emblem-note", 16);
+	details->icon = nautilus_icon_info_get_pixbuf (info);
 
         /* create the text container */               
 	details->text_buffer = gtk_text_buffer_new (NULL);



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