[gnome-control-center] Don't set a parent on a toplevel
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] Don't set a parent on a toplevel
- Date: Fri, 21 Jan 2011 20:06:48 +0000 (UTC)
commit eac5028a7598b40941d565023aff5e372d7598aa
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Jan 21 15:06:36 2011 -0500
Don't set a parent on a toplevel
panels/region/gnome-region-panel-xkblt.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/panels/region/gnome-region-panel-xkblt.c b/panels/region/gnome-region-panel-xkblt.c
index 2bc3e7a..a582824 100644
--- a/panels/region/gnome-region-panel-xkblt.c
+++ b/panels/region/gnome-region-panel-xkblt.c
@@ -341,7 +341,8 @@ show_selected_layout (GtkWidget * button, GtkBuilder * dialog)
GtkWidget *parent = WID ("region_dialog");
GtkWidget *popup =
gkbd_keyboard_drawing_new_dialog (idx, descr);
- gtk_widget_set_parent (popup, parent);
+ gtk_window_set_transient_for (GTK_WINDOW (popup),
+ GTK_WINDOW (parent));
g_strfreev (layouts_list);
g_free (descr);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]