geez, don't call g_list funcs on GSList
2001-06-08 Havoc Pennington <hp@redhat.com> * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): geez, don't call g_list funcs on GSList * gtk/gtkwidget.c (gtk_widget_child_focus): replaces gtk_container_focus(), since some widgets have focusable locations which are not other widgets. These widgets should not have to be containers just to manage the focus. For example, GtkHSV is currently a container for no good reason. Also, this cleans up the "if (is_container && is_sensitive && is_drawable) container_focus ()" mess in widget implementations. * gtk/gtkcontainer.c (gtk_container_focus): deprecate this function, and have it just call gtk_widget_child_focus(). * gtk/gtkhsv.c: derive from widget not container Throughout: fix to reflect GtkContainer::focus change
This commit is contained in:
		 Havoc Pennington
					Havoc Pennington
				
			
				
					committed by
					
						 Havoc Pennington
						Havoc Pennington
					
				
			
			
				
	
			
			
			 Havoc Pennington
						Havoc Pennington
					
				
			
						parent
						
							72ef055bde
						
					
				
				
					commit
					74e7da214f
				
			| @ -276,7 +276,9 @@ struct _GtkWidgetClass | ||||
| 				  gboolean      group_cycling); | ||||
|    | ||||
|   /* explicit focus */ | ||||
|   void (* grab_focus)          (GtkWidget      *widget); | ||||
|   void (* grab_focus)          (GtkWidget        *widget); | ||||
|   gboolean (* focus)           (GtkWidget        *widget, | ||||
|                                 GtkDirectionType  direction); | ||||
|    | ||||
|   /* events */ | ||||
|   gboolean (* event)			(GtkWidget	     *widget, | ||||
| @ -523,6 +525,8 @@ void	   gtk_widget_set_parent	  (GtkWidget	       *widget, | ||||
| void	   gtk_widget_set_parent_window	  (GtkWidget	       *widget, | ||||
| 					   GdkWindow	       *parent_window); | ||||
| GdkWindow *gtk_widget_get_parent_window	  (GtkWidget	       *widget); | ||||
| gboolean   gtk_widget_child_focus         (GtkWidget           *widget, | ||||
|                                            GtkDirectionType     direction); | ||||
| void	   gtk_widget_set_uposition	  (GtkWidget	       *widget, | ||||
| 					   gint			x, | ||||
| 					   gint			y); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user