diff options
author | Emmanuele Bassi <ebassi@cvs.gnome.org> | 2006-07-24 00:45:56 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@src.gnome.org> | 2006-07-24 00:45:56 +0000 |
commit | de0a66357451e4d47696bb9cea84af79ffd21938 (patch) | |
tree | 7ab2320a1a5672be5f10f688cb619eed0c8486f6 | |
parent | 31cfb30e4078dbebaa6ae0f0a4307253598976bb (diff) | |
download | gnome-dictionary-de0a66357451e4d47696bb9cea84af79ffd21938.tar.gz |
Allow the definition window to take up at most half of the screen size.
2006-07-24 Emmanuele Bassi <ebassi@cvs.gnome.org>
* src/gdict-applet.c:
(set_window_default_size): Allow the definition window to
take up at most half of the screen size. (#348333, patch
by William Jon McCann)
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | src/gdict-applet.c | 4 |
2 files changed, 9 insertions, 2 deletions
@@ -1,5 +1,12 @@ 2006-07-24 Emmanuele Bassi <ebassi@cvs.gnome.org> + * src/gdict-applet.c: + (set_window_default_size): Allow the definition window to + take up at most half of the screen size. (#348333, patch + by William Jon McCann) + +2006-07-24 Emmanuele Bassi <ebassi@cvs.gnome.org> + * src/gdict-pref-dialog.h: * data/gnome-dictionary.schemas.in: Add two more keys: 'sidebar-page' and 'sidebar-width', for remembering the page and the size of the diff --git a/src/gdict-applet.c b/src/gdict-applet.c index fee1cab..2ac0a61 100644 --- a/src/gdict-applet.c +++ b/src/gdict-applet.c @@ -168,8 +168,8 @@ set_window_default_size (GdictApplet *applet) gdk_screen_get_monitor_geometry (screen, monitor_num, &monitor); - width = MIN (width, monitor.width * 3 / 4); - height = MIN (height, monitor.height * 3 / 4); + width = MIN (width, monitor.width * 1 / 2); + height = MIN (height, monitor.height * 1 / 2); /* Set size */ gtk_widget_set_size_request (priv->frame, width, height); |