[gnome-robots] Do not use deprecated GtkColorButton functions
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-robots] Do not use deprecated GtkColorButton functions
- Date: Sat, 21 Jun 2014 17:21:52 +0000 (UTC)
commit 8944a0a705cfe12f8599a4060631bbb20e820910
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sat Jun 21 12:13:25 2014 -0500
Do not use deprecated GtkColorButton functions
src/properties.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/properties.c b/src/properties.c
index 000cd75..afc33cd 100644
--- a/src/properties.c
+++ b/src/properties.c
@@ -350,7 +350,7 @@ make_theme_menu (void)
static void
bg_color_callback (GtkWidget * widget, gpointer data)
{
- gtk_color_button_get_rgba (GTK_COLOR_BUTTON (widget),
+ gtk_color_chooser_get_rgba (GTK_COLOR_CHOOSER (widget),
&properties.bgcolour);
set_background_color (properties.bgcolour);
clear_game_area ();
@@ -484,7 +484,7 @@ show_properties_dialog (void)
gtk_grid_attach (GTK_GRID (grid), label, 0, 1, 1, 1);
w = gtk_color_button_new ();
- gtk_color_button_set_rgba (GTK_COLOR_BUTTON (w), &properties.bgcolour);
+ gtk_color_chooser_set_rgba (GTK_COLOR_CHOOSER (w), &properties.bgcolour);
g_signal_connect (G_OBJECT (w), "color_set",
G_CALLBACK (bg_color_callback), NULL);
gtk_label_set_mnemonic_widget (GTK_LABEL (label), w);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]