[omemo] Keep compatibility with Gtk 3.20
This commit is contained in:
@@ -220,10 +220,10 @@ class OMEMOConfigDialog(GajimPluginConfigDialog):
|
|||||||
pixbuf = GdkPixbuf.Pixbuf.new_from_file(path)
|
pixbuf = GdkPixbuf.Pixbuf.new_from_file(path)
|
||||||
self.qrcode.set_from_pixbuf(pixbuf)
|
self.qrcode.set_from_pixbuf(pixbuf)
|
||||||
self.qrcode.show()
|
self.qrcode.show()
|
||||||
self.qrinfo.set_revealed(False)
|
self.qrinfo.hide()
|
||||||
else:
|
else:
|
||||||
self.qrinfo.set_revealed(True)
|
|
||||||
self.qrcode.hide()
|
self.qrcode.hide()
|
||||||
|
self.qrinfo.show()
|
||||||
|
|
||||||
def human_hash(self, fpr):
|
def human_hash(self, fpr):
|
||||||
fpr = fpr.upper()
|
fpr = fpr.upper()
|
||||||
|
|||||||
@@ -33,8 +33,8 @@
|
|||||||
<child>
|
<child>
|
||||||
<object class="GtkInfoBar" id="qrinfo">
|
<object class="GtkInfoBar" id="qrinfo">
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
|
<property name="no_show_all">True</property>
|
||||||
<property name="margin_bottom">6</property>
|
<property name="margin_bottom">6</property>
|
||||||
<property name="revealed">False</property>
|
|
||||||
<child internal-child="action_area">
|
<child internal-child="action_area">
|
||||||
<object class="GtkButtonBox">
|
<object class="GtkButtonBox">
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
|
|||||||
Reference in New Issue
Block a user