Re: gtk_widget_modify_style causes App to crash



Havoc Pennington wrote:

Rajesh Padalia <rpadalia qatar net qa> writes:
GtkRcStyle * rcstyle = gtk_rc_style_new();
rcstyle->font_name = Font_Selected;

You probably need:
 g_free (rcstyle->font_name);
 rcstyle->font_name = g_strdup (Font_Selected);

Havoc
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

This works fine.
Thank you and all who have replied.

Rajesh Padalia




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