[shotwell] Make custom printing widget a GtkTemplate
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell] Make custom printing widget a GtkTemplate
- Date: Tue, 7 Mar 2017 21:50:37 +0000 (UTC)
commit bd3ccefcd6d8066d47fd4f998436668913fcc096
Author: Jens Georg <mail jensge org>
Date: Mon Mar 6 23:26:59 2017 +0100
Make custom printing widget a GtkTemplate
Signed-off-by: Jens Georg <mail jensge org>
org.gnome.Shotwell.gresource.xml | 1 +
po/POTFILES.in | 1 +
src/Printing.vala | 47 ++---
ui/printing_widget.ui | 368 ++++++++++++++++++++++++++++++++++++++
ui/shotwell.ui | 359 -------------------------------------
5 files changed, 387 insertions(+), 389 deletions(-)
---
diff --git a/org.gnome.Shotwell.gresource.xml b/org.gnome.Shotwell.gresource.xml
index e7dfd17..25586da 100644
--- a/org.gnome.Shotwell.gresource.xml
+++ b/org.gnome.Shotwell.gresource.xml
@@ -14,6 +14,7 @@
<file preprocess="xml-stripblanks">ui/offline.ui</file>
<file preprocess="xml-stripblanks">ui/photo_context.ui</file>
<file preprocess="xml-stripblanks">ui/photo.ui</file>
+ <file preprocess="xml-stripblanks">ui/printing_widget.ui</file>
<file preprocess="xml-stripblanks">ui/savedsearch.ui</file>
<file preprocess="xml-stripblanks">ui/search_bar.ui</file>
<file preprocess="xml-stripblanks">ui/search_sidebar_context.ui</file>
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 2593d29..7d8d341 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -121,6 +121,7 @@ ui/media.ui
ui/offline.ui
ui/photo_context.ui
ui/photo.ui
+ui/printing_widget.ui
ui/savedsearch.ui
ui/search_bar.ui
ui/search_sidebar_context.ui
diff --git a/src/Printing.vala b/src/Printing.vala
index d5a84e5..5ebefc9 100644
--- a/src/Printing.vala
+++ b/src/Printing.vala
@@ -265,22 +265,34 @@ private enum PrintLayout {
}
}
-public class CustomPrintTab : Gtk.Fixed {
+[GtkTemplate (ui = "/org/gnome/Shotwell/ui/printing_widget.ui")]
+public class CustomPrintTab : Gtk.Box {
private const int INCHES_COMBO_CHOICE = 0;
private const int CENTIMETERS_COMBO_CHOICE = 1;
- private Gtk.Box custom_image_settings_pane = null;
+ [GtkChild]
private Gtk.RadioButton standard_size_radio = null;
+ [GtkChild]
private Gtk.RadioButton custom_size_radio = null;
+ [GtkChild]
private Gtk.RadioButton image_per_page_radio = null;
+ [GtkChild]
private Gtk.ComboBox image_per_page_combo = null;
+ [GtkChild]
private Gtk.ComboBox standard_sizes_combo = null;
+ [GtkChild]
private Gtk.ComboBoxText units_combo = null;
+ [GtkChild]
private Gtk.Entry custom_width_entry = null;
+ [GtkChild]
private Gtk.Entry custom_height_entry = null;
+ [GtkChild]
private Gtk.Entry ppi_entry;
+ [GtkChild]
private Gtk.CheckButton aspect_ratio_check = null;
+ [GtkChild]
private Gtk.CheckButton title_print_check = null;
+ [GtkChild]
private Gtk.FontButton title_print_font = null;
private Measurement local_content_width = Measurement(5.0, MeasurementUnit.INCHES);
private Measurement local_content_height = Measurement(5.0, MeasurementUnit.INCHES);
@@ -290,28 +302,14 @@ public class CustomPrintTab : Gtk.Fixed {
public CustomPrintTab(PrintJob source_job) {
this.source_job = source_job;
- Gtk.Builder builder = AppWindow.create_builder();
- // an enclosing box for every widget on this tab...
- custom_image_settings_pane = builder.get_object("box_ImgSettingsPane") as Gtk.Box;
-
- standard_size_radio = builder.get_object("radio_UseStandardSize") as Gtk.RadioButton;
standard_size_radio.clicked.connect(on_radio_group_click);
-
- custom_size_radio = builder.get_object("radio_UseCustomSize") as Gtk.RadioButton;
custom_size_radio.clicked.connect(on_radio_group_click);
-
- image_per_page_radio = builder.get_object("radio_Autosize") as Gtk.RadioButton;
image_per_page_radio.clicked.connect(on_radio_group_click);
-
- image_per_page_combo = builder.get_object("combo_Autosize") as Gtk.ComboBox;
- Gtk.CellRendererText image_per_page_combo_text_renderer =
- new Gtk.CellRendererText();
+ Gtk.CellRendererText image_per_page_combo_text_renderer = new Gtk.CellRendererText();
image_per_page_combo.pack_start(image_per_page_combo_text_renderer, true);
- image_per_page_combo.add_attribute(image_per_page_combo_text_renderer,
- "text", 0);
- Gtk.ListStore image_per_page_combo_store = new Gtk.ListStore(2, typeof(string),
- typeof(string));
+ image_per_page_combo.add_attribute(image_per_page_combo_text_renderer, "text", 0);
+ Gtk.ListStore image_per_page_combo_store = new Gtk.ListStore(2, typeof(string), typeof(string));
foreach (PrintLayout layout in PrintLayout.get_all()) {
Gtk.TreeIter iter;
image_per_page_combo_store.append(out iter);
@@ -320,7 +318,6 @@ public class CustomPrintTab : Gtk.Fixed {
image_per_page_combo.set_model(image_per_page_combo_store);
StandardPrintSize[] standard_sizes = PrintManager.get_instance().get_standard_sizes();
- standard_sizes_combo = builder.get_object("combo_StdSizes") as Gtk.ComboBox;
Gtk.CellRendererText standard_sizes_combo_text_renderer =
new Gtk.CellRendererText();
standard_sizes_combo.pack_start(standard_sizes_combo_text_renderer, true);
@@ -336,30 +333,20 @@ public class CustomPrintTab : Gtk.Fixed {
}
standard_sizes_combo.set_model(standard_sizes_combo_store);
- custom_width_entry = builder.get_object("entry_CustomWidth") as Gtk.Entry;
custom_width_entry.insert_text.connect(on_entry_insert_text);
custom_width_entry.focus_out_event.connect(on_width_entry_focus_out);
- custom_height_entry = builder.get_object("entry_CustomHeight") as Gtk.Entry;
custom_height_entry.insert_text.connect(on_entry_insert_text);
custom_height_entry.focus_out_event.connect(on_height_entry_focus_out);
- units_combo = builder.get_object("combo_Units") as Gtk.ComboBoxText;
units_combo.append_text(_("in."));
units_combo.append_text(_("cm"));
units_combo.set_active(0);
units_combo.changed.connect(on_units_combo_changed);
- aspect_ratio_check = builder.get_object("check_MatchAspectRatio") as Gtk.CheckButton;
- title_print_check = builder.get_object("check_PrintImageTitle") as Gtk.CheckButton;
- title_print_font = builder.get_object("fntbn_TitleFont") as Gtk.FontButton;
-
- ppi_entry = builder.get_object("entry_PixelsPerInch") as Gtk.Entry;
ppi_entry.insert_text.connect(on_ppi_entry_insert_text);
ppi_entry.focus_out_event.connect(on_ppi_entry_focus_out);
- this.add(custom_image_settings_pane);
-
sync_state_from_job(source_job);
show_all();
diff --git a/ui/printing_widget.ui b/ui/printing_widget.ui
new file mode 100644
index 0000000..44414d0
--- /dev/null
+++ b/ui/printing_widget.ui
@@ -0,0 +1,368 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Generated with glade 3.20.0 -->
+<interface domain="shotwell">
+ <requires lib="gtk+" version="3.14"/>
+ <template class="CustomPrintTab" parent="GtkBox">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="margin_left">12</property>
+ <property name="margin_right">12</property>
+ <property name="margin_top">12</property>
+ <property name="margin_bottom">12</property>
+ <property name="orientation">vertical</property>
+ <child>
+ <object class="GtkLabel" id="lbl_PrintedImageSize">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="halign">start</property>
+ <property name="margin_top">4</property>
+ <property name="label" translatable="yes"><b>Printed Image Size</b></property>
+ <property name="use_markup">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkBox" id="box2">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="margin_left">24</property>
+ <property name="margin_top">2</property>
+ <child>
+ <object class="GtkRadioButton" id="standard_size_radio">
+ <property name="label" translatable="yes">Use a _standard size:</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="halign">start</property>
+ <property name="use_underline">True</property>
+ <property name="active">True</property>
+ <property name="draw_indicator">True</property>
+ <property name="group">custom_size_radio</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkComboBox" id="standard_sizes_combo">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="margin_left">20</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkBox" id="box3">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="margin_left">24</property>
+ <property name="margin_top">2</property>
+ <child>
+ <object class="GtkRadioButton" id="custom_size_radio">
+ <property name="label" translatable="yes">Use a c_ustom size:</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="halign">start</property>
+ <property name="use_underline">True</property>
+ <property name="active">True</property>
+ <property name="draw_indicator">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkBox" id="box4">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="margin_left">19</property>
+ <child>
+ <object class="GtkEntry" id="custom_width_entry">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="margin_right">3</property>
+ <property name="invisible_char">●</property>
+ <property name="width_chars">10</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="lbl_MultSymbol">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label">×</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkEntry" id="custom_height_entry">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="margin_left">3</property>
+ <property name="invisible_char">●</property>
+ <property name="width_chars">10</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkComboBoxText" id="units_combo">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">3</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="padding">14</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkCheckButton" id="aspect_ratio_check">
+ <property name="label" translatable="yes">_Match photo aspect ratio</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="halign">start</property>
+ <property name="margin_left">210</property>
+ <property name="use_underline">True</property>
+ <property name="draw_indicator">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">3</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkBox" id="box5">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="margin_left">24</property>
+ <property name="margin_top">2</property>
+ <property name="margin_bottom">12</property>
+ <child>
+ <object class="GtkRadioButton" id="image_per_page_radio">
+ <property name="label" translatable="yes">_Autosize:</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="halign">start</property>
+ <property name="use_underline">True</property>
+ <property name="active">True</property>
+ <property name="draw_indicator">True</property>
+ <property name="group">custom_size_radio</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkComboBox" id="image_per_page_combo">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="margin_left">95</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">4</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="lbl_Titles">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="halign">start</property>
+ <property name="label" translatable="yes"><b>Titles</b></property>
+ <property name="use_markup">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">5</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkBox" id="box6">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="margin_left">24</property>
+ <property name="margin_top">2</property>
+ <child>
+ <object class="GtkCheckButton" id="title_print_check">
+ <property name="label" translatable="yes">Print image _title</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="halign">start</property>
+ <property name="use_underline">True</property>
+ <property name="draw_indicator">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkFontButton" id="title_print_font">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <property name="margin_left">49</property>
+ <property name="font">Sans 12</property>
+ <property name="preview_text"/>
+ <property name="show_preview_entry">False</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">6</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="lbl_PixelResolution">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="halign">start</property>
+ <property name="margin_top">12</property>
+ <property name="label" translatable="yes"><b>Pixel Resolution</b></property>
+ <property name="use_markup">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">7</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkBox" id="box7">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="margin_left">24</property>
+ <property name="margin_top">2</property>
+ <child>
+ <object class="GtkLabel" id="lbl_OutputPhotoAt">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="halign">start</property>
+ <property name="label" translatable="yes">_Output photo at:</property>
+ <property name="use_underline">True</property>
+ <property name="mnemonic_widget">ppi_entry</property>
+ <property name="ellipsize">start</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkBox" id="box8">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="margin_left">65</property>
+ <child>
+ <object class="GtkEntry" id="ppi_entry">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="margin_right">8</property>
+ <property name="invisible_char">●</property>
+ <property name="width_chars">13</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="lbl_PixelsPerInch">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">pixels per inch</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">8</property>
+ </packing>
+ </child>
+ </template>
+</interface>
diff --git a/ui/shotwell.ui b/ui/shotwell.ui
index 573c736..59b034a 100644
--- a/ui/shotwell.ui
+++ b/ui/shotwell.ui
@@ -570,365 +570,6 @@
</object>
</child>
</object>
- <object class="GtkBox" id="box_ImgSettingsPane">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="orientation">vertical</property>
- <child>
- <object class="GtkLabel" id="lbl_PrintedImageSize">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="halign">start</property>
- <property name="margin_top">4</property>
- <property name="label" translatable="yes"><b>Printed Image Size</b></property>
- <property name="use_markup">True</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <object class="GtkBox" id="box2">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="margin_left">24</property>
- <property name="margin_top">2</property>
- <child>
- <object class="GtkRadioButton" id="radio_UseStandardSize">
- <property name="label" translatable="yes">Use a _standard size:</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">False</property>
- <property name="halign">start</property>
- <property name="use_underline">True</property>
- <property name="active">True</property>
- <property name="draw_indicator">True</property>
- <property name="group">radio_UseCustomSize</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <object class="GtkComboBox" id="combo_StdSizes">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="margin_left">20</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
- </child>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
- </child>
- <child>
- <object class="GtkBox" id="box3">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="margin_left">24</property>
- <property name="margin_top">2</property>
- <child>
- <object class="GtkRadioButton" id="radio_UseCustomSize">
- <property name="label" translatable="yes">Use a c_ustom size:</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">False</property>
- <property name="halign">start</property>
- <property name="use_underline">True</property>
- <property name="active">True</property>
- <property name="draw_indicator">True</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <object class="GtkBox" id="box4">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="margin_left">19</property>
- <child>
- <object class="GtkEntry" id="entry_CustomWidth">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="margin_right">3</property>
- <property name="invisible_char">●</property>
- <property name="width_chars">10</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <object class="GtkLabel" id="lbl_MultSymbol">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="label">×</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
- </child>
- <child>
- <object class="GtkEntry" id="entry_CustomHeight">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="margin_left">3</property>
- <property name="invisible_char">●</property>
- <property name="width_chars">10</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">2</property>
- </packing>
- </child>
- <child>
- <object class="GtkComboBoxText" id="combo_Units">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">3</property>
- </packing>
- </child>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="padding">14</property>
- <property name="position">1</property>
- </packing>
- </child>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">2</property>
- </packing>
- </child>
- <child>
- <object class="GtkCheckButton" id="check_MatchAspectRatio">
- <property name="label" translatable="yes">_Match photo aspect ratio</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">False</property>
- <property name="halign">start</property>
- <property name="margin_left">210</property>
- <property name="use_underline">True</property>
- <property name="draw_indicator">True</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">3</property>
- </packing>
- </child>
- <child>
- <object class="GtkBox" id="box5">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="margin_left">24</property>
- <property name="margin_top">2</property>
- <property name="margin_bottom">12</property>
- <child>
- <object class="GtkRadioButton" id="radio_Autosize">
- <property name="label" translatable="yes">_Autosize:</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">False</property>
- <property name="halign">start</property>
- <property name="use_underline">True</property>
- <property name="active">True</property>
- <property name="draw_indicator">True</property>
- <property name="group">radio_UseCustomSize</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <object class="GtkComboBox" id="combo_Autosize">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="margin_left">95</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
- </child>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">4</property>
- </packing>
- </child>
- <child>
- <object class="GtkLabel" id="lbl_Titles">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="halign">start</property>
- <property name="label" translatable="yes"><b>Titles</b></property>
- <property name="use_markup">True</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">5</property>
- </packing>
- </child>
- <child>
- <object class="GtkBox" id="box6">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="margin_left">24</property>
- <property name="margin_top">2</property>
- <child>
- <object class="GtkCheckButton" id="check_PrintImageTitle">
- <property name="label" translatable="yes">Print image _title</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">False</property>
- <property name="halign">start</property>
- <property name="use_underline">True</property>
- <property name="draw_indicator">True</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <object class="GtkFontButton" id="fntbn_TitleFont">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <property name="margin_left">49</property>
- <property name="font">Sans 12</property>
- <property name="preview_text"/>
- <property name="show_preview_entry">False</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
- </child>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">6</property>
- </packing>
- </child>
- <child>
- <object class="GtkLabel" id="lbl_PixelResolution">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="halign">start</property>
- <property name="margin_top">12</property>
- <property name="label" translatable="yes"><b>Pixel Resolution</b></property>
- <property name="use_markup">True</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">7</property>
- </packing>
- </child>
- <child>
- <object class="GtkBox" id="box7">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="margin_left">24</property>
- <property name="margin_top">2</property>
- <child>
- <object class="GtkLabel" id="lbl_OutputPhotoAt">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="halign">start</property>
- <property name="label" translatable="yes">_Output photo at:</property>
- <property name="use_underline">True</property>
- <property name="mnemonic_widget">entry_PixelsPerInch</property>
- <property name="ellipsize">start</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <object class="GtkBox" id="box8">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="margin_left">65</property>
- <child>
- <object class="GtkEntry" id="entry_PixelsPerInch">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="margin_right">8</property>
- <property name="invisible_char">●</property>
- <property name="width_chars">13</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <object class="GtkLabel" id="lbl_PixelsPerInch">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="label" translatable="yes">pixels per inch</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
- </child>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
- </child>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">8</property>
- </packing>
- </child>
- </object>
<object class="GtkBox" id="criteria">
<property name="visible">True</property>
<property name="can_focus">False</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]