From 6a8d2d6d621e4ec4391d37fc3188198645743dce Mon Sep 17 00:00:00 2001 From: "Andrew rugby471@gmail.com" <> Date: Fri, 11 Mar 2011 17:45:35 +0000 Subject: Added 12px border to dialog Set better default size Removed 'Search for:' label Made Search button not EXPAND and FILL (bzr r10092.1.1) --- src/ui/dialog/ocaldialogs.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/ui/dialog/ocaldialogs.cpp b/src/ui/dialog/ocaldialogs.cpp index 2ae7d6989..e30d819ce 100644 --- a/src/ui/dialog/ocaldialogs.cpp +++ b/src/ui/dialog/ocaldialogs.cpp @@ -562,8 +562,11 @@ FileImportFromOCALDialog::FileImportFromOCALDialog(Gtk::Window& parentWindow, Glib::ustring searchTag = ""; dialogType = fileTypes; + // Dialog + set_border_width(12); + set_default_size(480, 350); + // Gtk::VBox *vbox = get_vbox(); - Gtk::Label *tagLabel = new Gtk::Label(_("Search for:")); notFoundLabel = new Gtk::Label(_("No files matched your search")); descriptionLabel = new Gtk::Label(); descriptionLabel->set_max_width_chars(260); @@ -576,9 +579,8 @@ FileImportFromOCALDialog::FileImportFromOCALDialog(Gtk::Window& parentWindow, searchTagEntry->set_text(searchTag); searchTagEntry->set_max_length(255); searchButton = new Gtk::Button(_("Search")); - tagBox.pack_start(*tagLabel); tagBox.pack_start(*searchTagEntry, Gtk::PACK_EXPAND_WIDGET, 3); - tagBox.pack_start(*searchButton); + tagBox.pack_start(*searchButton, false, false); filesPreview = new SVGPreview(); filesPreview->showNoPreview(); // add the buttons in the bottom of the dialog -- cgit v1.2.3