Re: Update text label
- From: 3saul <saul_lethbridge hotmail com>
- To: gtk-app-devel-list gnome org
- Subject: Re: Update text label
- Date: Tue, 4 Apr 2006 05:01:06 -0700 (PDT)
Thanks a lot. However it's for a menu not a button ...here is some code
menubar2 = gtk_menu_bar_new ();
gtk_widget_show (menubar2);
gtk_box_pack_start (GTK_BOX (hbox2), menubar2, FALSE, FALSE, 0);
time_date1 = gtk_menu_item_new_with_mnemonic ("MENU");
gtk_widget_show (time_date1);
gtk_container_add (GTK_CONTAINER (menubar2), time_date1);
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). I'm very new to
programming..especially GTK so I'm probably just doing silly things.
--
View this message in context: http://www.nabble.com/Update-text-label-t1390768.html#a3743033
Sent from the Gtk+ - Apps Dev forum at Nabble.com.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]