removed redundant check which was supposed to catch a bug in webkit but doesn't do the trick anyway
svn path=/trunk/; revision=26088
This commit is contained in:
@ -822,24 +822,20 @@ build_menu (GList *items)
|
|||||||
for (list = items; list; list = g_list_next (list))
|
for (list = items; list; list = g_list_next (list))
|
||||||
{
|
{
|
||||||
WebKitWebHistoryItem *item = list->data;
|
WebKitWebHistoryItem *item = list->data;
|
||||||
|
GtkWidget *menu_item;
|
||||||
|
const gchar *title;
|
||||||
|
|
||||||
if (item)
|
title = webkit_web_history_item_get_title (item);
|
||||||
{
|
menu_item = gtk_menu_item_new_with_label (title);
|
||||||
GtkWidget *menu_item;
|
|
||||||
const gchar *title;
|
|
||||||
|
|
||||||
title = webkit_web_history_item_get_title (item);
|
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
|
||||||
menu_item = gtk_menu_item_new_with_label (title);
|
gtk_widget_show (menu_item);
|
||||||
|
|
||||||
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
|
g_signal_connect_object (menu_item, "activate",
|
||||||
gtk_widget_show (menu_item);
|
G_CALLBACK (menu_callback),
|
||||||
|
item, 0);
|
||||||
|
|
||||||
g_signal_connect_object (menu_item, "activate",
|
g_object_unref (item);
|
||||||
G_CALLBACK (menu_callback),
|
|
||||||
item, 0);
|
|
||||||
|
|
||||||
g_object_unref (item);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
g_list_free (items);
|
g_list_free (items);
|
||||||
|
Reference in New Issue
Block a user