Re: GtkMenuItem label
- From: "Olivier Delhomme" <olivierdelhomme gmail com>
- To: gtk-app-devel-list gnome org
- Subject: Re: GtkMenuItem label
- Date: Tue, 4 Mar 2008 12:26:27 +0100
2008/3/4, Olivier Delhomme <olivierdelhomme gmail com>:
Hello,
Is there a convenient way to retrieve the label of a GtkMenuItem
created with gtk_menu_item_new_with_label("my label") ?
I found this, which should solve the problem :
GtkLabel *label = NULL;
gchar *text = NULL;
label = GTK_LABEL(gtk_bin_get_child(GTK_BIN(menu_item)));
text = gtk_label_get_text(label);
Olivier.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]