summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhang Xianwei <[email protected]>2018-11-26 13:18:28 +0800
committerlukefromdc <[email protected]>2018-11-26 19:40:15 +0000
commitf5ae497f5c7ba2510267447b37176ab0538e5dba (patch)
tree6c4a5aec0262853c22655095fdaf0956a976b0e6
parent8ec1bf032d8868cea042bd18f8d61a1469c7575e (diff)
downloadmate-settings-daemon-f5ae497f5c7ba2510267447b37176ab0538e5dba.tar.bz2
mate-settings-daemon-f5ae497f5c7ba2510267447b37176ab0538e5dba.tar.xz
osd-window: make the window smaller
Matches the gnome's mockups better. Signed-off-by: Zhang Xianwei <[email protected]>
-rw-r--r--plugins/common/msd-osd-window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/common/msd-osd-window.c b/plugins/common/msd-osd-window.c
index e0f1ad7..ec5cbb2 100644
--- a/plugins/common/msd-osd-window.c
+++ b/plugins/common/msd-osd-window.c
@@ -457,11 +457,11 @@ msd_osd_window_init (MsdOsdWindow *window)
GtkStyleContext *style = gtk_widget_get_style_context (GTK_WIDGET (window));
gtk_style_context_add_class (style, "window-frame");
- /* assume 130x130 on a 640x480 display and scale from there */
+ /* assume 110x110 on a 640x480 display and scale from there */
scalew = WidthOfScreen (gdk_x11_screen_get_xscreen (screen)) / (640.0 * window->priv->scale_factor);
scaleh = HeightOfScreen (gdk_x11_screen_get_xscreen (screen)) / (480.0 * window->priv->scale_factor);
scale = MIN (scalew, scaleh);
- size = 130 * MAX (1, scale);
+ size = 110 * MAX (1, scale);
gtk_window_set_default_size (GTK_WINDOW (window), size, size);