Mercurial > pidgin.yaz
comparison src/prefs.c @ 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 | cddb50734169 |
comparison
equal
deleted
inserted
replaced
4295:0bdfcae57be7 | 4296:beb653cb331c |
---|---|
1972 } | 1972 } |
1973 | 1973 |
1974 style = gtk_style_new(); | 1974 style = gtk_style_new(); |
1975 style->bg[0] = c; | 1975 style->bg[0] = c; |
1976 gtk_widget_set_style(pic, style); | 1976 gtk_widget_set_style(pic, style); |
1977 gtk_style_unref(style); | 1977 g_object_unref(style); |
1978 } | 1978 } |
1979 | 1979 |
1980 void set_default_away(GtkWidget *w, gpointer i) | 1980 void set_default_away(GtkWidget *w, gpointer i) |
1981 { | 1981 { |
1982 | 1982 |
2159 style = gtk_style_new(); | 2159 style = gtk_style_new(); |
2160 style->bg[0] = c; | 2160 style->bg[0] = c; |
2161 | 2161 |
2162 swid = gtk_event_box_new(); | 2162 swid = gtk_event_box_new(); |
2163 gtk_widget_set_style(GTK_WIDGET(swid), style); | 2163 gtk_widget_set_style(GTK_WIDGET(swid), style); |
2164 gtk_style_unref(style); | 2164 g_object_unref(style); |
2165 gtk_widget_set_usize(GTK_WIDGET(swid), 40, -1); | 2165 gtk_widget_set_usize(GTK_WIDGET(swid), 40, -1); |
2166 gtk_box_pack_start(GTK_BOX(box), swid, FALSE, FALSE, 5); | 2166 gtk_box_pack_start(GTK_BOX(box), swid, FALSE, FALSE, 5); |
2167 gtk_widget_show(swid); | 2167 gtk_widget_show(swid); |
2168 return swid; | 2168 return swid; |
2169 } | 2169 } |