[Gtk-sharp-list] markup in a menuitem
Bryan Buchanan
adslh3nu@tpg.com.au
11 Aug 2004 18:10:11 +1000
Hi,
Using GTK, I can set text in a menu item to red, for example, as
follows:
// check if the program actually exists
if((stat(full_path, &statbuf)) == -1){
gchar *str = g_strdup_printf("<span foreground=\"red\">%s</span>",
gtk_label_get_text(GTK_LABEL(GTK_BIN(menu_item)->child)));
gtk_label_set_markup(GTK_LABEL(GTK_BIN(menu_item)->child), str);
g_free(str);
}
I cannot see a method or property on a Gtk.MenuItem that will allow this
sort of access. Does anyone know if this is possible ?
Thanks,
Bryan