Hello,
I'm just learning how to use g_object_get and was wondering if this function contained a memory leak:
static void color_changed(GtkColorButton *caller, GtkWidget *label) {
GdkColor *color;
g_object_get(caller, "color", &color, NULL);
gtk_widget_modify_fg(label, GTK_STATE_NORMAL, color);
}
Thanks for looking!
Joshua.rh
I'm just learning how to use g_object_get and was wondering if this function contained a memory leak:
static void color_changed(GtkColorButton *caller, GtkWidget *label) {
GdkColor *color;
g_object_get(caller, "color", &color, NULL);
gtk_widget_modify_fg(label, GTK_STATE_NORMAL, color);
}
Thanks for looking!
Joshua.rh
_______________________________________________ gtk-list mailing list gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list