Mercurial > pidgin
changeset 4296:beb653cb331c
[gaim-migrate @ 4549]
David Brigada (jsi) writes:
"'gtk_style_unref is deprecated and should not be used
in newly-written code.'
The API docs suggest replacing gtk_style_unref() with
g_object_unref().
This patch does that."
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Sat, 11 Jan 2003 15:22:14 +0000 |
parents | 0bdfcae57be7 |
children | 650454171e0e |
files | src/prefs.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/prefs.c Sat Jan 11 15:18:12 2003 +0000 +++ b/src/prefs.c Sat Jan 11 15:22:14 2003 +0000 @@ -1974,7 +1974,7 @@ style = gtk_style_new(); style->bg[0] = c; gtk_widget_set_style(pic, style); - gtk_style_unref(style); + g_object_unref(style); } void set_default_away(GtkWidget *w, gpointer i) @@ -2161,7 +2161,7 @@ swid = gtk_event_box_new(); gtk_widget_set_style(GTK_WIDGET(swid), style); - gtk_style_unref(style); + g_object_unref(style); gtk_widget_set_usize(GTK_WIDGET(swid), 40, -1); gtk_box_pack_start(GTK_BOX(box), swid, FALSE, FALSE, 5); gtk_widget_show(swid);