[gnome-color-manager/gnome-3-6] Set the transient and modal values before showing the window
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-color-manager/gnome-3-6] Set the transient and modal values before showing the window
- Date: Wed, 13 Feb 2013 15:24:49 +0000 (UTC)
commit 235fc53916a30e876a5c3886b36fe4d18163eb7f
Author: Richard Hughes <richard hughsie com>
Date: Tue Feb 12 12:18:06 2013 +0000
Set the transient and modal values before showing the window
Fixes calling gcm-viewer with --parent-window for a specific profile.
src/gcm-viewer.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/gcm-viewer.c b/src/gcm-viewer.c
index 0e7d888..f887e69 100644
--- a/src/gcm-viewer.c
+++ b/src/gcm-viewer.c
@@ -1672,15 +1672,15 @@ gcm_viewer_startup_cb (GApplication *application, GcmViewerPrivate *viewer)
context = gtk_widget_get_style_context (widget);
gtk_style_context_add_class (context, "dim-label");
- /* show main UI */
- gtk_widget_show (main_window);
-
/* set the parent window if it is specified */
if (viewer->xid != 0) {
g_debug ("Setting xid %i", viewer->xid);
gcm_window_set_parent_xid (GTK_WINDOW (main_window), viewer->xid);
}
+ /* show main UI */
+ gtk_widget_show (main_window);
+
/* specified an ID */
if (viewer->profile_id != NULL) {
gcm_viewer_show_single_profile_by_id (viewer,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]