AUDIT: r23088 - gnucash/trunk/src/gnome-utils - Bug #699686 - Startup dialog windows should be top level windows
Geert Janssens
gjanssens at code.gnucash.org
Wed Jul 3 04:08:01 EDT 2013
Author: gjanssens
Date: 2013-07-03 04:08:00 -0400 (Wed, 03 Jul 2013)
New Revision: 23088
Trac: http://svn.gnucash.org/trac/changeset/23088
Modified:
gnucash/trunk/src/gnome-utils/gnc-file.c
gnucash/trunk/src/gnome-utils/gnc-gui-query.c
Log:
Bug #699686 - Startup dialog windows should be top level windows
Author: Simon Arlott <bugzilla.gnome.simon at arlott.org>
BP
Modified: gnucash/trunk/src/gnome-utils/gnc-file.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-file.c 2013-07-02 20:28:01 UTC (rev 23087)
+++ gnucash/trunk/src/gnome-utils/gnc-file.c 2013-07-03 08:08:00 UTC (rev 23088)
@@ -303,6 +303,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);
@@ -765,6 +767,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 Read-Only"),
GTK_STOCK_REVERT_TO_SAVED, RESPONSE_READONLY);
Modified: gnucash/trunk/src/gnome-utils/gnc-gui-query.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-gui-query.c 2013-07-02 20:28:01 UTC (rev 23087)
+++ gnucash/trunk/src/gnome-utils/gnc-gui-query.c 2013-07-03 08:08:00 UTC (rev 23088)
@@ -74,6 +74,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);
@@ -119,6 +122,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));
@@ -158,6 +164,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);
}
@@ -193,6 +202,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);
}
@@ -237,6 +249,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