diff options
author | Sam Spilsbury <sam.spilsbury@canonical.com> | 2011-02-21 17:42:12 +0800 |
---|---|---|
committer | Sam Spilsbury <sam.spilsbury@canonical.com> | 2011-02-21 17:42:12 +0800 |
commit | 89f8dcdf794d1c69b5f53caf30938a1926060274 (patch) | |
tree | cae0834e4e3c35e5ebe2d6b09953a16dec81b7e4 /gtk/window-decorator | |
parent | a72cbe29be4c74af5b0526212161e4b90625e37e (diff) | |
download | compiz-with-glib-mainloop-89f8dcdf794d1c69b5f53caf30938a1926060274.tar.gz compiz-with-glib-mainloop-89f8dcdf794d1c69b5f53caf30938a1926060274.tar.bz2 |
Fix title scales not updating on theme change
Diffstat (limited to 'gtk/window-decorator')
-rw-r--r-- | gtk/window-decorator/gtk-window-decorator.c | 3 | ||||
-rw-r--r-- | gtk/window-decorator/gtk-window-decorator.h | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gtk/window-decorator/gtk-window-decorator.c b/gtk/window-decorator/gtk-window-decorator.c index 1a9aa21..a8b569a 100644 --- a/gtk/window-decorator/gtk-window-decorator.c +++ b/gtk/window-decorator/gtk-window-decorator.c @@ -159,6 +159,7 @@ main (int argc, char *argv[]) settings->meta_button_layout_set = FALSE; #endif + settings->font = strdup ("Sans Bold 12"); for (i = 0; i < argc; i++) { @@ -407,6 +408,8 @@ main (int argc, char *argv[]) gwd_decor_frame_unref (bare_p); gwd_decor_frame_unref (switcher_p); + g_free (settings->font); + free (settings); return 0; diff --git a/gtk/window-decorator/gtk-window-decorator.h b/gtk/window-decorator/gtk-window-decorator.h index 200ffbb..4a8980a 100644 --- a/gtk/window-decorator/gtk-window-decorator.h +++ b/gtk/window-decorator/gtk-window-decorator.h @@ -232,6 +232,7 @@ typedef struct _decor_settings { double decoration_alpha; gboolean use_system_font; gint blur_type; + gchar *font; } decor_settings_t; #define DOUBLE_CLICK_ACTION_DEFAULT CLICK_ACTION_MAXIMIZE @@ -1090,6 +1091,11 @@ void set_frame_scale (decor_frame_t *frame, gchar *font_str); +void +set_frames_scales (gpointer key, + gpointer value, + gpointer user_data); + gboolean init_settings (WnckScreen *screen); |