[gnome-settings-daemon] wacom: Add the gsd_wacom_osd_window_set_edition_mode method



commit 1b9d99f37ee5d18ccd12b470223011d00b54d575
Author: Joaquim Rocha <jrocha redhat com>
Date:   Wed Jul 24 12:43:28 2013 +0200

    wacom: Add the gsd_wacom_osd_window_set_edition_mode method
    
    https://bugzilla.gnome.org/show_bug.cgi?id=704797

 plugins/wacom/gsd-wacom-osd-window.c |    9 +++++++++
 plugins/wacom/gsd-wacom-osd-window.h |    2 ++
 2 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/plugins/wacom/gsd-wacom-osd-window.c b/plugins/wacom/gsd-wacom-osd-window.c
index 3949bcf..03e7f13 100644
--- a/plugins/wacom/gsd-wacom-osd-window.c
+++ b/plugins/wacom/gsd-wacom-osd-window.c
@@ -1898,6 +1898,15 @@ gsd_wacom_osd_window_get_edition_mode (GsdWacomOSDWindow *osd_window)
        return osd_window->priv->edition_mode;
 }
 
+void
+gsd_wacom_osd_window_set_edition_mode (GsdWacomOSDWindow *osd_window, gboolean edition_mode)
+{
+       g_return_if_fail (GSD_IS_WACOM_OSD_WINDOW (osd_window));
+
+       gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (osd_window->priv->change_mode_button),
+                                     edition_mode);
+}
+
 GtkWidget *
 gsd_wacom_osd_window_new (GsdWacomDevice       *pad,
                           const gchar          *message)
diff --git a/plugins/wacom/gsd-wacom-osd-window.h b/plugins/wacom/gsd-wacom-osd-window.h
index 6bd1fd7..a787435 100644
--- a/plugins/wacom/gsd-wacom-osd-window.h
+++ b/plugins/wacom/gsd-wacom-osd-window.h
@@ -59,6 +59,8 @@ void                      gsd_wacom_osd_window_set_mode        (GsdWacomOSDWindo
                                                                 gint                      group_id,
                                                                 gint                      mode);
 gboolean                  gsd_wacom_osd_window_get_edition_mode (GsdWacomOSDWindow        *osd_window);
+void                      gsd_wacom_osd_window_set_edition_mode (GsdWacomOSDWindow        *osd_window,
+                                                                 gboolean                  edition_mode);
 GtkWidget *               gsd_wacom_osd_window_new             (GsdWacomDevice           *pad,
                                                                 const gchar              *message);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]