Skip to content

Commit

Permalink
Made about dialog compatibile with gtk 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
kozec committed Sep 23, 2014
1 parent 4206288 commit 4aecef1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions about.glade
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.18.3 -->
<!-- Generated with glade 3.16.1 -->
<interface>
<requires lib="gtk+" version="3.12"/>
<requires lib="gtk+" version="3.10"/>
<object class="GtkAboutDialog" id="dialog">
<property name="can_focus">False</property>
<property name="type_hint">dialog</property>
Expand All @@ -12,6 +12,7 @@
<property name="website_label" translatable="yes">GitHub</property>
<property name="logo">icons/st-gtk-logo.png</property>
<property name="license_type">gpl-2-0</property>
<signal name="response" handler="on_dialog_response" swapped="no"/>
<child internal-child="vbox">
<object class="GtkBox" id="aboutdialog-vbox1">
<property name="can_focus">False</property>
Expand Down
3 changes: 3 additions & 0 deletions syncthing_gtk/about.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,6 @@ def setup_widgets(self):
self.builder.add_from_file(os.path.join(self.app.gladepath, "about.glade"))
self.builder.connect_signals(self)
self.dialog = self.builder.get_object("dialog")

def on_dialog_response(self, *a):
self.close()

0 comments on commit 4aecef1

Please sign in to comment.