aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2014-11-07 09:55:21 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2014-11-07 09:55:21 +0000
commit18e7b57036bdf4df3707db72eba42d41a01ba222 (patch)
treedd1b2b3c0b235552b1c2a01ecd03227d51f399ab /src
parent0965852c6383744c63a0cd3262ac8a9c9892da8c (diff)
made some dialogs size DPI-aware.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3436 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src')
-rw-r--r--src/about.c2
-rw-r--r--src/addressbook.c2
-rw-r--r--src/compose.c8
-rw-r--r--src/rpop3.c4
4 files changed, 8 insertions, 8 deletions
diff --git a/src/about.c b/src/about.c
index bdb70222..7269f70d 100644
--- a/src/about.c
+++ b/src/about.c
@@ -90,7 +90,7 @@ static void about_create(void)
window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_window_set_title(GTK_WINDOW(window), _("About"));
gtk_container_set_border_width(GTK_CONTAINER(window), 8);
- gtk_widget_set_size_request(window, 518, 358);
+ gtk_widget_set_size_request(window, 518 * gtkut_get_dpi_multiplier(), 358 * gtkut_get_dpi_multiplier());
gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER);
g_signal_connect(G_OBJECT(window), "delete_event",
G_CALLBACK(gtk_widget_hide_on_delete), NULL);
diff --git a/src/addressbook.c b/src/addressbook.c
index d830ac2c..3c023bc2 100644
--- a/src/addressbook.c
+++ b/src/addressbook.c
@@ -614,7 +614,7 @@ static void addressbook_create(void)
gtk_window_set_title(GTK_WINDOW(window), _("Address book"));
gtk_window_set_wmclass(GTK_WINDOW(window), "addressbook", "Sylpheed");
gtk_window_set_policy(GTK_WINDOW(window), FALSE, TRUE, TRUE);
- gtk_widget_set_size_request(window, 620, 360);
+ gtk_widget_set_size_request(window, 620 * gtkut_get_dpi_multiplier(), 360 * gtkut_get_dpi_multiplier());
gtk_window_set_default_size(GTK_WINDOW(window),
prefs_common.addressbook_width,
prefs_common.addressbook_height);
diff --git a/src/compose.c b/src/compose.c
index f1aaa65d..9ff789c9 100644
--- a/src/compose.c
+++ b/src/compose.c
@@ -3181,7 +3181,7 @@ static gboolean compose_check_recipients(Compose *compose)
gtk_window_set_position(GTK_WINDOW(window),
GTK_WIN_POS_CENTER_ON_PARENT);
gtk_window_set_modal(GTK_WINDOW(window), TRUE);
- gtk_widget_set_size_request(window, 480, -1);
+ gtk_widget_set_size_request(window, 480 * gtkut_get_dpi_multiplier(), -1);
gtk_widget_realize(window);
g_signal_connect(G_OBJECT(window), "delete_event",
G_CALLBACK(check_recp_delete_event), &state);
@@ -3280,7 +3280,7 @@ static gboolean compose_check_recipients(Compose *compose)
GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS);
gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(scrwin),
GTK_SHADOW_IN);
- gtk_widget_set_size_request(scrwin, -1, 180);
+ gtk_widget_set_size_request(scrwin, -1, 180 * gtkut_get_dpi_multiplier());
gtk_box_pack_start(GTK_BOX(vbox), scrwin, TRUE, TRUE, 0);
store = gtk_tree_store_new(1, G_TYPE_STRING);
@@ -5399,7 +5399,7 @@ static Compose *compose_create(PrefsAccount *account, ComposeMode mode)
GTK_POLICY_ALWAYS);
gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(attach_scrwin),
GTK_SHADOW_IN);
- gtk_widget_set_size_request(attach_scrwin, -1, 80);
+ gtk_widget_set_size_request(attach_scrwin, -1, 80 * gtkut_get_dpi_multiplier());
store = gtk_list_store_new(N_ATTACH_COLS, G_TYPE_STRING, G_TYPE_STRING,
G_TYPE_STRING, G_TYPE_POINTER);
@@ -6633,7 +6633,7 @@ static void compose_attach_property_create(gboolean *cancelled)
debug_print("Creating attach property window...\n");
window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
- gtk_widget_set_size_request(window, 480, -1);
+ gtk_widget_set_size_request(window, 480 * gtkut_get_dpi_multiplier(), -1);
gtk_container_set_border_width(GTK_CONTAINER(window), 8);
gtk_window_set_title(GTK_WINDOW(window), _("Properties"));
gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER);
diff --git a/src/rpop3.c b/src/rpop3.c
index cc903dc6..571671fc 100644
--- a/src/rpop3.c
+++ b/src/rpop3.c
@@ -357,7 +357,7 @@ static void rpop3_window_create(PrefsAccount *account)
g_snprintf(buf, sizeof(buf), _("%s - POP3 Remote mailbox"),
account->account_name ? account->account_name : "");
gtk_window_set_title(GTK_WINDOW(window), buf);
- gtk_widget_set_size_request(window, 640, -1);
+ gtk_widget_set_size_request(window, 640 * gtkut_get_dpi_multiplier(), -1);
gtk_window_set_policy(GTK_WINDOW(window), FALSE, TRUE, TRUE);
g_signal_connect(G_OBJECT(window), "delete_event",
G_CALLBACK(window_deleted), NULL);
@@ -393,7 +393,7 @@ static void rpop3_window_create(PrefsAccount *account)
GTK_POLICY_AUTOMATIC);
gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(scrwin),
GTK_SHADOW_IN);
- gtk_widget_set_size_request(scrwin, -1, 320);
+ gtk_widget_set_size_request(scrwin, -1, 320 * gtkut_get_dpi_multiplier());
store = gtk_list_store_new(N_COLS, G_TYPE_INT, G_TYPE_STRING,
G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING,