[gnome-control-center/media-panel] media: make the "Add application" dialog modal
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/media-panel] media: make the "Add application" dialog modal
- Date: Mon, 15 Nov 2010 15:45:55 +0000 (UTC)
commit 507ad4a8db98c4cb1bb577be650b70a8d02a9857
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Nov 15 16:44:18 2010 +0100
media: make the "Add application" dialog modal
To get the sticky effect from gnome-shell (if it's running). It makes
sense for that dialog to be modal anyway, as choosing more than one
default application at the same time is just confusing.
panels/media/cc-media-panel.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/panels/media/cc-media-panel.c b/panels/media/cc-media-panel.c
index faeb0f2..622a268 100644
--- a/panels/media/cc-media-panel.c
+++ b/panels/media/cc-media-panel.c
@@ -304,7 +304,8 @@ combo_box_changed (GtkComboBox *combo_box,
dialog = nautilus_add_application_dialog_new (NULL, x_content_type);
gtk_window_set_transient_for (GTK_WINDOW (dialog),
- GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (combo_box))));
+ GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (data->self))));
+ gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
g_signal_connect (dialog, "application_selected",
G_CALLBACK (other_application_selected),
data);
@@ -316,7 +317,6 @@ combo_box_changed (GtkComboBox *combo_box,
break;
}
-
}
out:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]