[Webkit-unassigned] [Bug 63445] [GTK] Add back/forward menu to MiniBrowser toolbar
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jun 28 09:35:15 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=63445
Martin Robinson <mrobinson at webkit.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #98739|review? |review+
Flag| |
--- Comment #5 from Martin Robinson <mrobinson at webkit.org> 2011-06-28 09:35:15 PST ---
(From update of attachment 98739)
View in context: https://bugs.webkit.org/attachment.cgi?id=98739&action=review
> Tools/MiniBrowser/gtk/BrowserWindow.c:298
> + gchar *name = WKURLGetCString(url);
> + WKRelease(url);
> +
> + WKStringRef title = WKBackForwardListItemCopyTitle(item);
> + gchar *label = WKStringGetCString(title);
> + WKRelease(title);
> +
> + GtkAction *action = gtk_action_new(name, label, 0, 0);
> + g_free(name);
> + g_free(label);
> +
> + return action;
I think it's more appropriate to use char and bare free here since these types aren't allocated by GLib.
> Tools/MiniBrowser/gtk/BrowserWindow.c:330
> + guint i;
> +
> + if (!list)
> + return 0;
> +
> + guint listCount = WKArrayGetSize(list);
> + if (!listCount)
> + return 0;
> +
> + GtkWidget *menu = gtk_menu_new();
> + gboolean hasItems = FALSE;
> + for (i = 0; i < listCount; i++) {
Please declare i just above the for for loop instead of at the top.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list