[gthumb] specify a default value when getting the toolbar style



commit 3ba6019a6fabd1daf732a1e11080f63d9b440e9e
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Fri Jul 16 21:03:55 2010 +0200

    specify a default value when getting the toolbar style

 gthumb/gth-preferences.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gthumb/gth-preferences.c b/gthumb/gth-preferences.c
index 0b4bddb..1cca04f 100644
--- a/gthumb/gth-preferences.c
+++ b/gthumb/gth-preferences.c
@@ -139,7 +139,7 @@ gth_pref_get_real_toolbar_style (void)
 {
 	GthToolbarStyle toolbar_style;
 
-	toolbar_style = _g_enum_type_get_value_by_nick (GTH_TYPE_TOOLBAR_STYLE, eel_gconf_get_string (PREF_UI_TOOLBAR_STYLE, "system"))->value;
+	toolbar_style = eel_gconf_get_enum (PREF_UI_TOOLBAR_STYLE, GTH_TYPE_TOOLBAR_STYLE, GTH_TOOLBAR_STYLE_SYSTEM);
 	if (toolbar_style == GTH_TOOLBAR_STYLE_SYSTEM) {
 		char *system_style;
 



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