diff --git a/src/dialogs.py b/src/dialogs.py index d92698a16..a8cad7474 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -862,8 +862,6 @@ class XMLConsoleWindow: self.stanzas_log_textview = self.xml.get_widget('stanzas_log_textview') self.input_tv_buffer = self.input_textview.get_buffer() - print self.xml.get_widget('expander').set_resize_mode(gtk.RESIZE_IMMEDIATE) - self.input_textview.modify_base( gtk.STATE_NORMAL, gtk.gdk.color_parse('black')) self.input_textview.modify_text( @@ -875,15 +873,12 @@ class XMLConsoleWindow: gtk.STATE_NORMAL, gtk.gdk.color_parse('green')) if len(gajim.connections) > 1: - title = _('XML Console for %s')\ - % gajim.config.get_per('accounts', self.account, 'name') + title = _('XML Console for %s') % self.account else: title = _('XML Console') self.window.set_title(title) - self.input_textview.grab_focus() - self.xml.signal_autoconnect(self) self.window.show_all() @@ -908,9 +903,11 @@ class XMLConsoleWindow: self.input_tv_buffer.set_text( '' ) - - def on_expander_size_request(self, widget, req): - pass + + def on_expander_activate(self, widget): + if not widget.get_expanded(): # it's the opposite! + # it's expanded!! + self.input_textview.grab_focus() def on_xml_console_window_destroy(self, widget): # remove us from open windows diff --git a/src/gtkgui.glade b/src/gtkgui.glade index 0fa9f7637..9a499abb2 100644 --- a/src/gtkgui.glade +++ b/src/gtkgui.glade @@ -16304,77 +16304,65 @@ Maybe I'll refactor later - + True - True - 390 + False + 6 - + True - False - 6 + <b>Jabber Traffic</b> + False + True + GTK_JUSTIFY_LEFT + False + False + 0 + 0.5 + 0 + 0 + + + 0 + False + False + + + + + + True + True + GTK_POLICY_AUTOMATIC + GTK_POLICY_AUTOMATIC + GTK_SHADOW_IN + GTK_CORNER_TOP_LEFT - - True - <b>Jabber Traffic</b> - False - True - GTK_JUSTIFY_LEFT - False - False - 0 - 0.5 - 0 - 0 - - - 0 - False - False - - - - - + True True - GTK_POLICY_AUTOMATIC - GTK_POLICY_AUTOMATIC - GTK_SHADOW_IN - GTK_CORNER_TOP_LEFT - - - - True - True - False - False - True - GTK_JUSTIFY_LEFT - GTK_WRAP_CHAR - True - 0 - 0 - 0 - 0 - 0 - 0 - - - + False + False + True + GTK_JUSTIFY_LEFT + GTK_WRAP_CHAR + True + 0 + 0 + 0 + 0 + 0 + 0 + - - 0 - True - True - - True - True + 0 + True + True @@ -16384,10 +16372,10 @@ Maybe I'll refactor later True False 6 - + - + True False 6 @@ -16437,6 +16425,7 @@ Maybe I'll refactor later True + Info/Query True _IQ True @@ -16570,8 +16559,9 @@ Maybe I'll refactor later - True - True + 0 + False + True