diff options
author | Josh Rickmar <jrick@devio.us> | 2012-07-17 14:03:40 -0400 |
---|---|---|
committer | Josh Rickmar <jrick@devio.us> | 2012-07-17 14:03:40 -0400 |
commit | b3dee20351a2a2735a72a67f334b907e45782b0d (patch) | |
tree | 638b232f7eee9e9ae04f91b92a8a7dba1fd40fa9 /xombrero.c | |
parent | 4471ccf89140621442ad46df879aede23eaf953a (diff) | |
download | xombrero-b3dee20351a2a2735a72a67f334b907e45782b0d.tar.gz |
Change the CSS slightly so that url and statusbar text is not
invisible on windows, and add some additional inline CSS hacks for Windows into the source to beautify the tabs a bit. With this change, we should be ready to re-enable the default windows gtk3 theme instead of disabling user themes.
Diffstat (limited to 'xombrero.c')
-rw-r--r-- | xombrero.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/xombrero.c b/xombrero.c index 40a6553..d3555fa 100644 --- a/xombrero.c +++ b/xombrero.c @@ -8283,6 +8283,9 @@ setup_css(void) GdkScreen *screen; GFile *file; char path[PATH_MAX]; +#if defined __MINGW32__ + GtkCssProvider *windows_hacks; +#endif provider = gtk_css_provider_new(); display = gdk_display_get_default(); @@ -8293,6 +8296,16 @@ setup_css(void) gtk_style_context_add_provider_for_screen(screen, GTK_STYLE_PROVIDER(provider), GTK_STYLE_PROVIDER_PRIORITY_APPLICATION); +#if defined __MINGW32__ + windows_hacks = gtk_css_provider_new(); + gtk_css_provider_load_from_data(windows_hacks, + ".notebook tab {\n" + " border-width: 0px;\n" + "}", -1, NULL); + gtk_style_context_add_provider_for_screen(screen, + GTK_STYLE_PROVIDER(windows_hacks), + GTK_STYLE_PROVIDER_PRIORITY_APPLICATION); +#endif g_object_unref(file); } #endif |