[#2857] [Notification] Fix issues with SMTP port input

This commit is contained in:
Calum Lind 2016-07-19 12:56:33 +01:00
parent d38b8fc45c
commit 904a51835b
2 changed files with 4 additions and 11 deletions

View File

@ -1,6 +1,6 @@
<?xml version="1.0"?> <?xml version="1.0" encoding="UTF-8"?>
<glade-interface> <glade-interface>
<!-- interface-requires gtk+ 2.6 --> <!-- interface-requires gtk+ 2.16 -->
<!-- interface-naming-policy toplevel-contextual --> <!-- interface-naming-policy toplevel-contextual -->
<widget class="GtkWindow" id="window"> <widget class="GtkWindow" id="window">
<child> <child>
@ -179,7 +179,6 @@
<widget class="GtkEntry" id="smtp_host"> <widget class="GtkEntry" id="smtp_host">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="invisible_char">&#x25CF;</property>
</widget> </widget>
<packing> <packing>
<property name="left_attach">1</property> <property name="left_attach">1</property>
@ -205,12 +204,10 @@
<widget class="GtkSpinButton" id="smtp_port"> <widget class="GtkSpinButton" id="smtp_port">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="max_length">65535</property> <property name="max_length">5</property>
<property name="invisible_char">&#x25CF;</property>
<property name="width_chars">5</property> <property name="width_chars">5</property>
<property name="adjustment">25 1 65535 0 10 0</property> <property name="adjustment">25 1 65535 1 10 0</property>
<property name="climb_rate">1</property> <property name="climb_rate">1</property>
<property name="snap_to_ticks">True</property>
<property name="numeric">True</property> <property name="numeric">True</property>
</widget> </widget>
<packing> <packing>
@ -235,7 +232,6 @@
<widget class="GtkEntry" id="smtp_user"> <widget class="GtkEntry" id="smtp_user">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="invisible_char">&#x25CF;</property>
</widget> </widget>
<packing> <packing>
<property name="left_attach">1</property> <property name="left_attach">1</property>
@ -259,7 +255,6 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="visibility">False</property> <property name="visibility">False</property>
<property name="invisible_char">&#x25CF;</property>
</widget> </widget>
<packing> <packing>
<property name="left_attach">1</property> <property name="left_attach">1</property>
@ -401,7 +396,6 @@
<widget class="GtkEntry" id="smtp_from"> <widget class="GtkEntry" id="smtp_from">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="invisible_char">&#x25CF;</property>
</widget> </widget>
<packing> <packing>
<property name="left_attach">1</property> <property name="left_attach">1</property>

View File

@ -254,7 +254,6 @@ class GtkUI(GtkPluginBase, GtkUiNotifications):
"notifications-gtk.conf", DEFAULT_PREFS "notifications-gtk.conf", DEFAULT_PREFS
) )
self.glade = gtk.glade.XML(get_resource("config.glade")) self.glade = gtk.glade.XML(get_resource("config.glade"))
self.glade.get_widget("smtp_port").set_value(25)
self.prefs = self.glade.get_widget("prefs_box") self.prefs = self.glade.get_widget("prefs_box")
self.prefs.show_all() self.prefs.show_all()