Skip to content
Permalink
Browse files

osd-window: make the window smaller

Matches the gnome's mockups better.

Signed-off-by: Zhang Xianwei <zhang.xianwei8@zte.com.cn>
  • Loading branch information...
zhangxianwei8 authored and lukefromdc committed Nov 26, 2018
1 parent 8ec1bf0 commit f5ae497f5c7ba2510267447b37176ab0538e5dba
Showing with 2 additions and 2 deletions.
  1. +2 −2 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);

0 comments on commit f5ae497

Please sign in to comment.
You can’t perform that action at this time.