[975] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] gtk_file_selection bug under gtk+970915?

daemon@ATHENA.MIT.EDU (Stephen Dunn)
Wed Sep 17 15:58:22 1997

Date: Wed, 17 Sep 97 20:41 BST
From: Stephen Dunn <stephend@cogs.susx.ac.uk>
To: gtk-list@redhat.com
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com


I have some code that ran OK under an old version of gtk+ (the version
that came with gimp-0.99.10)- when I now compile it using gtk+970915 I
get the following errors when I show the file selection widget:

** WARNING **: could not find signal type "clicked" in the "GtkLabel" class ancestry

** WARNING **: could not find signal type "clicked" in the "GtkLabel" class ancestry

** WARNING **: could not find signal type "clicked" in the "GtkVBox" class ancestry

The signal "clicked" works OK for buttons that I have defined myself,
by the way. Does anyone know why this is happening?


Here is the code fragment that I use to do it:
  --------
GtkWidget *filew;
filew = gtk_file_selection_new ("View Population File");
  
gtk_signal_connect (GTK_OBJECT (GTK_FILE_SELECTION (filew)->ok_button),
		      "clicked", (GtkSignalFunc) view_pop, filew );
           
gtk_signal_connect_object (GTK_OBJECT (GTK_FILE_SELECTION (filew)->ok_button),
   "clicked", (GtkSignalFunc) gtk_widget_destroy ,
		      GTK_OBJECT (filew) ); 

gtk_signal_connect_object (GTK_OBJECT (GTK_FILE_SELECTION
	(filew)->cancel_button), "clicked", (GtkSignalFunc) gtk_widget_destroy,
			     GTK_OBJECT (filew)); 
gtk_widget_show(filew);
 --------


Thanks
Steve
--
stephend@cogs.susx.ac.uk
 

--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post