65333f1ad9
Fix cache display problem when used as browser plugin - Fix problem with default auto_hide value adapted from upstream svn by David Coppa (maintainer)
29 lines
822 B
Plaintext
29 lines
822 B
Plaintext
$OpenBSD: patch-src_support_c,v 1.1 2009/04/14 09:38:39 ajacoutot Exp $
|
|
--- src/support.c.orig Mon Apr 13 18:07:53 2009
|
|
+++ src/support.c Mon Apr 13 18:12:50 2009
|
|
@@ -2061,6 +2061,24 @@ gint read_preference_int(gchar * key)
|
|
return value;
|
|
}
|
|
|
|
+gint read_preference_int_with_default(gchar * key, gint default_value)
|
|
+{
|
|
+ gint value = 0;
|
|
+#ifdef HAVE_GCONF
|
|
+ gchar *full_key = NULL;
|
|
+
|
|
+ full_key = g_strdup_printf("/apps/gnome-mplayer/preferences/%s", key);
|
|
+ value = gconf_client_get_int(gconf, full_key, NULL);
|
|
+ g_free(full_key);
|
|
+#else
|
|
+ if (g_key_file_has_key(config,"gnome-mplayer",key,NULL))
|
|
+ value = g_key_file_get_integer(config, "gnome-mplayer", key, NULL);
|
|
+ else
|
|
+ value = default_value;
|
|
+#endif
|
|
+ return value;
|
|
+}
|
|
+
|
|
gfloat read_preference_float(gchar * key)
|
|
{
|
|
gfloat value = 0;
|