[telepathy-account-widgets] avatar-chooser: make the file chooser dialog modal
- From: Marco Barisione <mbari src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [telepathy-account-widgets] avatar-chooser: make the file chooser dialog modal
- Date: Tue, 27 Aug 2013 14:41:53 +0000 (UTC)
commit cb1222d2687e4e86bad1dfd72299512d35c0cb7a
Author: Marco Barisione <marco barisione collabora co uk>
Date: Tue Aug 27 13:20:15 2013 +0100
avatar-chooser: make the file chooser dialog modal
https://bugzilla.gnome.org/show_bug.cgi?id=706881
tp-account-widgets/tpaw-avatar-chooser.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/tp-account-widgets/tpaw-avatar-chooser.c b/tp-account-widgets/tpaw-avatar-chooser.c
index dcaa284..c20ad59 100644
--- a/tp-account-widgets/tpaw-avatar-chooser.c
+++ b/tp-account-widgets/tpaw-avatar-chooser.c
@@ -1014,17 +1014,12 @@ avatar_chooser_clicked_cb (GtkWidget *button,
TpawCameraMonitor *monitor;
#endif
- if (self->priv->chooser_dialog != NULL)
- {
- gtk_window_present (GTK_WINDOW (self->priv->chooser_dialog));
- return;
- }
-
self->priv->chooser_dialog = GTK_FILE_CHOOSER (
gtk_file_chooser_dialog_new (_("Select Your Avatar Image"),
tpaw_get_toplevel_window (GTK_WIDGET (self)),
GTK_FILE_CHOOSER_ACTION_OPEN,
NULL, NULL));
+ gtk_window_set_modal (GTK_WINDOW (self->priv->chooser_dialog), TRUE);
#ifdef HAVE_CHEESE
picture_button = gtk_dialog_add_button (
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]