[gnome-control-center] wacom: Implement closing the mapping dialogue
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] wacom: Implement closing the mapping dialogue
- Date: Tue, 14 Feb 2012 19:38:44 +0000 (UTC)
commit 55c1a44dae039fdbc2d4b4e89766e22464bc933a
Author: Bastien Nocera <hadess hadess net>
Date: Tue Feb 14 19:37:28 2012 +0000
wacom: Implement closing the mapping dialogue
panels/wacom/cc-wacom-page.c | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/panels/wacom/cc-wacom-page.c b/panels/wacom/cc-wacom-page.c
index 7956fad..a914379 100644
--- a/panels/wacom/cc-wacom-page.c
+++ b/panels/wacom/cc-wacom-page.c
@@ -501,6 +501,19 @@ setup_mapping_treeview (CcWacomPage *page)
}
static void
+button_mapping_dialog_closed (GtkDialog *dialog,
+ int response_id,
+ CcWacomPage *page)
+{
+ CcWacomPagePrivate *priv;
+
+ priv = page->priv;
+ gtk_widget_destroy (MWID ("button-mapping-dialog"));
+ g_object_unref (page->priv->mapping_builder);
+ page->priv->mapping_builder = NULL;
+}
+
+static void
map_buttons_button_clicked_cb (GtkButton *button,
CcWacomPage *page)
{
@@ -530,6 +543,9 @@ map_buttons_button_clicked_cb (GtkButton *button,
gtk_window_set_transient_for (GTK_WINDOW (dialog),
GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (page))));
gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
+ g_signal_connect (G_OBJECT (dialog), "response",
+ G_CALLBACK (button_mapping_dialog_closed), page);
+
gtk_widget_show (dialog);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]