[gtk-server] Re: Calendar Widget

  • From: Peter van Eerten <turtle@xxxxxx>
  • To: gtk-server@xxxxxxxxxxxxx
  • Date: Sat, 14 Apr 2007 16:04:20 +0200

Good news!

You could even write this part as follows:

(gtk_init NULL NULL)
(gtk_server_glade_file "puppydiary.glade")
(set 'winID (gtk_server_glade_widget "main_window"))
(gtk_server_connect winID "delete-event win")
(set 'exitID (gtk_server_glade_widget "button_exit"))
(gtk_server_connect exitID "clicked exit")
(set 'printID (gtk_server_glade_widget "button_print"))
(gtk_server_connect printID "clicked print")
(set 'entryID (gtk_server_glade_widget "entry1"))
(set 'calendarID (gtk_server_glade_widget "calendar1"))
(gtk_server_connect calendarID "day-selected calclick")

So as you see, it is not necessary to capture the returnvalue all the time.


Other related posts: