diff options
author | Matthias Clasen <mclasen@redhat.com> | 2014-05-02 18:23:58 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2014-05-02 18:23:58 -0400 |
commit | c4ec89cf9d296c60513f61aaba88415b8f0fd81f (patch) | |
tree | 8297eb2077f85a23ef73066c82836887f18637fa /gtk/gtkdialog.c | |
parent | 3db60baf2de066b85dafad4eb8c565e74d9e11c3 (diff) | |
download | gtk+-c4ec89cf9d296c60513f61aaba88415b8f0fd81f.tar.gz |
GtkDialog: Warn about lack of transient parents
We want make it mandatory for dialogs to have transient parents,
eventually. This is a first step in that direction.
Diffstat (limited to 'gtk/gtkdialog.c')
-rw-r--r-- | gtk/gtkdialog.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkdialog.c b/gtk/gtkdialog.c index 73ae618322..bf41fb496d 100644 --- a/gtk/gtkdialog.c +++ b/gtk/gtkdialog.c @@ -793,6 +793,9 @@ gtk_dialog_map (GtkWidget *widget) GtkWindow *window = GTK_WINDOW (widget); GtkDialog *dialog = GTK_DIALOG (widget); + if (gtk_window_get_transient_for (window) == NULL) + g_warning ("GtkDialog mapped without a transient parent. This is discouraged."); + GTK_WIDGET_CLASS (gtk_dialog_parent_class)->map (widget); focus = gtk_window_get_focus (window); |