Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in xfce-extra/xfce4-timer-plugin/files: xfce4-timer-plugin-0.6.1-segfault_with_48_panel.patch
Date: Sat, 29 Jan 2011 07:21:44
Message-Id: 20110129072129.743FA20057@flycatcher.gentoo.org
1 ssuominen 11/01/29 07:21:29
2
3 Added:
4 xfce4-timer-plugin-0.6.1-segfault_with_48_panel.patch
5 Log:
6 Fix segmentation fault with xfce4-panel >= 4.8 wrt #352988 by Johannes Geiss.
7
8 (Portage version: 2.2.0_alpha19/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.1 xfce-extra/xfce4-timer-plugin/files/xfce4-timer-plugin-0.6.1-segfault_with_48_panel.patch
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/xfce-extra/xfce4-timer-plugin/files/xfce4-timer-plugin-0.6.1-segfault_with_48_panel.patch?rev=1.1&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/xfce-extra/xfce4-timer-plugin/files/xfce4-timer-plugin-0.6.1-segfault_with_48_panel.patch?rev=1.1&content-type=text/plain
15
16 Index: xfce4-timer-plugin-0.6.1-segfault_with_48_panel.patch
17 ===================================================================
18 From 03ff202f818fe3f075a6c864ab688b57b1bb1cb4 Mon Sep 17 00:00:00 2001
19 From: Nick Schermer <nick@××××.org>
20 Date: Thu, 27 Jan 2011 21:18:45 +0000
21 Subject: Fix segfault when creating plugin in 4.8 panel.
22
23 Used invalid function type to construct the plugin.
24 ---
25 diff --git a/src/xfcetimer.c b/src/xfcetimer.c
26 index c27d37a..de7bd2b 100644
27 --- a/src/xfcetimer.c
28 +++ b/src/xfcetimer.c
29 @@ -42,7 +42,7 @@
30
31 #include "xfcetimer.h"
32
33 -static gboolean create_plugin_control (XfcePanelPlugin *plugin);
34 +static void create_plugin_control (XfcePanelPlugin *plugin);
35 XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL(create_plugin_control);
36
37 void make_menu(plugin_data *pd);
38 @@ -1366,7 +1366,7 @@ static void plugin_create_options (XfcePanelPlugin *plugin,plugin_data *pd) {
39 *
40 * Returns %TRUE on success, %FALSE on failure.
41 **/
42 -static gboolean
43 +static void
44 create_plugin_control (XfcePanelPlugin *plugin)
45 {
46
47 @@ -1461,7 +1461,6 @@ create_plugin_control (XfcePanelPlugin *plugin)
48 xfce_panel_plugin_menu_show_configure (plugin);
49 g_signal_connect (plugin, "configure-plugin",
50 G_CALLBACK (plugin_create_options), pd);
51 - return(TRUE);
52 }
53
54
55 --
56 cgit v0.8.3.4