aboutsummaryrefslogtreecommitdiff
path: root/src/alertpanel.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-10-10 05:03:10 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-10-10 05:03:10 +0000
commit5be8bc64abeef5279a06b492f0e9a8cdd141e188 (patch)
tree19b10916bc8ccb5662209959baa741cb9a08b531 /src/alertpanel.c
parent3e185903fd0f6992eed7900fc52e48fa6ae078ee (diff)
modified the style of labels which are set not to have focus to make the selection visible.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1222 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/alertpanel.c')
-rw-r--r--src/alertpanel.c11
1 files changed, 11 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);