talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 636cc1edc08b4a15e2514143e6642908c339a00b
parent 14bf91b57e32fce0313c2e092f2a18adff96bfb1
Author: Ralph Sennhauser <ralph.sennhauser@gmail.com>
Date:   Wed,  8 Nov 2017 20:12:32 +0100

Replace gtk_style_unref()

gtk_style_unref() is a remnant from gtk+1 and the compatibility function
in gtk+2 is gone in gtk+3, use g_object_unref() instead.

Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>

Diffstat:
Msrc/gtk/gtkutils.c | 4++--
Msrc/prefs_msg_colors.c | 2+-
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/gtk/gtkutils.c b/src/gtk/gtkutils.c @@ -863,7 +863,7 @@ void gtkut_set_widget_bgcolor_rgb(GtkWidget *widget, guint rgbvalue) newstyle->bg[GTK_STATE_PRELIGHT] = gdk_color; newstyle->bg[GTK_STATE_ACTIVE] = gdk_color; gtk_widget_set_style(widget, newstyle); - gtk_style_unref(newstyle); + g_object_unref(newstyle); } /*! @@ -1254,7 +1254,7 @@ GtkWidget *gtkut_get_link_btn(GtkWidget *window, const gchar *url, const gchar * style->fg[GTK_STATE_ACTIVE] = uri_color[1]; style->fg[GTK_STATE_PRELIGHT] = uri_color[0]; gtk_widget_set_style(btn_label, style); - gtk_style_unref(style); + g_object_unref(style); #if !GTK_CHECK_VERSION(3, 0, 0) } else g_warning("color allocation failed"); diff --git a/src/prefs_msg_colors.c b/src/prefs_msg_colors.c @@ -666,7 +666,7 @@ static void set_button_bg_color(GtkWidget *widget, gint rgbvalue) newstyle->bg[GTK_STATE_ACTIVE] = color; gtk_widget_set_style(GTK_WIDGET(widget), newstyle); - gtk_style_unref(newstyle); + g_object_unref(newstyle); } static void prefs_msg_colors_save(PrefsPage *_page)