slightly increase the popup window size again (130x130 at 640x480 and

2007-11-11  Jens Granseuer  <jensgr@gmx.net>

	* gsd-media-keys-window.c: (gsd_media_keys_window_init): slightly
	increase the popup window size again (130x130 at 640x480 and scaled
	from there)

svn path=/trunk/; revision=8273
This commit is contained in:
Jens Granseuer 2007-11-11 12:04:00 +00:00 committed by Jens Granseuer
parent b031fb0e12
commit 85136d042d
2 changed files with 10 additions and 4 deletions

View file

@ -1,3 +1,9 @@
2007-11-11 Jens Granseuer <jensgr@gmx.net>
* gsd-media-keys-window.c: (gsd_media_keys_window_init): slightly
increase the popup window size again (130x130 at 640x480 and scaled
from there)
2007-11-10 Jens Granseuer <jensgr@gmx.net>
The media window popup has a fixed size 300x300 when running in

View file

@ -910,11 +910,11 @@ gsd_media_keys_window_init (GsdMediaKeysWindow *window)
gtk_window_set_decorated (GTK_WINDOW (window), FALSE);
gtk_widget_set_app_paintable (GTK_WIDGET (window), TRUE);
/* assume 100x100 on a 800x600 display and scale from there */
scalew = gdk_screen_get_width (screen) / 800.0;
scaleh = gdk_screen_get_height (screen) / 600.0;
/* assume 130x130 on a 640x480 display and scale from there */
scalew = gdk_screen_get_width (screen) / 640.0;
scaleh = gdk_screen_get_height (screen) / 480.0;
scale = MIN (scalew, scaleh);
size = 100 * MAX (1, scale);
size = 130 * MAX (1, scale);
gtk_window_set_default_size (GTK_WINDOW (window), size, size);
g_signal_connect (window, "expose-event", G_CALLBACK (on_expose_event), window);