diff options
author | Marco Peereboom <marco@conformal.com> | 2011-10-17 15:09:18 -0500 |
---|---|---|
committer | Marco Peereboom <marco@conformal.com> | 2011-10-17 15:09:18 -0500 |
commit | 5d59581f05930cdc31b26b0a6d163baa035c0e89 (patch) | |
tree | 9d64f7b88ff28637a495a941fca61cd0f95ef73f | |
parent | dec7c1c554c23f09e7d3a4047eb32ef5af726ba0 (diff) | |
download | xombrero-5d59581f05930cdc31b26b0a6d163baa035c0e89.tar.gz |
Make https coloring work in gtk3
-rw-r--r-- | xxxterm.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xxxterm.c b/xxxterm.c index 51a83a0..e9955fb 100644 --- a/xxxterm.c +++ b/xxxterm.c @@ -67,7 +67,7 @@ void arc4random_buf(void *, size_t); #include <gtk/gtk.h> #include <gdk/gdkkeysyms.h> -#if GTK_CHECK_VERSION(3,0,0) +#if GTK_CHECK_VERSION(3, 0, 0) /* we still use GDK_* instead of GDK_KEY_* */ #include <gdk/gdkkeysyms-compat.h> #endif @@ -6468,7 +6468,11 @@ color_address_bar(gpointer p) goto done; white: gdk_color_parse(col_str, &color); +#if GTK_CHECK_VERSION(3, 0, 0) + gtk_widget_modify_bg(t->uri_entry, GTK_STATE_NORMAL, &color); +#else gtk_widget_modify_base(t->uri_entry, GTK_STATE_NORMAL, &color); +#endif if (!strcmp(col_str, XT_COLOR_WHITE)) statusbar_modify_attr(t, col_str, XT_COLOR_BLACK); |