diff options
author | Davyd Madeley <davyd@madeley.id.au> | 2009-04-11 00:53:49 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2009-04-11 00:53:49 +0800 |
commit | 5379a90b9376fb816413c7fa036d4fdde8072e62 (patch) | |
tree | b7afb01fd535bf1b92c18cdc727684b89a49ffa7 /libempathy-gtk | |
parent | 9f8a30bbd4f896f12354d1f627f4b6563c1d846a (diff) | |
download | gsoc2013-empathy-5379a90b9376fb816413c7fa036d4fdde8072e62.tar gsoc2013-empathy-5379a90b9376fb816413c7fa036d4fdde8072e62.tar.gz gsoc2013-empathy-5379a90b9376fb816413c7fa036d4fdde8072e62.tar.bz2 gsoc2013-empathy-5379a90b9376fb816413c7fa036d4fdde8072e62.tar.lz gsoc2013-empathy-5379a90b9376fb816413c7fa036d4fdde8072e62.tar.xz gsoc2013-empathy-5379a90b9376fb816413c7fa036d4fdde8072e62.tar.zst gsoc2013-empathy-5379a90b9376fb816413c7fa036d4fdde8072e62.zip |
Make custom messages dialog a transient of the window containing the presence selector (if possible)
From: Davyd Madeley <davyd@madeley.id.au>
svn path=/trunk/; revision=2779
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-presence-chooser.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/libempathy-gtk/empathy-presence-chooser.c b/libempathy-gtk/empathy-presence-chooser.c index 43aad33c5..80ebe1fac 100644 --- a/libempathy-gtk/empathy-presence-chooser.c +++ b/libempathy-gtk/empathy-presence-chooser.c @@ -107,7 +107,7 @@ static void presence_chooser_set_state (McPresence const gchar *status); static void presence_chooser_custom_activate_cb (GtkWidget *item, gpointer user_data); -static void presence_chooser_dialog_show (void); +static void presence_chooser_dialog_show (GtkWindow *parent); G_DEFINE_TYPE (EmpathyPresenceChooser, empathy_presence_chooser, GTK_TYPE_COMBO_BOX_ENTRY); @@ -734,7 +734,7 @@ static void presence_chooser_custom_activate_cb (GtkWidget *item, gpointer user_data) { - presence_chooser_dialog_show (); + presence_chooser_dialog_show (NULL); } static McPresence @@ -899,7 +899,7 @@ presence_chooser_dialog_destroy_cb (GtkWidget *widget, } static void -presence_chooser_dialog_show (void) +presence_chooser_dialog_show (GtkWindow *parent) { GladeXML *glade; gchar *filename; @@ -945,7 +945,12 @@ presence_chooser_dialog_show (void) gtk_combo_box_entry_set_text_column (GTK_COMBO_BOX_ENTRY (message_dialog->comboboxentry_message), 0); - /* FIXME: Set transian for a window ? */ + if (parent) + { + gtk_window_set_transient_for ( + GTK_WINDOW (message_dialog->dialog), + parent); + } gtk_widget_show_all (message_dialog->dialog); } |