summaryrefslogtreecommitdiffstats
path: root/src/extension
diff options
context:
space:
mode:
authorNathan Lee <2431820-nathanal@users.noreply.gitlab.com>2019-03-30 01:39:59 +0000
committerNathan Lee <2431820-nathanal@users.noreply.gitlab.com>2019-04-02 08:55:59 +0000
commit53ead5269c16cf7decee30713b0cd0d1456e7138 (patch)
tree66fda5dd8d50d5a7b86e22690742b607a7d01381 /src/extension
parentAvoid crash from nullptr exception (diff)
downloadinkscape-53ead5269c16cf7decee30713b0cd0d1456e7138.tar.gz
inkscape-53ead5269c16cf7decee30713b0cd0d1456e7138.zip
Tidy various dialog UIs
Diffstat (limited to 'src/extension')
-rw-r--r--src/extension/extension.cpp16
-rw-r--r--src/extension/internal/pdfinput/pdf-input.cpp3
2 files changed, 13 insertions, 6 deletions
diff --git a/src/extension/extension.cpp b/src/extension/extension.cpp
index 6b95d96a7..9bbeabd45 100644
--- a/src/extension/extension.cpp
+++ b/src/extension/extension.cpp
@@ -754,11 +754,14 @@ Gtk::VBox *
Extension::get_info_widget()
{
Gtk::VBox * retval = Gtk::manage(new Gtk::VBox());
+ retval->set_border_width(4);
Gtk::Frame * info = Gtk::manage(new Gtk::Frame("General Extension Information"));
- retval->pack_start(*info, true, true, 5);
+ retval->pack_start(*info, true, true, 4);
auto table = Gtk::manage(new Gtk::Grid());
+ table->set_border_width(4);
+ table->set_column_spacing(4);
info->add(*table);
@@ -767,7 +770,6 @@ Extension::get_info_widget()
add_val(_("ID:"), id, table, &row);
add_val(_("State:"), _state == STATE_LOADED ? _("Loaded") : _state == STATE_UNLOADED ? _("Unloaded") : _("Deactivated"), table, &row);
-
retval->show_all();
return retval;
}
@@ -778,8 +780,8 @@ void Extension::add_val(Glib::ustring labelstr, Glib::ustring valuestr, Gtk::Gri
Gtk::Label * value;
(*row)++;
- label = Gtk::manage(new Gtk::Label(labelstr));
- value = Gtk::manage(new Gtk::Label(valuestr));
+ label = Gtk::manage(new Gtk::Label(labelstr, Gtk::ALIGN_START));
+ value = Gtk::manage(new Gtk::Label(valuestr, Gtk::ALIGN_START));
table->attach(*label, 0, (*row) - 1, 1, 1);
table->attach(*value, 1, (*row) - 1, 1, 1);
@@ -794,10 +796,12 @@ Gtk::VBox *
Extension::get_help_widget()
{
Gtk::VBox * retval = Gtk::manage(new Gtk::VBox());
+ retval->set_border_width(4);
if (_help == nullptr) {
Gtk::Label * content = Gtk::manage(new Gtk::Label(_("Currently there is no help available for this Extension. Please look on the Inkscape website or ask on the mailing lists if you have questions regarding this extension.")));
- retval->pack_start(*content, true, true, 5);
+ content->set_alignment(Gtk::ALIGN_START, Gtk::ALIGN_START);
+ retval->pack_start(*content, true, true, 4);
content->set_line_wrap(true);
content->show();
} else {
@@ -815,7 +819,7 @@ Extension::get_params_widget()
{
Gtk::VBox * retval = Gtk::manage(new Gtk::VBox());
Gtk::Widget * content = Gtk::manage(new Gtk::Label("Params"));
- retval->pack_start(*content, true, true, 5);
+ retval->pack_start(*content, true, true, 4);
content->show();
retval->show();
return retval;
diff --git a/src/extension/internal/pdfinput/pdf-input.cpp b/src/extension/internal/pdfinput/pdf-input.cpp
index 8b4cc5aa7..5e1a91589 100644
--- a/src/extension/internal/pdfinput/pdf-input.cpp
+++ b/src/extension/internal/pdfinput/pdf-input.cpp
@@ -122,13 +122,16 @@ PdfImportDialog::PdfImportDialog(PDFDoc *doc, const gchar */*uri*/)
_pageSettingsFrame = Gtk::manage(new class Inkscape::UI::Widget::Frame(_("Page settings")));
_labelPrecision = Gtk::manage(new class Gtk::Label(_("Precision of approximating gradient meshes:")));
_labelPrecisionWarning = Gtk::manage(new class Gtk::Label(_("<b>Note</b>: setting the precision too high may result in a large SVG file and slow performance.")));
+ _labelPrecisionWarning->set_max_width_chars(50);
#ifdef HAVE_POPPLER_CAIRO
Gtk::RadioButton::Group group;
_importViaPoppler = Gtk::manage(new class Gtk::RadioButton(group,_("Poppler/Cairo import")));
_labelViaPoppler = Gtk::manage(new class Gtk::Label(_("Import via external library. Text consists of groups containing cloned glyphs where each glyph is a path. Images are stored internally. Meshes cause entire document to be rendered as a raster image.")));
+ _labelViaPoppler->set_max_width_chars(50);
_importViaInternal = Gtk::manage(new class Gtk::RadioButton(group,_("Internal import")));
_labelViaInternal = Gtk::manage(new class Gtk::Label(_("Import via internal (Poppler derived) library. Text is stored as text but white space is missing. Meshes are converted to tiles, the number depends on the precision set below.")));
+ _labelViaInternal->set_max_width_chars(50);
#endif
_fallbackPrecisionSlider_adj = Gtk::Adjustment::create(2, 1, 256, 1, 10, 10);