diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2011-08-03 09:08:56 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2011-08-03 09:08:56 +0000 |
commit | 4a7e2233c6995f679d14068ed05b2be33391920b (patch) | |
tree | a8fe563a5f6e5c8e3e26572d3dedc5e0789b33aa | |
parent | 7977d19f80b9e1b901bb00d507681126e279d0f1 (diff) |
applied a patch to fix quick search text color on dark themes.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2932 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/quick_search.c | 12 |
2 files changed, 6 insertions, 11 deletions
@@ -1,5 +1,10 @@ 2011-08-03 + * src/quick_search.c: applied a patch to fix quick search text color + on dark themes (thanks to speps). + +2011-08-03 + * libsylph/folder.[ch] src/summaryview.[ch]: reflect account preference for trash folder. summary_colorlabel_menu_item_activate_item_cb(): removed a warning. diff --git a/src/quick_search.c b/src/quick_search.c index dd8a20e6..a5d31cb4 100644 --- a/src/quick_search.c +++ b/src/quick_search.c @@ -51,7 +51,6 @@ static const struct { {QS_IN_ADDRESSBOOK, -1} }; -static GdkColor text_color; static GdkColor dim_color = {0, COLOR_DIM, COLOR_DIM, COLOR_DIM}; static void menu_activated (GtkWidget *menuitem, @@ -88,7 +87,6 @@ QuickSearch *quick_search_create(SummaryView *summaryview) GtkWidget *clear_btn; GtkWidget *image; GtkWidget *status_label; - GtkStyle *style; qsearch = g_new0(QuickSearch, 1); @@ -187,8 +185,6 @@ QuickSearch *quick_search_create(SummaryView *summaryview) gtk_widget_show_all(hbox); gtk_widget_hide(clear_btn); - style = gtk_widget_get_style(entry); - text_color = style->text[GTK_STATE_NORMAL]; entry_focus_out(entry, NULL, qsearch); return qsearch; @@ -358,13 +354,10 @@ static void menu_activated(GtkWidget *menuitem, QuickSearch *qsearch) static gboolean entry_focus_in(GtkWidget *entry, GdkEventFocus *event, QuickSearch *qsearch) { - GtkStyle *style; - if (!qsearch->entry_entered) { g_signal_handlers_block_by_func(entry, entry_changed, qsearch); gtk_entry_set_text(GTK_ENTRY(entry), ""); - style = gtk_widget_get_style(entry); - gtk_widget_modify_text(entry, GTK_STATE_NORMAL, &text_color); + gtk_widget_modify_text(entry, GTK_STATE_NORMAL, NULL); g_signal_handlers_unblock_by_func(entry, entry_changed, qsearch); } @@ -374,11 +367,8 @@ static gboolean entry_focus_in(GtkWidget *entry, GdkEventFocus *event, static gboolean entry_focus_out(GtkWidget *entry, GdkEventFocus *event, QuickSearch *qsearch) { - GtkStyle *style; - if (!qsearch->entry_entered) { g_signal_handlers_block_by_func(entry, entry_changed, qsearch); - style = gtk_widget_get_style(entry); gtk_widget_modify_text(entry, GTK_STATE_NORMAL, &dim_color); gtk_entry_set_text(GTK_ENTRY(entry), _("Search for Subject or From")); g_signal_handlers_unblock_by_func(entry, entry_changed, qsearch); |