[gnome-disk-utility] Bump window height to 900 pixels and request window to be centered
- From: David Zeuthen <davidz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-disk-utility] Bump window height to 900 pixels and request window to be centered
- Date: Tue, 21 May 2013 15:35:41 +0000 (UTC)
commit e1aeb73be20296e38d2c2822a7cb3cd91d2fa02f
Author: David Zeuthen <zeuthen gmail com>
Date: Tue May 21 08:35:03 2013 -0700
Bump window height to 900 pixels and request window to be centered
Signed-off-by: David Zeuthen <zeuthen gmail com>
src/disks/gduwindow.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/disks/gduwindow.c b/src/disks/gduwindow.c
index cd15d30..17a1c26 100644
--- a/src/disks/gduwindow.c
+++ b/src/disks/gduwindow.c
@@ -1273,7 +1273,9 @@ gdu_window_constructed (GObject *object)
gtk_widget_reparent (window->main_hpane, GTK_WIDGET (window));
gtk_window_set_title (GTK_WINDOW (window), _("Disks"));
- gtk_window_set_default_size (GTK_WINDOW (window), 800, 600);
+ /* Fortunately the window manager resizes the window if it's too tall for the monitor.. so 900 pixels is
fine */
+ gtk_window_set_default_size (GTK_WINDOW (window), 800, 900);
+ gtk_window_set_position (GTK_WINDOW (window), GTK_WIN_POS_CENTER);
gtk_container_set_border_width (GTK_CONTAINER (window), 12);
/* detach overlay toolbar and attach it to the right place - see also update_for_multi_selection() */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]