UrlShortenerPlugin.shortening links in outgoing message

This commit is contained in:
Denis Fomin
2013-01-16 16:29:25 +04:00
parent 0c1b1395b4
commit 027fd63fd2
3 changed files with 90 additions and 27 deletions

View File

@@ -4,35 +4,58 @@
<!-- interface-naming-policy toplevel-contextual -->
<object class="GtkWindow" id="window1">
<child>
<object class="GtkHBox" id="hbox1">
<object class="GtkVBox" id="vbox1">
<property name="visible">True</property>
<property name="extension_events">all</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkLabel" id="avatar_size_lebel">
<object class="GtkHBox" id="hbox1">
<property name="visible">True</property>
<property name="xalign">0.029999999329447746</property>
<property name="label" translatable="yes">The maximum length not be shortened links(chars)</property>
<property name="track_visited_links">False</property>
<property name="extension_events">all</property>
<child>
<object class="GtkLabel" id="avatar_size_lebel">
<property name="visible">True</property>
<property name="xalign">0.029999999329447746</property>
<property name="label" translatable="yes">The maximum length not be shortened links(chars)</property>
<property name="track_visited_links">False</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="max_chars">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="invisible_char">&#x25CF;</property>
<property name="width_chars">6</property>
<property name="snap_to_ticks">True</property>
<property name="numeric">True</property>
<signal name="value_changed" handler="avatar_size_value_changed"/>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkSpinButton" id="max_chars">
<object class="GtkCheckButton" id="shorten_outgoing">
<property name="label" translatable="yes">shorten links in outgoing messages</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="invisible_char">&#x25CF;</property>
<property name="width_chars">6</property>
<property name="snap_to_ticks">True</property>
<property name="numeric">True</property>
<signal name="value_changed" handler="avatar_size_value_changed"/>
<property name="receives_default">False</property>
<property name="active">True</property>
<property name="draw_indicator">True</property>
<signal name="toggled" handler="shorten_outgoing_toggled"/>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">1</property>
</packing>
</child>