Code

Added some set_size_requests to ishmal's cool work so dialogs look nice from the
authorkidproto <kidproto@users.sourceforge.net>
Mon, 28 Aug 2006 08:00:22 +0000 (08:00 +0000)
committerkidproto <kidproto@users.sourceforge.net>
Mon, 28 Aug 2006 08:00:22 +0000 (08:00 +0000)
beginning...

src/ui/dialog/messages.cpp
src/ui/dialog/scriptdialog.cpp
src/ui/dialog/scriptdialog.h
src/ui/dialog/text-properties.cpp

index 9228273d0ccbe8ee6ecb4a70c2203ec429cd84e2..9c7434eddfc6a341d1602434164201155524067c 100644 (file)
@@ -67,6 +67,9 @@ Messages::Messages()
     textScroll.set_policy(Gtk::POLICY_ALWAYS, Gtk::POLICY_ALWAYS);
     mainVBox->pack_start(textScroll);
 
+    // sick of this thing shrinking too much
+    set_size_request(400, 300);
+    
     show_all_children();
 
     message(_("Ready."));
index 4836774641918a77e6d52e8c6478f14cad683826..8cc8f88aa9920cc546a60f299ddcf53cecc31093 100644 (file)
@@ -214,6 +214,8 @@ ScriptDialogImpl::ScriptDialogImpl()
     errorTextFrame.add(errorTextScroll);
     mainVBox->pack_start(errorTextFrame);
 
+    // sick of this thing shrinking too much
+    set_size_request(350, 400);
     show_all_children();
 
 }
index 74bc5d00746abb42c6a4008ceca947c856b8629e..b66aa93e79cf0b3dfc098952c2b0ae9ddcc08373 100644 (file)
@@ -35,7 +35,7 @@ class ScriptDialog : public Dialog
      * Constructor
      */
     ScriptDialog() : Dialog ("dialogs.script", SP_VERB_DIALOG_SCRIPT)
-        {}
+    {}
 
 
     /**
@@ -49,6 +49,9 @@ class ScriptDialog : public Dialog
     virtual ~ScriptDialog() {};
 
 
+    private:
+        int _max_dialog_width;
+        int _max_dialog_height;
 
 
 }; // class ScriptDialog
index c4a95f01406e05ad3daebfe2841208d8498c2772..a7999267778f86b582cc76f2f95b22e24ff60e01 100644 (file)
@@ -36,6 +36,9 @@ TextProperties::TextProperties()
     _notebook.append_page(_page_font, _("Font"));
     _notebook.append_page(_page_text, _("Text"));
 
+    set_resizable (true);
+    set_size_request(450, 300);
+    
     show_all_children();
 }