[rostertweaks] Fix some Bugs

- pylint/pep8
- Fix show/hide menubar
- Fix send status
- Update glade file to Gtk 3.18
This commit is contained in:
Philipp Hörist
2017-10-17 23:35:19 +02:00
parent 55c3cf781c
commit b96cb2ee2b
2 changed files with 71 additions and 72 deletions

View File

@@ -1,11 +1,13 @@
<?xml version="1.0"?>
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.20.0 -->
<interface>
<requires lib="gtk+" version="2.16"/>
<!-- interface-naming-policy toplevel-contextual -->
<requires lib="gtk+" version="3.18"/>
<object class="GtkWindow" id="window1">
<property name="can_focus">False</property>
<child>
<object class="GtkVBox" id="roster_tweaks_config_vbox">
<object class="GtkBox" id="roster_tweaks_config_vbox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="border_width">9</property>
<property name="orientation">vertical</property>
<property name="spacing">4</property>
@@ -14,13 +16,14 @@
<property name="label" translatable="yes">Hide status combobox</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="receives_default">False</property>
<property name="focus_on_click">False</property>
<property name="receives_default">False</property>
<property name="draw_indicator">True</property>
<signal name="toggled" handler="on_hide_combo_toggled"/>
<signal name="toggled" handler="on_hide_combo_toggled" swapped="no"/>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
@@ -29,13 +32,14 @@
<property name="label" translatable="yes">Use Ctrl +M to hide/show menu</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="receives_default">False</property>
<property name="focus_on_click">False</property>
<property name="receives_default">False</property>
<property name="draw_indicator">True</property>
<signal name="toggled" handler="on_use_ctr_m_toggled"/>
<signal name="toggled" handler="on_use_ctr_m_toggled" swapped="no"/>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
@@ -44,13 +48,14 @@
<property name="label" translatable="yes">Show quick-change status field</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="receives_default">False</property>
<property name="focus_on_click">False</property>
<property name="receives_default">False</property>
<property name="draw_indicator">True</property>
<signal name="toggled" handler="on_quick_status_toggled"/>
<signal name="toggled" handler="on_quick_status_toggled" swapped="no"/>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">2</property>
</packing>
</child>
@@ -59,13 +64,14 @@
<property name="label" translatable="yes">Always show contacts status substrings</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="receives_default">False</property>
<property name="focus_on_click">False</property>
<property name="receives_default">False</property>
<property name="draw_indicator">True</property>
<signal name="toggled" handler="on_contact_status_subs_toggled"/>
<signal name="toggled" handler="on_contact_status_subs_toggled" swapped="no"/>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">3</property>
</packing>
</child>
@@ -73,17 +79,21 @@
</child>
</object>
<object class="GtkWindow" id="window2">
<property name="can_focus">False</property>
<child>
<object class="GtkHBox" id="hbox1">
<object class="GtkBox" id="hbox1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
<object class="GtkEntry" id="status_entry">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="invisible_char">&#x25CF;</property>
<signal name="key_press_event" handler="status_changed"/>
<property name="invisible_char"></property>
<signal name="key-press-event" handler="status_changed" swapped="no"/>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
@@ -93,12 +103,13 @@
<property name="can_focus">False</property>
<property name="receives_default">True</property>
<property name="relief">none</property>
<signal name="clicked" handler="on_activity_button_clicked"/>
<signal name="clicked" handler="on_activity_button_clicked" swapped="no"/>
<child>
<object class="GtkImage" id="activity_image">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="stock">gtk-stop</property>
<property name="icon-size">1</property>
<property name="icon_size">1</property>
</object>
</child>
</object>
@@ -114,12 +125,13 @@
<property name="can_focus">False</property>
<property name="receives_default">True</property>
<property name="relief">none</property>
<signal name="clicked" handler="on_mood_button_clicked"/>
<signal name="clicked" handler="on_mood_button_clicked" swapped="no"/>
<child>
<object class="GtkImage" id="mood_image">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="stock">gtk-stop</property>
<property name="icon-size">1</property>
<property name="icon_size">1</property>
</object>
</child>
</object>