r23089 - gnucash/branches/2.4/src/gnome-utils - [23088] Bug #699686 - Startup dialog windows should be top level windows
Geert Janssens
gjanssens at code.gnucash.org
Wed Jul 3 04:16:52 EDT 2013
Author: gjanssens
Date: 2013-07-03 04:16:52 -0400 (Wed, 03 Jul 2013)
New Revision: 23089
Trac: http://svn.gnucash.org/trac/changeset/23089
Modified:
gnucash/branches/2.4/src/gnome-utils/gnc-file.c
gnucash/branches/2.4/src/gnome-utils/gnc-gui-query.c
Log:
[23088] Bug #699686 - Startup dialog windows should be top level windows
Author: Simon Arlott <bugzilla.gnome.simon at arlott.org>
Modified: gnucash/branches/2.4/src/gnome-utils/gnc-file.c
===================================================================
--- gnucash/branches/2.4/src/gnome-utils/gnc-file.c 2013-07-03 08:08:00 UTC (rev 23088)
+++ gnucash/branches/2.4/src/gnome-utils/gnc-file.c 2013-07-03 08:16:52 UTC (rev 23089)
@@ -304,6 +304,8 @@
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
label, GTK_RESPONSE_YES,
NULL);
+ if (parent == NULL)
+ gtk_window_set_skip_taskbar_hint(GTK_WINDOW(dialog), FALSE);
response = gtk_dialog_run(GTK_DIALOG(dialog));
gtk_widget_destroy(dialog);
uh_oh = (response != GTK_RESPONSE_YES);
@@ -760,6 +762,7 @@
fmt1, displayname);
gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog),
"%s", fmt2);
+ gtk_window_set_skip_taskbar_hint(GTK_WINDOW(dialog), FALSE);
gnc_gtk_dialog_add_button(dialog, _("_Open Anyway"),
GTK_STOCK_OPEN, RESPONSE_OPEN);
Modified: gnucash/branches/2.4/src/gnome-utils/gnc-gui-query.c
===================================================================
--- gnucash/branches/2.4/src/gnome-utils/gnc-gui-query.c 2013-07-03 08:08:00 UTC (rev 23088)
+++ gnucash/branches/2.4/src/gnome-utils/gnc-gui-query.c 2013-07-03 08:16:52 UTC (rev 23089)
@@ -75,6 +75,9 @@
g_free(buffer);
va_end(args);
+ if (parent == NULL)
+ gtk_window_set_skip_taskbar_hint(GTK_WINDOW(dialog), FALSE);
+
gtk_dialog_set_default_response (GTK_DIALOG(dialog), default_result);
result = gtk_dialog_run(GTK_DIALOG(dialog));
gtk_widget_destroy (dialog);
@@ -120,6 +123,9 @@
g_free(buffer);
va_end(args);
+ if (parent == NULL)
+ gtk_window_set_skip_taskbar_hint(GTK_WINDOW(dialog), FALSE);
+
gtk_dialog_set_default_response(GTK_DIALOG(dialog),
(yes_is_default ? GTK_RESPONSE_YES : GTK_RESPONSE_NO));
result = gtk_dialog_run(GTK_DIALOG(dialog));
@@ -159,6 +165,9 @@
buffer);
va_end(args);
+ if (parent == NULL)
+ gtk_window_set_skip_taskbar_hint(GTK_WINDOW(dialog), FALSE);
+
gtk_dialog_run(GTK_DIALOG(dialog));
gtk_widget_destroy (dialog);
}
@@ -194,6 +203,9 @@
buffer);
g_free(buffer);
+ if (parent == NULL)
+ gtk_window_set_skip_taskbar_hint(GTK_WINDOW(dialog), FALSE);
+
gtk_dialog_run (GTK_DIALOG (dialog));
gtk_widget_destroy (dialog);
}
@@ -238,6 +250,9 @@
buffer);
g_free(buffer);
+ if (parent == NULL)
+ gtk_window_set_skip_taskbar_hint(GTK_WINDOW(dialog), FALSE);
+
gtk_dialog_run(GTK_DIALOG(dialog));
gtk_widget_destroy (dialog);
}
More information about the gnucash-changes
mailing list