gimp r26088 - trunk/plug-ins/help-browser
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r26088 - trunk/plug-ins/help-browser
- Date: Tue, 8 Jul 2008 08:50:24 +0000 (UTC)
Author: neo
Date: Tue Jul 8 08:50:24 2008
New Revision: 26088
URL: http://svn.gnome.org/viewvc/gimp?rev=26088&view=rev
Log:
removed redundant check which was supposed to catch a bug in webkit but doesn't do the trick anyway
Modified:
trunk/plug-ins/help-browser/dialog.c
Modified: trunk/plug-ins/help-browser/dialog.c
==============================================================================
--- trunk/plug-ins/help-browser/dialog.c (original)
+++ trunk/plug-ins/help-browser/dialog.c Tue Jul 8 08:50:24 2008
@@ -822,24 +822,20 @@
for (list = items; list; list = g_list_next (list))
{
WebKitWebHistoryItem *item = list->data;
+ GtkWidget *menu_item;
+ const gchar *title;
- if (item)
- {
- GtkWidget *menu_item;
- const gchar *title;
-
- title = webkit_web_history_item_get_title (item);
- menu_item = gtk_menu_item_new_with_label (title);
-
- gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
- gtk_widget_show (menu_item);
-
- g_signal_connect_object (menu_item, "activate",
- G_CALLBACK (menu_callback),
- item, 0);
+ title = webkit_web_history_item_get_title (item);
+ menu_item = gtk_menu_item_new_with_label (title);
- g_object_unref (item);
- }
+ gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
+ gtk_widget_show (menu_item);
+
+ g_signal_connect_object (menu_item, "activate",
+ G_CALLBACK (menu_callback),
+ item, 0);
+
+ g_object_unref (item);
}
g_list_free (items);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]