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,7 +3247,8 @@ midori_browser_init (MidoriBrowser* browser)
g_signal_connect (toolitem, "clicked",
G_CALLBACK (midori_browser_bookmarkbar_folder_activate_cb),
browser);
gtk_tool_item_set_tooltip_text (toolitem, desc);
if (desc && *desc)
gtk_tool_item_set_tooltip_text (toolitem, desc);
g_object_set_data (G_OBJECT (toolitem), "KatzeXbelItem", item);
break;
case KATZE_XBEL_ITEM_KIND_BOOKMARK:
@ -3257,7 +3258,8 @@ midori_browser_init (MidoriBrowser* browser)
g_signal_connect (toolitem, "clicked",
G_CALLBACK (midori_browser_menu_bookmarks_item_activate_cb),
browser);
gtk_tool_item_set_tooltip_text (toolitem, desc);
if (desc && *desc)
gtk_tool_item_set_tooltip_text (toolitem, desc);
g_object_set_data (G_OBJECT (toolitem), "KatzeXbelItem", item);
break;
case KATZE_XBEL_ITEM_KIND_SEPARATOR: