Re: Update text label
- From: "David Necas (Yeti)" <yeti physics muni cz>
- To: gtk-app-devel-list gnome org
- Subject: Re: Update text label
- Date: Tue, 4 Apr 2006 14:20:19 +0200
On Tue, Apr 04, 2006 at 05:01:06AM -0700, 3saul wrote:
Thanks a lot. However it's for a menu not a button...
I'm sorry (there is nothing like menu button, I chose the
wrong half of the term).
This line:
time_date1 = gtk_menu_item_new_with_mnemonic ("MENU");
I've changed to
time_date1 = gtk_menu_item_new_with_mnemonic (x);
this works, the menu button gets the string stored in x..however the string
stored in x changes (with the current time).
GtkWidget *label;
label = GTK_BIN(menu_item)->child;
gtk_label_set_text_with_mnemonic(GTK_LABEL(label), x);
Yeti
--
That's enough.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]