Fix regression, no empty tooltips in bookmark bar

This commit is contained in:
Enrico Tröger 2008-07-13 23:34:25 +02:00 committed by Christian Dywan
parent 103df3d8cc
commit 17b8738be1

View file

@ -3247,6 +3247,7 @@ midori_browser_init (MidoriBrowser* browser)
g_signal_connect (toolitem, "clicked", g_signal_connect (toolitem, "clicked",
G_CALLBACK (midori_browser_bookmarkbar_folder_activate_cb), G_CALLBACK (midori_browser_bookmarkbar_folder_activate_cb),
browser); browser);
if (desc && *desc)
gtk_tool_item_set_tooltip_text (toolitem, desc); gtk_tool_item_set_tooltip_text (toolitem, desc);
g_object_set_data (G_OBJECT (toolitem), "KatzeXbelItem", item); g_object_set_data (G_OBJECT (toolitem), "KatzeXbelItem", item);
break; break;
@ -3257,6 +3258,7 @@ midori_browser_init (MidoriBrowser* browser)
g_signal_connect (toolitem, "clicked", g_signal_connect (toolitem, "clicked",
G_CALLBACK (midori_browser_menu_bookmarks_item_activate_cb), G_CALLBACK (midori_browser_menu_bookmarks_item_activate_cb),
browser); browser);
if (desc && *desc)
gtk_tool_item_set_tooltip_text (toolitem, desc); gtk_tool_item_set_tooltip_text (toolitem, desc);
g_object_set_data (G_OBJECT (toolitem), "KatzeXbelItem", item); g_object_set_data (G_OBJECT (toolitem), "KatzeXbelItem", item);
break; break;