[gnome-calendar] source-dialog: resize dialog according to the mode



commit 8e025c5f204a079c496cd9dc939f285ae703299d
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Mon Feb 9 14:06:45 2015 -0200

    source-dialog: resize dialog according to the mode

 src/gcal-source-dialog.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-source-dialog.c b/src/gcal-source-dialog.c
index ae060ee..560509a 100644
--- a/src/gcal-source-dialog.c
+++ b/src/gcal-source-dialog.c
@@ -225,9 +225,14 @@ gcal_source_dialog_set_mode (GcalSourceDialog    *dialog,
 
   if (!edit_mode)
     {
+      gtk_window_resize (GTK_WINDOW (dialog), 550, 500);
       gtk_header_bar_set_title (GTK_HEADER_BAR (priv->headerbar), _("Add Calendar"));
       gtk_header_bar_set_subtitle (GTK_HEADER_BAR (priv->headerbar), "");
     }
+  else
+    {
+      gtk_window_resize (GTK_WINDOW (dialog), 550, 250);
+    }
 }
 
 /**


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]