[devhelp/wip/stuff] app: make about dialog modal to active window
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devhelp/wip/stuff] app: make about dialog modal to active window
- Date: Tue, 30 Jul 2013 15:59:43 +0000 (UTC)
commit 9e59b1e28944bb33c4efff08a127461177d1d4e2
Author: Ignacio Casal Quinteiro <ignacio casal nice-software com>
Date: Tue Jul 30 17:59:08 2013 +0200
app: make about dialog modal to active window
It makes it more consistent with other apps.
src/dh-app.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/dh-app.c b/src/dh-app.c
index 81ebb0a..c590f00 100644
--- a/src/dh-app.c
+++ b/src/dh-app.c
@@ -173,6 +173,7 @@ about_cb (GSimpleAction *action,
GVariant *parameter,
gpointer user_data)
{
+ DhApp *app = DH_APP (user_data);
const gchar *authors[] = {
"Mikael Hallendal <micke imendio com>",
"Richard Hult <richard imendio com>",
@@ -184,10 +185,13 @@ about_cb (GSimpleAction *action,
};
const gchar **documenters = NULL;
const gchar *translator_credits = _("translator_credits");
+ GtkWindow *parent;
+
+ parent = dh_app_peek_first_window (app);
/* i18n: Please don't translate "Devhelp" (it's marked as translatable
* for transliteration only) */
- gtk_show_about_dialog (NULL,
+ gtk_show_about_dialog (parent,
"name", _("Devhelp"),
"version", PACKAGE_VERSION,
"comments", _("A developers' help browser for GNOME"),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]