1 |
mrpouet 09/11/04 13:14:25 |
2 |
|
3 |
Added: hardware-monitor-1.4.2-create-viewer-type-key.patch |
4 |
Log: |
5 |
Fix bug #288552, /viewer-type key did not exist key, it caused gconf_client to returned a NULL GConfEntry which was stored in a Gnome::GConf::Entry object as gobject_ field, then Gnome::GConf::Entry::set_value() segfaulted (gobj() == NULL) |
6 |
(Portage version: 2.2_rc48/cvs/Linux x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 gnome-extra/hardware-monitor/files/hardware-monitor-1.4.2-create-viewer-type-key.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/gnome-extra/hardware-monitor/files/hardware-monitor-1.4.2-create-viewer-type-key.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/gnome-extra/hardware-monitor/files/hardware-monitor-1.4.2-create-viewer-type-key.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: hardware-monitor-1.4.2-create-viewer-type-key.patch |
15 |
=================================================================== |
16 |
From: Romain Perier <mrpouet@g.o> |
17 |
Date: Wed, 4 Nov 2009 13:01:01 +0100 |
18 |
Subject: Set and create /viewer_type key to avoid to have a NULL GConfEntry stored in a Gnome::Gconf::Entry object retourned by gconf_client->get_entry(), when this key does not exist yet. |
19 |
|
20 |
--- |
21 |
src/applet.cpp | 1 + |
22 |
1 files changed, 1 insertions(+), 0 deletions(-) |
23 |
|
24 |
--- a/src/applet.cpp |
25 |
+++ b/src/applet.cpp |
26 |
@@ -81,6 +81,7 @@ Applet::Applet(PanelApplet *a) |
27 |
// circumvent GConf bug (FIXME: report it) |
28 |
gconf_client->set(gconf_dir + "/dummy", 0); |
29 |
gconf_client->set(gconf_dir + "/monitors/dummy", 0); |
30 |
+ gconf_client->set(gconf_dir + "/viewer_type", "curve"); |
31 |
|
32 |
// connect GConf |
33 |
gconf_client->notify_add(gconf_dir + "/viewer_type", |