diff options
author | Romain Perier <mrpouet@gentoo.org> | 2009-11-04 13:14:24 +0000 |
---|---|---|
committer | Romain Perier <mrpouet@gentoo.org> | 2009-11-04 13:14:24 +0000 |
commit | 56ba561d654a0c422b0bad06116a3431e7526bb8 (patch) | |
tree | a61f3091b00530e6ef2036e5cfb5a4c32a1d02aa /gnome-extra/hardware-monitor/files | |
parent | Fix typo, closes bug #291801 by Zeev Tarantov. (diff) | |
download | gentoo-2-56ba561d654a0c422b0bad06116a3431e7526bb8.tar.gz gentoo-2-56ba561d654a0c422b0bad06116a3431e7526bb8.tar.bz2 gentoo-2-56ba561d654a0c422b0bad06116a3431e7526bb8.zip |
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)
(Portage version: 2.2_rc48/cvs/Linux x86_64)
Diffstat (limited to 'gnome-extra/hardware-monitor/files')
-rw-r--r-- | gnome-extra/hardware-monitor/files/hardware-monitor-1.4.2-create-viewer-type-key.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gnome-extra/hardware-monitor/files/hardware-monitor-1.4.2-create-viewer-type-key.patch b/gnome-extra/hardware-monitor/files/hardware-monitor-1.4.2-create-viewer-type-key.patch new file mode 100644 index 000000000000..101f8f3e55d1 --- /dev/null +++ b/gnome-extra/hardware-monitor/files/hardware-monitor-1.4.2-create-viewer-type-key.patch @@ -0,0 +1,19 @@ +From: Romain Perier <mrpouet@gentoo.org> +Date: Wed, 4 Nov 2009 13:01:01 +0100 +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. + +--- + src/applet.cpp | 1 + + 1 files changed, 1 insertions(+), 0 deletions(-) + +--- a/src/applet.cpp ++++ b/src/applet.cpp +@@ -81,6 +81,7 @@ Applet::Applet(PanelApplet *a) + // circumvent GConf bug (FIXME: report it) + gconf_client->set(gconf_dir + "/dummy", 0); + gconf_client->set(gconf_dir + "/monitors/dummy", 0); ++ gconf_client->set(gconf_dir + "/viewer_type", "curve"); + + // connect GConf + gconf_client->notify_add(gconf_dir + "/viewer_type", + |