[gnome-applets] stickynotes: don't use deprecated gtkcolorbutton
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-applets] stickynotes: don't use deprecated gtkcolorbutton
- Date: Thu, 26 Mar 2015 14:07:08 +0000 (UTC)
commit 30805d81b37345c5c4c39bfb03fa528c286ded51
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Thu Mar 26 12:14:28 2015 +0200
stickynotes: don't use deprecated gtkcolorbutton
stickynotes/stickynotes.c | 4 ++--
stickynotes/stickynotes_applet.c | 4 ++--
stickynotes/stickynotes_applet_callbacks.c | 4 ++--
stickynotes/stickynotes_callbacks.c | 4 ++--
4 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/stickynotes/stickynotes.c b/stickynotes/stickynotes.c
index 4098bc4..d4c267d 100644
--- a/stickynotes/stickynotes.c
+++ b/stickynotes/stickynotes.c
@@ -333,7 +333,7 @@ void stickynote_change_properties (StickyNote *note)
{
gdk_rgba_parse (&color, color_str);
g_free (color_str);
- gtk_color_button_set_rgba (GTK_COLOR_BUTTON (note->w_color), &color);
+ gtk_color_chooser_set_rgba (GTK_COLOR_CHOOSER (note->w_color), &color);
}
if (note->font_color)
@@ -347,7 +347,7 @@ void stickynote_change_properties (StickyNote *note)
{
gdk_rgba_parse (&font_color, color_str);
g_free (color_str);
- gtk_color_button_set_rgba (GTK_COLOR_BUTTON (note->w_font_color), &font_color);
+ gtk_color_chooser_set_rgba (GTK_COLOR_CHOOSER (note->w_font_color), &font_color);
}
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(note->w_def_font),
diff --git a/stickynotes/stickynotes_applet.c b/stickynotes/stickynotes_applet.c
index 39910d0..b94723e 100644
--- a/stickynotes/stickynotes_applet.c
+++ b/stickynotes/stickynotes_applet.c
@@ -482,8 +482,8 @@ stickynotes_applet_update_prefs (void)
GTK_TOGGLE_BUTTON (stickynotes->w_prefs_desktop),
desktop_hide);
- gtk_color_button_set_rgba (GTK_COLOR_BUTTON (stickynotes->w_prefs_color), &color);
- gtk_color_button_set_rgba (GTK_COLOR_BUTTON (stickynotes->w_prefs_font_color), &font_color);
+ gtk_color_chooser_set_rgba (GTK_COLOR_CHOOSER (stickynotes->w_prefs_color), &color);
+ gtk_color_chooser_set_rgba (GTK_COLOR_CHOOSER (stickynotes->w_prefs_font_color), &font_color);
gtk_font_button_set_font_name (
GTK_FONT_BUTTON (stickynotes->w_prefs_font), font_str);
g_free (font_str);
diff --git a/stickynotes/stickynotes_applet_callbacks.c b/stickynotes/stickynotes_applet_callbacks.c
index 3e383a0..004dde2 100644
--- a/stickynotes/stickynotes_applet_callbacks.c
+++ b/stickynotes/stickynotes_applet_callbacks.c
@@ -433,8 +433,8 @@ preferences_color_cb (GtkWidget *button, gpointer data)
GdkRGBA color, font_color;
char *color_str, *font_color_str;
- gtk_color_button_get_rgba (GTK_COLOR_BUTTON (stickynotes->w_prefs_color), &color);
- gtk_color_button_get_rgba (GTK_COLOR_BUTTON (stickynotes->w_prefs_font_color), &font_color);
+ gtk_color_chooser_get_rgba (GTK_COLOR_CHOOSER (stickynotes->w_prefs_color), &color);
+ gtk_color_chooser_get_rgba (GTK_COLOR_CHOOSER (stickynotes->w_prefs_font_color), &font_color);
color_str = gdk_rgba_to_string (&color);
font_color_str = gdk_rgba_to_string (&font_color);
diff --git a/stickynotes/stickynotes_callbacks.c b/stickynotes/stickynotes_callbacks.c
index 4c90c51..cb3ddad 100644
--- a/stickynotes/stickynotes_callbacks.c
+++ b/stickynotes/stickynotes_callbacks.c
@@ -170,8 +170,8 @@ properties_apply_color_cb (StickyNote *note)
GdkRGBA color;
GdkRGBA font_color;
- gtk_color_button_get_rgba (GTK_COLOR_BUTTON (note->w_color), &color);
- gtk_color_button_get_rgba (GTK_COLOR_BUTTON (note->w_font_color), &font_color);
+ gtk_color_chooser_get_rgba (GTK_COLOR_CHOOSER (note->w_color), &color);
+ gtk_color_chooser_get_rgba (GTK_COLOR_CHOOSER (note->w_font_color), &font_color);
color_str = gdk_rgba_to_string (&color);
font_color_str = gdk_rgba_to_string (&font_color);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]