[gnome-color-manager] 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] Set the transient and modal values before showing the window
- Date: Tue, 12 Feb 2013 12:27:54 +0000 (UTC)
commit 5d0c2be0b81930afb56c73692a18c44231cd14be
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 36d52e6..9b366d9 100644
--- a/src/gcm-viewer.c
+++ b/src/gcm-viewer.c
@@ -1768,15 +1768,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]