From 03a5b92abbe1d4a7fdf308cf125de6174623ae0d Mon Sep 17 00:00:00 2001 From: Joe Marcus Clarke Date: Sat, 2 Aug 2003 04:48:57 +0000 Subject: Fix a bus error on logout on -CURRENT if one of the panels contained a drawer. This patch has been fed back to GNOME via Bugzilla. More details can be found here: http://bugzilla.gnome.org/show_bug.cgi?id=96423 --- x11/gnome-panel/Makefile | 1 + x11/gnome-panel/files/patch-gnome-panel_panel.c | 25 +++++++++++++++++++++++++ x11/gnomepanel/Makefile | 1 + x11/gnomepanel/files/patch-gnome-panel_panel.c | 25 +++++++++++++++++++++++++ 4 files changed, 52 insertions(+) create mode 100644 x11/gnome-panel/files/patch-gnome-panel_panel.c create mode 100644 x11/gnomepanel/files/patch-gnome-panel_panel.c (limited to 'x11') diff --git a/x11/gnome-panel/Makefile b/x11/gnome-panel/Makefile index 3ae2260abe5e..caa6e7f78e31 100644 --- a/x11/gnome-panel/Makefile +++ b/x11/gnome-panel/Makefile @@ -7,6 +7,7 @@ PORTNAME= gnomepanel PORTVERSION= 2.2.2.2 +PORTREVISION= 1 CATEGORIES= x11 gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/gnome-panel/2.2 diff --git a/x11/gnome-panel/files/patch-gnome-panel_panel.c b/x11/gnome-panel/files/patch-gnome-panel_panel.c new file mode 100644 index 000000000000..4c51bc47f38c --- /dev/null +++ b/x11/gnome-panel/files/patch-gnome-panel_panel.c @@ -0,0 +1,25 @@ +--- gnome-panel/panel.c.orig Fri Aug 1 21:48:35 2003 ++++ gnome-panel/panel.c Fri Aug 1 21:48:37 2003 +@@ -569,18 +569,18 @@ + + if (pd->menu) + g_object_unref (pd->menu); +- pd->menu = NULL; +- +- pd->panel = NULL; + + if (pd->deactivate_idle != 0) + g_source_remove (pd->deactivate_idle); +- pd->deactivate_idle = 0; + + g_object_set_data (G_OBJECT (widget), "PanelData", NULL); + + panel_list = g_slist_remove (panel_list, pd); + g_free (pd); ++ ++ pd->menu = NULL; ++ pd->panel = NULL; ++ pd->deactivate_idle = 0; + } + + static void diff --git a/x11/gnomepanel/Makefile b/x11/gnomepanel/Makefile index 3ae2260abe5e..caa6e7f78e31 100644 --- a/x11/gnomepanel/Makefile +++ b/x11/gnomepanel/Makefile @@ -7,6 +7,7 @@ PORTNAME= gnomepanel PORTVERSION= 2.2.2.2 +PORTREVISION= 1 CATEGORIES= x11 gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/gnome-panel/2.2 diff --git a/x11/gnomepanel/files/patch-gnome-panel_panel.c b/x11/gnomepanel/files/patch-gnome-panel_panel.c new file mode 100644 index 000000000000..4c51bc47f38c --- /dev/null +++ b/x11/gnomepanel/files/patch-gnome-panel_panel.c @@ -0,0 +1,25 @@ +--- gnome-panel/panel.c.orig Fri Aug 1 21:48:35 2003 ++++ gnome-panel/panel.c Fri Aug 1 21:48:37 2003 +@@ -569,18 +569,18 @@ + + if (pd->menu) + g_object_unref (pd->menu); +- pd->menu = NULL; +- +- pd->panel = NULL; + + if (pd->deactivate_idle != 0) + g_source_remove (pd->deactivate_idle); +- pd->deactivate_idle = 0; + + g_object_set_data (G_OBJECT (widget), "PanelData", NULL); + + panel_list = g_slist_remove (panel_list, pd); + g_free (pd); ++ ++ pd->menu = NULL; ++ pd->panel = NULL; ++ pd->deactivate_idle = 0; + } + + static void -- cgit v1.2.3