[gimp] plug-ins: port the GIF plug-in's UI file to GTK+ 3.x
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: port the GIF plug-in's UI file to GTK+ 3.x
- Date: Wed, 5 Dec 2018 11:37:06 +0000 (UTC)
commit a82260380759af34f9d9d843eccddd9e6d14aac3
Author: Michael Natterer <mitch gimp org>
Date: Wed Dec 5 12:35:02 2018 +0100
plug-ins: port the GIF plug-in's UI file to GTK+ 3.x
and clean it up so things are properly packed again.
plug-ins/ui/plug-in-file-gif.ui | 386 +++++++++++++++++++++-------------------
1 file changed, 204 insertions(+), 182 deletions(-)
---
diff --git a/plug-ins/ui/plug-in-file-gif.ui b/plug-ins/ui/plug-in-file-gif.ui
index f47eb1b54b..70858c9f2c 100644
--- a/plug-ins/ui/plug-in-file-gif.ui
+++ b/plug-ins/ui/plug-in-file-gif.ui
@@ -1,115 +1,136 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Generated with glade 3.22.1 -->
<interface>
- <requires lib="gtk+" version="2.16"/>
- <!-- interface-naming-policy project-wide -->
- <object class="GtkVBox" id="main-vbox">
+ <requires lib="gtk+" version="3.0"/>
+ <object class="GtkAdjustment" id="delay">
+ <property name="lower">10</property>
+ <property name="upper">65000</property>
+ <property name="value">100</property>
+ <property name="step_increment">10</property>
+ <property name="page_increment">100</property>
+ </object>
+ <object class="GtkListStore" id="dispose-store">
+ <columns>
+ <!-- column-name dispose-mode -->
+ <column type="gint"/>
+ <!-- column-name dispose-mode-label -->
+ <column type="gchararray"/>
+ </columns>
+ </object>
+ <object class="GtkBox" id="main-vbox">
<property name="visible">True</property>
+ <property name="can_focus">False</property>
<property name="border_width">12</property>
<property name="orientation">vertical</property>
<property name="spacing">12</property>
<child>
<object class="GtkFrame" id="gif-options-frame">
<property name="visible">True</property>
+ <property name="can_focus">False</property>
<property name="label_xalign">0</property>
<property name="shadow_type">none</property>
<child>
- <object class="GtkAlignment" id="gif-options-frame-alignment">
+ <object class="GtkBox" id="gif-options-frame-vbox">
<property name="visible">True</property>
- <property name="left_padding">12</property>
+ <property name="can_focus">False</property>
+ <property name="margin_left">12</property>
+ <property name="orientation">vertical</property>
+ <property name="spacing">6</property>
+ <child>
+ <object class="GtkCheckButton" id="interlace">
+ <property name="label" translatable="yes">I_nterlace</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="use_underline">True</property>
+ <property name="draw_indicator">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
<child>
- <object class="GtkVBox" id="gif-options-frame-vbox">
+ <object class="GtkBox" id="comment-hbox">
<property name="visible">True</property>
- <property name="orientation">vertical</property>
+ <property name="can_focus">False</property>
<property name="spacing">6</property>
<child>
- <object class="GtkCheckButton" id="interlace">
- <property name="label" translatable="yes">I_nterlace</property>
+ <object class="GtkBox" id="vbox1">
<property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">False</property>
- <property name="use_underline">True</property>
- <property name="draw_indicator">True</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <object class="GtkHBox" id="comment-hbox">
- <property name="visible">True</property>
- <property name="spacing">6</property>
- <child>
- <object class="GtkVBox" id="vbox1">
- <property name="visible">True</property>
- <property name="orientation">vertical</property>
- <child>
- <object class="GtkCheckButton" id="save-comment">
- <property name="label" translatable="yes">_GIF comment:</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">False</property>
- <property name="use_underline">True</property>
- <property name="draw_indicator">True</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="position">0</property>
- </packing>
- </child>
- </object>
- <packing>
- <property name="position">0</property>
- </packing>
- </child>
+ <property name="can_focus">False</property>
+ <property name="orientation">vertical</property>
<child>
- <object class="GtkScrolledWindow" id="comment-scrolled-window">
+ <object class="GtkCheckButton" id="save-comment">
+ <property name="label" translatable="yes">_GIF comment:</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="hscrollbar_policy">automatic</property>
- <property name="vscrollbar_policy">automatic</property>
- <property name="shadow_type">in</property>
- <child>
- <object class="GtkTextView" id="comment">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="pixels_below_lines">1</property>
- <property name="wrap_mode">word</property>
- </object>
- </child>
+ <property name="receives_default">False</property>
+ <property name="use_underline">True</property>
+ <property name="draw_indicator">True</property>
</object>
<packing>
- <property name="position">1</property>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
</packing>
</child>
</object>
<packing>
- <property name="position">1</property>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
</packing>
</child>
<child>
- <object class="GtkCheckButton" id="as-animation">
- <property name="label" translatable="yes">As _animation</property>
+ <object class="GtkScrolledWindow" id="comment-scrolled-window">
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="receives_default">False</property>
- <property name="use_underline">True</property>
- <property name="draw_indicator">True</property>
+ <property name="shadow_type">in</property>
+ <child>
+ <object class="GtkTextView" id="comment">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="pixels_below_lines">1</property>
+ <property name="wrap_mode">word</property>
+ </object>
+ </child>
</object>
<packing>
- <property name="position">2</property>
+ <property name="expand">True</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="GtkCheckButton" id="as-animation">
+ <property name="label" translatable="yes">As _animation</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</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">2</property>
+ </packing>
</child>
</object>
</child>
<child type="label">
<object class="GtkLabel" id="frame">
<property name="visible">True</property>
- <!-- Don't use markup, because it complicates the string to translate -->
+ <property name="can_focus">False</property>
<property name="label" translatable="yes">GIF Options</property>
<attributes>
<attribute name="weight" value="bold"/>
@@ -118,119 +139,83 @@
</child>
</object>
<packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkFrame" id="animation-frame">
<property name="visible">True</property>
+ <property name="can_focus">False</property>
<property name="label_xalign">0</property>
<property name="shadow_type">none</property>
<child>
- <object class="GtkAlignment" id="animation-frame-alignment">
+ <object class="GtkBox" id="animation-options-vbox">
<property name="visible">True</property>
- <property name="left_padding">12</property>
+ <property name="can_focus">False</property>
+ <property name="margin_left">12</property>
+ <property name="orientation">vertical</property>
+ <property name="spacing">6</property>
+ <child>
+ <object class="GtkCheckButton" id="loop-forever">
+ <property name="label" translatable="yes">_Loop forever</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</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="GtkVBox" id="animation-options-vbox">
+ <object class="GtkBox" id="delay-hbox">
<property name="visible">True</property>
- <property name="orientation">vertical</property>
+ <property name="can_focus">False</property>
<property name="spacing">6</property>
<child>
- <object class="GtkCheckButton" id="loop-forever">
- <property name="label" translatable="yes">_Loop forever</property>
+ <object class="GtkLabel" id="delay-label-begin">
<property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">False</property>
+ <property name="can_focus">False</property>
+ <property name="tooltip_text" translatable="yes">GIF supports hundredths of a second
precision.</property>
+ <property name="label" translatable="yes">_Delay between frames where
unspecified:</property>
<property name="use_underline">True</property>
- <property name="draw_indicator">True</property>
+ <property name="mnemonic_widget">delay-spin</property>
</object>
<packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
<property name="position">0</property>
</packing>
</child>
<child>
- <object class="GtkHBox" id="delay-hbox">
+ <object class="GtkSpinButton" id="delay-spin">
<property name="visible">True</property>
- <property name="spacing">6</property>
- <child>
- <object class="GtkLabel" id="delay-label-begin">
- <property name="visible">True</property>
- <property name="label" translatable="yes">_Delay between frames where
unspecified:</property>
- <property name="use_underline">True</property>
- <property name="mnemonic_widget">delay-spin</property>
- <property name="tooltip-text" translatable="yes">GIF supports hundredths of a second
precision.</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <object class="GtkSpinButton" id="delay-spin">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="invisible_char">●</property>
- <property name="shadow_type">none</property>
- <property name="adjustment">delay</property>
- <property name="climb_rate">1</property>
- <property name="snap-to-ticks">True</property>
- <property name="tooltip-text" translatable="yes">GIF supports hundredths of a second
precision.</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="position">1</property>
- </packing>
- </child>
- <child>
- <object class="GtkLabel" id="delay-label-end">
- <property name="visible">True</property>
- <property name="label" translatable="yes">milliseconds</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="position">2</property>
- </packing>
- </child>
+ <property name="can_focus">True</property>
+ <property name="tooltip_text" translatable="yes">GIF supports hundredths of a second
precision.</property>
+ <property name="invisible_char">●</property>
+ <property name="text" translatable="yes">10</property>
+ <property name="shadow_type">none</property>
+ <property name="adjustment">delay</property>
+ <property name="climb_rate">1</property>
+ <property name="snap_to_ticks">True</property>
+ <property name="value">10</property>
</object>
<packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
<property name="position">1</property>
</packing>
</child>
<child>
- <object class="GtkHBox" id="frame-disposal-hbox">
+ <object class="GtkLabel" id="delay-label-end">
<property name="visible">True</property>
- <property name="spacing">6</property>
- <child>
- <object class="GtkLabel" id="disposal-label">
- <property name="visible">True</property>
- <property name="label" translatable="yes">_Frame disposal where
unspecified:</property>
- <property name="use_underline">True</property>
- <property name="mnemonic_widget">dispose-combo</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <object class="GtkComboBox" id="dispose-combo">
- <property name="visible">True</property>
- <property name="model">dispose-store</property>
- <child>
- <object class="GtkCellRendererText" id="text-renderer"/>
- <attributes>
- <attribute name="text">1</attribute>
- </attributes>
- </child>
- </object>
- <packing>
- <property name="position">1</property>
- </packing>
- </child>
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">milliseconds</property>
</object>
<packing>
<property name="expand">False</property>
@@ -238,43 +223,95 @@
<property name="position">2</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="frame-disposal-hbox">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="spacing">6</property>
<child>
- <object class="GtkCheckButton" id="use-default-delay">
- <property name="label" translatable="yes">_Use delay entered above for all
frames</property>
+ <object class="GtkLabel" id="disposal-label">
<property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">False</property>
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">_Frame disposal where unspecified:</property>
<property name="use_underline">True</property>
- <property name="draw_indicator">True</property>
+ <property name="mnemonic_widget">dispose-combo</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
- <property name="position">3</property>
+ <property name="position">0</property>
</packing>
</child>
<child>
- <object class="GtkCheckButton" id="use-default-dispose">
- <property name="label" translatable="yes">U_se disposal entered above for all
frames</property>
+ <object class="GtkComboBox" id="dispose-combo">
<property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">False</property>
- <property name="use_underline">True</property>
- <property name="draw_indicator">True</property>
+ <property name="can_focus">False</property>
+ <property name="model">dispose-store</property>
+ <child>
+ <object class="GtkCellRendererText" id="text-renderer"/>
+ <attributes>
+ <attribute name="text">1</attribute>
+ </attributes>
+ </child>
</object>
<packing>
- <property name="position">4</property>
+ <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">False</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkCheckButton" id="use-default-delay">
+ <property name="label" translatable="yes">_Use delay entered above for all frames</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="use_underline">True</property>
+ <property name="draw_indicator">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">3</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkCheckButton" id="use-default-dispose">
+ <property name="label" translatable="yes">U_se disposal entered above for all
frames</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</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">4</property>
+ </packing>
</child>
</object>
</child>
<child type="label">
<object class="GtkLabel" id="animated-options-frame-label">
<property name="visible">True</property>
- <property name="yalign">0.49000000953674316</property>
+ <property name="can_focus">False</property>
<property name="label" translatable="yes">Animated GIF Options</property>
+ <property name="yalign">0.49000000953674316</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
@@ -288,19 +325,4 @@
</packing>
</child>
</object>
- <object class="GtkAdjustment" id="delay">
- <property name="value">100</property>
- <property name="lower">10</property>
- <property name="upper">65000</property>
- <property name="step_increment">10</property>
- <property name="page_increment">100</property>
- </object>
- <object class="GtkListStore" id="dispose-store">
- <columns>
- <!-- column-name dispose-mode -->
- <column type="gint"/>
- <!-- column-name dispose-mode-label -->
- <column type="gchararray"/>
- </columns>
- </object>
</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]