summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/export.cpp
diff options
context:
space:
mode:
authorAlex Valavanis <valavanisalex@gmail.com>2012-07-01 22:59:15 +0000
committerAlex Valavanis <valavanisalex@gmail.com>2012-07-01 22:59:15 +0000
commit2eb504239d6b9a343f834628f01edcbde8363ae9 (patch)
tree7f69c5c49f418fdc7351b5b156476bc403a5112b /src/ui/dialog/export.cpp
parentFix for 950677 : Retire legacy gradient editor (diff)
downloadinkscape-2eb504239d6b9a343f834628f01edcbde8363ae9.tar.gz
inkscape-2eb504239d6b9a343f834628f01edcbde8363ae9.zip
Reduce horizontal width of export bitmap dialog. This makes the GTK+ 3 version more usable on small screens
(bzr r11520)
Diffstat (limited to 'src/ui/dialog/export.cpp')
-rw-r--r--src/ui/dialog/export.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ui/dialog/export.cpp b/src/ui/dialog/export.cpp
index 7a6d3ad4d..2862c5010 100644
--- a/src/ui/dialog/export.cpp
+++ b/src/ui/dialog/export.cpp
@@ -193,7 +193,7 @@ Export::Export (void) :
selectiontype_buttons[i]->signal_clicked().connect(sigc::mem_fun(*this, &Export::onAreaToggled));
}
- Gtk::Table* t = new Gtk::Table(2, 6, false);
+ Gtk::Table* t = new Gtk::Table(3, 4, false);
t->set_row_spacings (4);
t->set_col_spacings (4);
@@ -202,15 +202,15 @@ Export::Export (void) :
&Export::onAreaX0Change);
x1_adj = createSpinbutton ( "x1", 0.0, -1000000.0, 1000000.0, 0.1, 1.0, unit_selector->gobj(),
- t, 2, 0, _("x_1:"), "", EXPORT_COORD_PRECISION, 1,
+ t, 0, 1, _("x_1:"), "", EXPORT_COORD_PRECISION, 1,
&Export::onAreaX1Change);
width_adj = createSpinbutton ( "width", 0.0, 0.0, PNG_UINT_31_MAX, 0.1, 1.0,
- unit_selector->gobj(), t, 4, 0, _("Wid_th:"), "", EXPORT_COORD_PRECISION, 1,
+ unit_selector->gobj(), t, 0, 2, _("Wid_th:"), "", EXPORT_COORD_PRECISION, 1,
&Export::onAreaWidthChange);
y0_adj = createSpinbutton ( "y0", 0.0, -1000000.0, 1000000.0, 0.1, 1.0, unit_selector->gobj(),
- t, 0, 1, _("_y0:"), "", EXPORT_COORD_PRECISION, 1,
+ t, 2, 0, _("_y0:"), "", EXPORT_COORD_PRECISION, 1,
&Export::onAreaY0Change);
y1_adj = createSpinbutton ( "y1", 0.0, -1000000.0, 1000000.0, 0.1, 1.0, unit_selector->gobj(),
@@ -218,7 +218,7 @@ Export::Export (void) :
&Export::onAreaY1Change);
height_adj = createSpinbutton ( "height", 0.0, 0.0, PNG_UINT_31_MAX, 0.1, 1.0,
- unit_selector->gobj(), t, 4, 1, _("Hei_ght:"), "", EXPORT_COORD_PRECISION, 1,
+ unit_selector->gobj(), t, 2, 2, _("Hei_ght:"), "", EXPORT_COORD_PRECISION, 1,
&Export::onAreaHeightChange);
area_box.pack_start(togglebox, false, false, 3);
@@ -488,7 +488,7 @@ Gtk::Adjustment * Export::createSpinbutton( gchar const * /*key*/, float val, fl
Gtk::SpinButton *sb = new Gtk::SpinButton(*adj, 1.0, digits);
#endif
t->attach (*sb, x + pos, x + pos + 1, y, y + 1, Gtk::EXPAND, Gtk::EXPAND, 0, 0 );
- sb->set_size_request (80, -1);
+ sb->set_width_chars(7);
sb->set_sensitive (sensitive);
pos++;