Font Selection: Use a local css_provider instead of the default one
[pspp] / src / ui / gui / psppire-window.c
index 6fb0b87c47209d6992d43db005dc0ecc9621cc29..97cfe6aed0a16c9b70723ff3409a5a2184fc2ef4 100644 (file)
@@ -111,8 +111,8 @@ psppire_window_set_title (PsppireWindow *window)
   int minor = 1;
   sscanf (bare_version, "%*d.%d.%*d", &minor);
   if (minor % 2)
-    g_string_append (title, " - UNRELEASED TEST SOFTWARE!  NOT FOR PRODUCTION USE.");
-
+    g_string_append_printf (title, " - Test version! Please report bugs to %s", PACKAGE_BUGREPORT);
+  
   gtk_window_set_title (GTK_WINDOW (window), title->str);
 
   g_string_free (title, TRUE);
@@ -196,7 +196,6 @@ psppire_window_set_property (GObject         *object,
                           : NULL);
       psppire_window_name_changed (window);
       break;
-      break;
     case PROP_ID:
       g_free (window->id);
       window->id = g_value_dup_string (value);
@@ -404,6 +403,10 @@ psppire_window_init (PsppireWindow *window)
   window->description = NULL;
   window->list_name = NULL;
 
+  gtk_style_context_add_provider_for_screen (gdk_screen_get_default (),
+                                            GTK_STYLE_PROVIDER (gtk_css_provider_get_default ()),
+                                            GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
+  
   window->menuitem_table  = g_hash_table_new (g_str_hash, g_str_equal);