resizing for xml input now works as expected
This commit is contained in:
parent
56fefe30f8
commit
5e8000419a
|
@ -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()
|
||||
|
||||
|
@ -909,8 +904,10 @@ class XMLConsoleWindow:
|
|||
'<message to="" type=""><body></body></message>'
|
||||
)
|
||||
|
||||
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
|
||||
|
|
|
@ -16304,13 +16304,7 @@ Maybe I'll refactor later</property>
|
|||
<signal name="destroy" handler="on_xml_console_window_destroy" last_modification_time="Mon, 04 Jul 2005 20:12:04 GMT"/>
|
||||
|
||||
<child>
|
||||
<widget class="GtkVPaned" id="vpaned4">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="position">390</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkVBox" id="traffic_vbox">
|
||||
<widget class="GtkVBox" id="vbox">
|
||||
<property name="visible">True</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">6</property>
|
||||
|
@ -16371,12 +16365,6 @@ Maybe I'll refactor later</property>
|
|||
<property name="fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="shrink">True</property>
|
||||
<property name="resize">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkExpander" id="expander">
|
||||
|
@ -16384,10 +16372,10 @@ Maybe I'll refactor later</property>
|
|||
<property name="can_focus">True</property>
|
||||
<property name="expanded">False</property>
|
||||
<property name="spacing">6</property>
|
||||
<signal name="size_request" handler="on_expander_size_request" last_modification_time="Mon, 04 Jul 2005 21:12:26 GMT"/>
|
||||
<signal name="activate" handler="on_expander_activate" last_modification_time="Mon, 04 Jul 2005 22:24:33 GMT"/>
|
||||
|
||||
<child>
|
||||
<widget class="GtkVBox" id="vbox104">
|
||||
<widget class="GtkVBox" id="input_vbox">
|
||||
<property name="visible">True</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">6</property>
|
||||
|
@ -16437,6 +16425,7 @@ Maybe I'll refactor later</property>
|
|||
<child>
|
||||
<widget class="GtkButton" id="iq_button">
|
||||
<property name="visible">True</property>
|
||||
<property name="tooltip" translatable="yes">Info/Query</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="label" translatable="yes">_IQ</property>
|
||||
<property name="use_underline">True</property>
|
||||
|
@ -16570,8 +16559,9 @@ Maybe I'll refactor later</property>
|
|||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="shrink">True</property>
|
||||
<property name="resize">True</property>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
|
|
Loading…
Reference in New Issue