Fix regression, no empty tooltips in bookmark bar
This commit is contained in:
parent
103df3d8cc
commit
17b8738be1
1 changed files with 4 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue