gtk_widget_modify_style causes App to crash



Hi,

I am using following code to set font of Rows in Clist. It works but
causes Application to crash after setting font few times. Any
ideas? Appreciate your help in sorting out this problem.

GtkRcStyle * rcstyle = gtk_rc_style_new();
rcstyle->font_name = Font_Selected;
(gchar * Font_Selected is set through GnomeFontPicker)
gtk_widget_modify_style(GTK_CLIST(alarm_clist), rcstyle));
gtk_rc_style_unref(rcstyle);

Thanks

Rajesh Padalia




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]