Handle bookmark button in chat window like we handle add contact.
This commit is contained in:
parent
4006306d4f
commit
5b1eb90557
2 changed files with 3 additions and 1 deletions
|
|
@ -735,6 +735,7 @@
|
|||
<child>
|
||||
<widget class="GtkButton" id="bookmark_button">
|
||||
<property name="visible">True</property>
|
||||
<property name="no_show_all">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="tooltip" translatable="yes">Bookmark this room (Ctrl+B)</property>
|
||||
<property name="relief">GTK_RELIEF_NONE</property>
|
||||
|
|
|
|||
|
|
@ -196,12 +196,13 @@ class GroupchatControl(ChatControlBase):
|
|||
widget = self.xml.get_widget('bookmark_button')
|
||||
for bm in gajim.connections[self.account].bookmarks:
|
||||
if bm['jid'] == self.contact.jid:
|
||||
widget.set_sensitive(False)
|
||||
widget.hide()
|
||||
break
|
||||
else:
|
||||
id = widget.connect('clicked',
|
||||
self._on_bookmark_room_menuitem_activate)
|
||||
self.handlers[id] = widget
|
||||
widget.show()
|
||||
|
||||
widget = self.xml.get_widget('list_treeview')
|
||||
id = widget.connect('row_expanded', self.on_list_treeview_row_expanded)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue