[gnome-panel] panel: Fix GTK+ runtime check used to determine bookmark file



commit af737834bd5bf37268565a15cd050519f96a4963
Author: Vincent Untz <vuntz gnome org>
Date:   Mon May 14 20:06:10 2012 +0200

    panel: Fix GTK+ runtime check used to determine bookmark file
    
    gtk_version_check() doesn't return a boolean, but a string describing
    the version mismatch.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=676036

 gnome-panel/libpanel-util/panel-gtk.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnome-panel/libpanel-util/panel-gtk.c b/gnome-panel/libpanel-util/panel-gtk.c
index 8bbb124..8e76c69 100644
--- a/gnome-panel/libpanel-util/panel-gtk.c
+++ b/gnome-panel/libpanel-util/panel-gtk.c
@@ -85,7 +85,7 @@ panel_gtk_file_chooser_add_image_preview (GtkFileChooser *chooser)
 char *
 panel_gtk_get_bookmark_file (void)
 {
-	if (gtk_check_version (3, 5, 1))
+	if (gtk_check_version (3, 5, 1) == NULL)
 		return g_build_filename (g_get_user_config_dir (),
 					 "gtk-3.0", "bookmarks", NULL);
 	else



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]