From ee12a62ad6c279b65393257614aae33f9ebf62e8 Mon Sep 17 00:00:00 2001 From: Thomas Perl Date: Tue, 15 Mar 2011 10:40:38 +0100 Subject: [PATCH] Maemo 5: Settings dialog (no close button, has parent) --- src/panucci/gtkui/gtkmain.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/panucci/gtkui/gtkmain.py b/src/panucci/gtkui/gtkmain.py index e4f7586..6093bca 100644 --- a/src/panucci/gtkui/gtkmain.py +++ b/src/panucci/gtkui/gtkmain.py @@ -415,9 +415,13 @@ class PanucciGUI(object): def create_settings_dialog(self, w): dialog = gtk.Dialog(_("Settings"), - None, - gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT, - (gtk.STOCK_CLOSE, gtk.RESPONSE_ACCEPT)) + self.main_window, + gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT) + + # Maemo 5 has an implicit "close" button (tap outside of dialog) + if not platform.FREMANTLE: + dialog.add_button(gtk.STOCK_CLOSE, gtk.RESPONSE_ACCEPT) + table = gtk.Table(5, 2, True) dialog.vbox.add(table) b = gtk.CheckButton() -- 2.11.4.GIT