Mercurial > pidgin
changeset 3512:1ea341091de8
[gaim-migrate @ 3584]
Fixes a segfault (thanks Zyk) in the docklet, and some warnings (Robot101) also
in the docklet
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Sun, 15 Sep 2002 14:29:41 +0000 |
parents | 7e1c6c16dd41 |
children | ab939e746bdd |
files | plugins/docklet/docklet.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/docklet/docklet.c Sun Sep 15 03:40:48 2002 +0000 +++ b/plugins/docklet/docklet.c Sun Sep 15 14:29:41 2002 +0000 @@ -98,7 +98,8 @@ } static void docklet_menu(GdkEventButton *event) { - GtkWidget *menu, *entry; + static GtkWidget *menu; + GtkWidget *entry; if (menu) { gtk_widget_destroy(menu); @@ -137,7 +138,7 @@ gtk_menu_append(GTK_MENU(docklet_awaymenu), entry); entry = gtk_menu_item_new_with_label(_("Away")); - gtk_menu_item_set_submenu(GTK_MENU_ITEM(entry), awaymenu); + gtk_menu_item_set_submenu(GTK_MENU_ITEM(entry), docklet_awaymenu); gtk_menu_append(GTK_MENU(menu), entry); } else { entry = gtk_menu_item_new_with_label(_("Back"));