diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/alertpanel.c | 11 | ||||
-rw-r--r-- | src/headerview.c | 19 |
2 files changed, 30 insertions, 0 deletions
diff --git a/src/alertpanel.c b/src/alertpanel.c index 9e1313a8..7da313ce 100644 --- a/src/alertpanel.c +++ b/src/alertpanel.c @@ -230,6 +230,7 @@ static void alertpanel_create(const gchar *title, gtk_window_set_modal(GTK_WINDOW(dialog), TRUE); manage_window_set_transient(GTK_WINDOW(dialog)); gtk_dialog_set_has_separator(GTK_DIALOG(dialog), FALSE); + gtk_widget_realize(dialog); g_signal_connect(G_OBJECT(dialog), "delete_event", G_CALLBACK(alertpanel_deleted), (gpointer)G_ALERTCANCEL); @@ -297,6 +298,16 @@ static void alertpanel_create(const gchar *title, gtk_label_set_line_wrap(GTK_LABEL(label), TRUE); gtk_label_set_selectable(GTK_LABEL(label), TRUE); GTK_WIDGET_UNSET_FLAGS(label, GTK_CAN_FOCUS); +#ifdef G_OS_WIN32 + { + GtkStyle *style; + style = gtk_widget_get_style(dialog); + gtk_widget_modify_base(label, GTK_STATE_ACTIVE, + &style->base[GTK_STATE_SELECTED]); + gtk_widget_modify_text(label, GTK_STATE_ACTIVE, + &style->text[GTK_STATE_SELECTED]); + } +#endif if (can_disable) { hbox = gtk_hbox_new(FALSE, 0); diff --git a/src/headerview.c b/src/headerview.c index deb17861..a47adbb1 100644 --- a/src/headerview.c +++ b/src/headerview.c @@ -144,6 +144,9 @@ HeaderView *headerview_create(void) void headerview_init(HeaderView *headerview) { static PangoFontDescription *boldfont = NULL; +#ifdef G_OS_WIN32 + GtkStyle *style; +#endif if (!boldfont) { boldfont = pango_font_description_new(); @@ -157,6 +160,22 @@ void headerview_init(HeaderView *headerview) gtk_widget_modify_font(headerview->subject_header_label, boldfont); } +#ifdef G_OS_WIN32 +#define SET_LABEL_STYLE(label) \ + style = gtk_widget_get_style(label); \ + gtk_widget_modify_base(label, GTK_STATE_ACTIVE, \ + &style->base[GTK_STATE_SELECTED]); \ + gtk_widget_modify_text(label, GTK_STATE_ACTIVE, \ + &style->text[GTK_STATE_SELECTED]); + + SET_LABEL_STYLE(headerview->from_body_label); + SET_LABEL_STYLE(headerview->to_body_label); + SET_LABEL_STYLE(headerview->ng_body_label); + SET_LABEL_STYLE(headerview->subject_body_label); + +#undef SET_LABEL_STYLE +#endif + headerview_clear(headerview); headerview_set_visibility(headerview, prefs_common.display_header_pane); |