Commit 8107598c authored by Christian Neumair's avatar Christian Neumair Committed by Christian Neumair

Use full location name as tab tooltip.

2008-07-20  Christian Neumair  <cneumair@gnome.org>

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

svn path=/trunk/; revision=14375
parent df30c29f
2008-07-20 Christian Neumair <cneumair@gnome.org>
* src/nautilus-notebook.c (nautilus_notebook_sync_tab_label):
Use full location name as tab tooltip.
2008-07-19 Christian Neumair <cneumair@gnome.org>
* src/nautilus-places-sidebar.c (add_place),
......
......@@ -305,6 +305,7 @@ nautilus_notebook_sync_tab_label (NautilusNotebook *notebook,
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 @@ nautilus_notebook_sync_tab_label (NautilusNotebook *notebook,
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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment