diff options
author | 2007-06-22 21:45:24 +0000 | |
---|---|---|
committer | 2007-06-22 21:45:24 +0000 | |
commit | 0add63b33d46f009bcd925b207f6c4f5b2d0d99b (patch) | |
tree | 6c0efab9b17308db0d7bc3dcbb6688115af1c144 /x11-apps/grandr/files/0.1-fix-segfault-without-gconf-value.patch | |
parent | Marked ~hppa (bug #182551). (diff) | |
download | historical-0add63b33d46f009bcd925b207f6c4f5b2d0d99b.tar.gz historical-0add63b33d46f009bcd925b207f6c4f5b2d0d99b.tar.bz2 historical-0add63b33d46f009bcd925b207f6c4f5b2d0d99b.zip |
Add new GTK+-based tool to configure the X output using the RandR 1.2 extension. Includes 2 patches from upstream git, and one typo fix that isn't upstream yet.
Package-Manager: portage-2.1.2.7
Diffstat (limited to 'x11-apps/grandr/files/0.1-fix-segfault-without-gconf-value.patch')
-rw-r--r-- | x11-apps/grandr/files/0.1-fix-segfault-without-gconf-value.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/x11-apps/grandr/files/0.1-fix-segfault-without-gconf-value.patch b/x11-apps/grandr/files/0.1-fix-segfault-without-gconf-value.patch new file mode 100644 index 000000000000..fe4cad78985b --- /dev/null +++ b/x11-apps/grandr/files/0.1-fix-segfault-without-gconf-value.patch @@ -0,0 +1,13 @@ +diff --git a/src/grandr.c b/src/grandr.c +index e3e619e..8f0980b 100644 +--- a/src/grandr.c ++++ b/src/grandr.c +@@ -1381,7 +1381,7 @@ set_hotkeys_view (GtkListStore *hotkey_store) + NULL); + command = gconf_client_get_string(client, GCONF_KEY2, + NULL); +- if (strcmp(key, HOTKEY) == 0 && strcmp(command, APP_NAME) == 0) { ++ if (key && strcmp(key, HOTKEY) == 0 && command && strcmp(command, APP_NAME) == 0) { + gtk_toggle_button_set_active (hotkey_cbtn, TRUE); + } else { + gtk_toggle_button_set_active (hotkey_cbtn, FALSE); |