Skip to content

Instantly share code, notes, and snippets.

@dakk
Created February 18, 2013 21:02
Show Gist options
  • Save dakk/4980723 to your computer and use it in GitHub Desktop.
Save dakk/4980723 to your computer and use it in GitHub Desktop.
Gtk+: change the label of a gtk_image_menu_item created from stock
menu_item = gtk_image_menu_item_new_from_stock(GTK_STOCK_OK, NULL);
GtkWidget* menu_label = gtk_bin_get_child(GTK_BIN(menu_item));
gtk_label_set_text(GTK_LABEL(menu_label), "new label text");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment