From bb844593988036bf681a16e7d547731c6f12b8de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Tue, 3 Oct 2017 00:48:35 +0200 Subject: [PATCH] Remove unused var --- gui_for_me/gui_for_me.py | 1 - image/image.py | 1 - juick/plugin.py | 2 +- quick_replies/plugin.py | 1 - 4 files changed, 1 insertion(+), 4 deletions(-) diff --git a/gui_for_me/gui_for_me.py b/gui_for_me/gui_for_me.py index 7d47183..1cd907a 100644 --- a/gui_for_me/gui_for_me.py +++ b/gui_for_me/gui_for_me.py @@ -72,7 +72,6 @@ class Base(object): self.button.set_image(img) self.button.set_tooltip_text(_('Insert /me to conversation input box,' ' at cursor position')) - send_button = self.chat_control.xml.get_object('send_button') actions_hbox.pack_start(self.button, False, False , 0) actions_hbox.reorder_child(self.button, len(actions_hbox.get_children()) - 3) diff --git a/image/image.py b/image/image.py index 836c3ba..51dc203 100644 --- a/image/image.py +++ b/image/image.py @@ -76,7 +76,6 @@ class Base(object): ag = Gtk.accel_groups_from_object(self.chat_control.parent_win.window)[0] self.button.add_accelerator('activate', ag, Gdk.KEY_L, Gdk.ModifierType.MOD1_MASK, Gtk.AccelFlags.VISIBLE) - send_button = chat_control.xml.get_object('send_button') actions_hbox.pack_start(self.button, False, False , 0) actions_hbox.reorder_child(self.button, diff --git a/juick/plugin.py b/juick/plugin.py index c6068a5..b2f1fe4 100644 --- a/juick/plugin.py +++ b/juick/plugin.py @@ -177,7 +177,7 @@ class Base(object): img.set_from_stock('juick', Gtk.IconSize.MENU) self.button.set_image(img) self.button.set_tooltip_text(_('Juick commands')) - send_button = self.chat_control.xml.get_object('send_button') + actions_hbox.pack_start(self.button, False, False , 0) actions_hbox.reorder_child(self.button, len(actions_hbox.get_children()) - 3) diff --git a/quick_replies/plugin.py b/quick_replies/plugin.py index 0c871bf..73187b2 100644 --- a/quick_replies/plugin.py +++ b/quick_replies/plugin.py @@ -84,7 +84,6 @@ class Base(object): img.set_from_stock('quickreplies', Gtk.IconSize.MENU) self.button.set_image(img) self.button.set_tooltip_text(_('Quick replies')) - send_button = self.chat_control.xml.get_object('send_button') actions_hbox.pack_start(self.button, False, False , 0) actions_hbox.reorder_child(self.button, len(actions_hbox.get_children()) - 3)