[gnome-control-center/gnome-3-2] media: handle dialog closing consistently
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-2] media: handle dialog closing consistently
- Date: Mon, 5 Mar 2012 14:04:06 +0000 (UTC)
commit 20f242b22125b6bf87e5e34cc0596a2e58747a2e
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Sep 23 20:25:32 2011 -0400
media: handle dialog closing consistently
The 'Other media' dialog is just hidden when the close button is
clicked (so that it can be shown again), but when closing it with
the Escape key, it gets destroyed and an attempt to bring it up
again just shows a sad empty little square.
https://bugzilla.gnome.org/show_bug.cgi?id=659940
https://bugzilla.gnome.org/show_bug.cgi?id=659948
panels/media/cc-media-panel.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/panels/media/cc-media-panel.c b/panels/media/cc-media-panel.c
index 7ad8dd1..4313545 100644
--- a/panels/media/cc-media-panel.c
+++ b/panels/media/cc-media-panel.c
@@ -409,6 +409,10 @@ on_extra_options_button_clicked (GtkWidget *button,
"response",
G_CALLBACK (on_extra_options_dialog_response),
self);
+ g_signal_connect (dialog,
+ "delete-event",
+ G_CALLBACK (gtk_widget_hide_on_delete),
+ NULL);
/* update other_application_combo */
other_type_combo_box_changed (GTK_COMBO_BOX (combo_box), self);
gtk_window_present (GTK_WINDOW (dialog));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]