Commit 4eee4e64 authored by Yann Leboulanger's avatar Yann Leboulanger

[Triggers] Port to Py3 / GTK3

parent d72c800e
from triggers import Triggers
from .triggers import Triggers
<?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.20"/>
<object class="GtkListStore" id="liststore1">
<columns>
<!-- column-name item -->
......@@ -14,6 +14,9 @@
<row>
<col id="0" translatable="yes">group(s)</col>
</row>
<row>
<col id="0" translatable="yes">groupchat participant(s)</col>
</row>
<row>
<col id="0" translatable="yes">everybody</col>
</row>
......@@ -40,20 +43,23 @@
</data>
</object>
<object class="GtkWindow" id="advanced_notifications_window">
<property name="can_focus">False</property>
<property name="border_width">6</property>
<property name="title" translatable="yes">Advanced Notifications Control</property>
<property name="role">Advanced Notifications Control</property>
<property name="resizable">False</property>
<property name="destroy_with_parent">True</property>
<child>
<object class="GtkVBox" id="vbox">
<object class="GtkBox" id="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="GtkVBox" id="vbox100">
<object class="GtkBox" id="vbox100">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<property name="spacing">5</property>
<child>
......@@ -62,13 +68,15 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hscrollbar_policy">never</property>
<property name="vscrollbar_policy">automatic</property>
<property name="shadow_type">in</property>
<child>
<object class="GtkTreeView" id="conditions_treeview">
<property name="visible">True</property>
<property name="can_focus">True</property>
<signal name="cursor_changed" handler="on_conditions_treeview_cursor_changed"/>
<signal name="cursor-changed" handler="on_conditions_treeview_cursor_changed" swapped="no"/>
<child internal-child="selection">
<object class="GtkTreeSelection"/>
</child>
</object>
</child>
</object>
......@@ -81,14 +89,17 @@
<child>
<object class="GtkAlignment" id="alignment99">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">1</property>
<property name="left_padding">212</property>
<child>
<object class="GtkHBox" id="hbox3045">
<object class="GtkBox" id="hbox3045">
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
<object class="GtkHButtonBox" id="hbuttonbox2">
<object class="GtkButtonBox" id="hbuttonbox2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="spacing">10</property>
<child>
<object class="GtkButton" id="new_button">
......@@ -98,7 +109,7 @@
<property name="can_default">True</property>
<property name="receives_default">False</property>
<property name="use_stock">True</property>
<signal name="clicked" handler="on_new_button_clicked"/>
<signal name="clicked" handler="on_new_button_clicked" swapped="no"/>
</object>
<packing>
<property name="expand">False</property>
......@@ -114,7 +125,7 @@
<property name="can_default">True</property>
<property name="receives_default">False</property>
<property name="use_stock">True</property>
<signal name="clicked" handler="on_up_button_clicked"/>
<signal name="clicked" handler="on_up_button_clicked" swapped="no"/>
</object>
<packing>
<property name="expand">False</property>
......@@ -130,7 +141,7 @@
<property name="can_default">True</property>
<property name="receives_default">False</property>
<property name="use_stock">True</property>
<signal name="clicked" handler="on_down_button_clicked"/>
<signal name="clicked" handler="on_down_button_clicked" swapped="no"/>
</object>
<packing>
<property name="expand">False</property>
......@@ -146,7 +157,7 @@
<property name="can_default">True</property>
<property name="receives_default">False</property>
<property name="use_stock">True</property>
<signal name="clicked" handler="on_delete_button_clicked"/>
<signal name="clicked" handler="on_delete_button_clicked" swapped="no"/>
</object>
<packing>
<property name="expand">False</property>
......@@ -156,6 +167,7 @@
</child>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">False</property>
<property name="position">0</property>
</packing>
......@@ -171,17 +183,21 @@
</child>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkVBox" id="config_vbox">
<object class="GtkBox" id="config_vbox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<property name="spacing">5</property>
<child>
<object class="GtkLabel" id="label391">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">&lt;b&gt;Conditions&lt;/b&gt;</property>
<property name="use_markup">True</property>
</object>
......@@ -192,17 +208,20 @@
</packing>
</child>
<child>
<object class="GtkVBox" id="vbox101">
<object class="GtkBox" id="vbox101">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<property name="spacing">5</property>
<child>
<object class="GtkHBox" id="hbox3042">
<object class="GtkBox" id="hbox3042">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="spacing">5</property>
<child>
<object class="GtkLabel" id="label401">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">When </property>
<property name="use_markup">True</property>
</object>
......@@ -215,8 +234,9 @@
<child>
<object class="GtkComboBox" id="event_combobox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="model">liststore2</property>
<signal name="changed" handler="on_event_combobox_changed"/>
<signal name="changed" handler="on_event_combobox_changed" swapped="no"/>
<child>
<object class="GtkCellRendererText" id="cellrenderertext2"/>
<attributes>
......@@ -232,16 +252,20 @@
</child>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkHBox" id="hbox3048">
<object class="GtkBox" id="hbox3048">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="spacing">5</property>
<child>
<object class="GtkLabel" id="label400">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">for </property>
<property name="use_markup">True</property>
</object>
......@@ -254,8 +278,9 @@
<child>
<object class="GtkComboBox" id="recipient_type_combobox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="model">liststore1</property>
<signal name="changed" handler="on_recipient_type_combobox_changed"/>
<signal name="changed" handler="on_recipient_type_combobox_changed" swapped="no"/>
<child>
<object class="GtkCellRendererText" id="cellrenderertext1"/>
<attributes>
......@@ -265,6 +290,7 @@
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
......@@ -274,23 +300,29 @@
<property name="can_focus">True</property>
<property name="no_show_all">True</property>
<property name="tooltip_text" translatable="yes">comma separated list</property>
<signal name="changed" handler="on_recipient_list_entry_changed"/>
<signal name="changed" handler="on_recipient_list_entry_changed" swapped="no"/>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">2</property>
</packing>
</child>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkHBox" id="hbox3049">
<object class="GtkBox" id="hbox3049">
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
<object class="GtkLabel" id="label402">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">when I'm in</property>
<property name="use_markup">True</property>
</object>
......@@ -301,8 +333,9 @@
</packing>
</child>
<child>
<object class="GtkHBox" id="status_hbox">
<object class="GtkBox" id="status_hbox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="spacing">3</property>
<child>
<object class="GtkRadioButton" id="all_status_rb">
......@@ -312,7 +345,7 @@
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="draw_indicator">True</property>
<signal name="toggled" handler="on_status_radiobutton_toggled"/>
<signal name="toggled" handler="on_status_radiobutton_toggled" swapped="no"/>
</object>
<packing>
<property name="expand">False</property>
......@@ -345,7 +378,7 @@
<property name="no_show_all">True</property>
<property name="use_underline">True</property>
<property name="draw_indicator">True</property>
<signal name="toggled" handler="on_status_cb_toggled"/>
<signal name="toggled" handler="on_status_cb_toggled" swapped="no"/>
</object>
<packing>
<property name="expand">False</property>
......@@ -362,7 +395,7 @@
<property name="no_show_all">True</property>
<property name="use_underline">True</property>
<property name="draw_indicator">True</property>
<signal name="toggled" handler="on_status_cb_toggled"/>
<signal name="toggled" handler="on_status_cb_toggled" swapped="no"/>
</object>
<packing>
<property name="expand">False</property>
......@@ -379,7 +412,7 @@
<property name="no_show_all">True</property>
<property name="use_underline">True</property>
<property name="draw_indicator">True</property>
<signal name="toggled" handler="on_status_cb_toggled"/>
<signal name="toggled" handler="on_status_cb_toggled" swapped="no"/>
</object>
<packing>
<property name="expand">False</property>
......@@ -396,7 +429,7 @@
<property name="no_show_all">True</property>
<property name="use_underline">True</property>
<property name="draw_indicator">True</property>
<signal name="toggled" handler="on_status_cb_toggled"/>
<signal name="toggled" handler="on_status_cb_toggled" swapped="no"/>
</object>
<packing>
<property name="expand">False</property>
......@@ -413,7 +446,7 @@
<property name="no_show_all">True</property>
<property name="use_underline">True</property>
<property name="draw_indicator">True</property>
<signal name="toggled" handler="on_status_cb_toggled"/>
<signal name="toggled" handler="on_status_cb_toggled" swapped="no"/>
</object>
<packing>
<property name="expand">False</property>
......@@ -423,20 +456,26 @@
</child>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">2</property>
</packing>
</child>
<child>
<object class="GtkHBox" id="hbox3053">
<object class="GtkBox" id="hbox3053">
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
<object class="GtkLabel" id="label408">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">and I </property>
<property name="use_markup">True</property>
</object>
......@@ -454,7 +493,7 @@
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="draw_indicator">True</property>
<signal name="toggled" handler="on_tab_opened_cb_toggled"/>
<signal name="toggled" handler="on_tab_opened_cb_toggled" swapped="no"/>
</object>
<packing>
<property name="expand">False</property>
......@@ -470,7 +509,7 @@
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="draw_indicator">True</property>
<signal name="toggled" handler="on_not_tab_opened_cb_toggled"/>
<signal name="toggled" handler="on_not_tab_opened_cb_toggled" swapped="no"/>
</object>
<packing>
<property name="expand">False</property>
......@@ -481,6 +520,7 @@
<child>
<object class="GtkLabel" id="label409">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes"> a window/tab opened with that contact </property>
<property name="use_markup">True</property>
</object>
......@@ -492,17 +532,88 @@
</child>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">3</property>
</packing>
</child>
<child>
<object class="GtkBox" id="focus_hbox">
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can_focus">False</property>
<child>
<object class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">and it </property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkCheckButton" id="has_focus_cb">
<property name="label" translatable="yes">has </property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="draw_indicator">True</property>
<signal name="toggled" handler="on_has_focus_cb_toggled" swapped="no"/>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkCheckButton" id="not_has_focus_cb">
<property name="label" translatable="yes">doesn't have </property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="draw_indicator">True</property>
<signal name="toggled" handler="on_not_has_focus_cb_toggled" swapped="no"/>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">2</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">focus</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">True</property>
<property name="fill">True</property>
<property name="position">4</property>
</packing>
</child>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label392">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">&lt;b&gt;Actions&lt;/b&gt;</property>
<property name="use_markup">True</property>
</object>
......@@ -515,11 +626,13 @@
<child>
<object class="GtkFrame" id="frame35">
<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="GtkHBox" id="hbox3027">
<object class="GtkBox" id="hbox3027">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="spacing">6</property>
<child>
<object class="GtkCheckButton" id="use_popup_cb">
......@@ -529,7 +642,7 @@
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="draw_indicator">True</property>
<signal name="toggled" handler="on_use_popup_cb_toggled"/>
<signal name="toggled" handler="on_use_popup_cb_toggled" swapped="no"/>
</object>
<packing>
<property name="expand">False</property>
......@@ -545,7 +658,7 @@
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="draw_indicator">True</property>
<signal name="toggled" handler="on_disable_popup_cb_toggled"/>
<signal name="toggled" handler="on_disable_popup_cb_toggled" swapped="no"/>
</object>
<packing>
<property name="expand">False</property>
......@@ -558,21 +671,25 @@
<child type="label">
<object class="GtkFrame" id="frame38">
<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="alignment93">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="border_width">6</property>
<property name="left_padding">12</property>
<child>
<object class="GtkVBox" id="vbox98">
<object class="GtkBox" id="vbox98">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<property name="spacing">6</property>
<child>
<object class="GtkHBox" id="hbox3028">
<object class="GtkBox" id="hbox3028">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="spacing">6</property>
<property name="homogeneous">True</property>
<child>
......@@ -583,24 +700,29 @@
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="draw_indicator">True</property>
<signal name="toggled" handler="on_use_sound_cb_toggled"/>
<signal name="toggled" handler="on_use_sound_cb_toggled" swapped="no"/>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkHBox" id="sound_file_hbox">
<object class="GtkBox" id="sound_file_hbox">
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can_focus">False</property>
<property name="spacing">6</property>
<child>
<object class="GtkEntry" id="sound_entry">
<property name="visible">True</property>
<property name="can_focus">True</property>
<signal name="changed" handler="on_sound_entry_changed"/>
<signal name="changed" handler="on_sound_entry_changed" swapped="no"/>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
......@@ -611,7 +733,7 @@
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<signal name="clicked" handler="on_browse_for_sounds_button_clicked"/>
<signal name="clicked" handler="on_browse_for_sounds_button_clicked" swapped="no"/>
</object>
<packing>
<property name="expand">False</property>
......@@ -624,10 +746,11 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<signal name="clicked" handler="on_play_button_clicked"/>
<signal name="clicked" handler="on_play_button_clicked" swapped="no"/>
<child>
<object class="GtkImage" id="image1372">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="stock">gtk-media-play</property>
</object>
</child>
......@@ -640,6 +763,8 @@
</child>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
......@@ -658,7 +783,7 @@
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="draw_indicator">True</property>
<signal name="toggled" handler="on_disable_sound_cb_toggled"/>
<signal name="toggled" handler="on_disable_sound_cb_toggled" swapped="no"/>
</object>
<packing>
<property name="expand">False</property>
......@@ -673,6 +798,7 @@
<child type="label">
<object class="GtkLabel" id="label394">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">&lt;b&gt;Sounds&lt;/b&gt;</property>
<property name="use_markup">True</property>
</object>
......@@ -681,12 +807,15 @@
</child>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">3</property>
</packing>
</child>
<child>
<object class="GtkHBox" id="hbox3032">
<object class="GtkBox" id="hbox3032">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="spacing">6</property>
<child>
<object class="GtkCheckButton" id="use_auto_open_cb">
......@@ -696,7 +825,7 @@
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="draw_indicator">True</property>
<signal name="toggled" handler="on_use_auto_open_cb_toggled"/>
<signal name="toggled" handler="on_use_auto_open_cb_toggled" swapped="no"/>
</object>
<packing>
<property name="expand">False</property>
......@@ -712,7 +841,7 @@
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="draw_indicator">True</property>
<signal name="toggled" handler="on_disable_auto_open_cb_toggled"/>
<signal name="toggled" handler="on_disable_auto_open_cb_toggled" swapped="no"/>
</object>
<packing>
<property name="expand">False</property>
......@@ -722,6 +851,8 @@
</child>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">4</property>
</packing>
</child>
......@@ -731,13 +862,15 @@
<property name="can_focus">True</property>
<property name="expanded">True</property>
<child>
<object class="GtkVBox" id="vbox99">
<object class="GtkBox" id="vbox99">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<property name="spacing">5</property>
<child>
<object class="GtkHBox" id="hbox3033">
<object class="GtkBox" id="hbox3033">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="spacing">6</property>
<child>
<object class="GtkCheckButton" id="run_command_cb">
......@@ -747,10 +880,11 @@
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="draw_indicator">True</property>
<signal name="toggled" handler="on_run_command_cb_toggled"/>
<signal name="toggled" handler="on_run_command_cb_toggled" swapped="no"/>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
......@@ -759,9 +893,11 @@
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can_focus">True</property>
<signal name="changed" handler="on_command_entry_changed"/>
<signal name="changed" handler="on_command_entry_changed" swapped="no"/>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
......@@ -773,8 +909,9 @@
</packing>
</child>
<child>
<object class="GtkHBox" id="hbox3035">
<object class="GtkBox" id="hbox3035">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="spacing">6</property>
<child>
<object class="GtkCheckButton" id="use_systray_cb">
......@@ -784,7 +921,7 @@
<property name="receives_default">False</property>