nautilus r14375 - in trunk: . src



Author: cneumair
Date: Sun Jul 20 12:12:53 2008
New Revision: 14375
URL: http://svn.gnome.org/viewvc/nautilus?rev=14375&view=rev

Log:
2008-07-20  Christian Neumair  <cneumair gnome org>

	* src/nautilus-notebook.c (nautilus_notebook_sync_tab_label):
	Use full location name as tab tooltip.


Modified:
   trunk/ChangeLog
   trunk/src/nautilus-notebook.c

Modified: trunk/src/nautilus-notebook.c
==============================================================================
--- trunk/src/nautilus-notebook.c	(original)
+++ trunk/src/nautilus-notebook.c	Sun Jul 20 12:12:53 2008
@@ -305,6 +305,7 @@
 				  NautilusWindowSlot *slot)
 {
 	GtkWidget *hbox, *label;
+	char *location_name;
 
 	g_return_if_fail (NAUTILUS_IS_NOTEBOOK (notebook));
 	g_return_if_fail (NAUTILUS_IS_WINDOW_SLOT (slot));
@@ -318,10 +319,16 @@
 
 	gtk_label_set_text (GTK_LABEL (label), slot->title);
 
-	/* Set the tooltip on the label's parent (the tab label hbox),
-	 * so it covers all of the tab label.
-	 */
-	gtk_widget_set_tooltip_text (label->parent, slot->title);
+	if (slot->location != NULL) {
+		/* Set the tooltip on the label's parent (the tab label hbox),
+		 * so it covers all of the tab label.
+		 */
+		location_name = g_file_get_parse_name (slot->location);
+		gtk_widget_set_tooltip_text (label->parent, location_name);
+		g_free (location_name);
+	} else {
+		gtk_widget_set_tooltip_text (label->parent, NULL);
+	}
 }
 
 static void



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