]> git.saurik.com Git - wxWidgets.git/commitdiff
Remove unnecessary size members from GtkPizzaChild.
authorPaul Cornett <paulcor@bullseye.com>
Fri, 20 Oct 2006 05:47:15 +0000 (05:47 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Fri, 20 Oct 2006 05:47:15 +0000 (05:47 +0000)
Move some declarations out of header.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42143 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/gtk/win_gtk.h
src/gtk/win_gtk.c

index 6042e8837a36b2eb56f241e56fdf9c092fc2e76d..1bfeaa799ea61b249834db98ff34a1345c316875 100644 (file)
@@ -22,18 +22,7 @@ extern "C" {
 #define GTK_PIZZA(obj)          GTK_CHECK_CAST (obj, gtk_pizza_get_type (), GtkPizza)
 #define GTK_IS_PIZZA(obj)       GTK_CHECK_TYPE (obj, gtk_pizza_get_type ())
 
-typedef struct _GtkPizzaChild    GtkPizzaChild;
 typedef struct _GtkPizza        GtkPizza;
-typedef struct _GtkPizzaClass   GtkPizzaClass;
-
-struct _GtkPizzaChild
-{
-    GtkWidget *widget;
-    gint x;
-    gint y;
-    gint width;
-    gint height;
-};
 
 struct _GtkPizza
 {
@@ -46,15 +35,6 @@ struct _GtkPizza
     GdkWindow *bin_window;
 };
 
-struct _GtkPizzaClass
-{
-  GtkContainerClass parent_class;
-
-  void  (*set_scroll_adjustments)   (GtkPizza     *pizza,
-                                     GtkAdjustment  *hadjustment,
-                                     GtkAdjustment  *vadjustment);
-};
-
 WXDLLIMPEXP_CORE
 GtkType    gtk_pizza_get_type        (void);
 WXDLLIMPEXP_CORE
index f793c468c5244ef0febfe0b8c2002c1d0f53dff2..09bd29432c4c15404f33ae8c7fddd555fccb9d87 100644 (file)
 extern "C" {
 #endif /* __cplusplus */
 
+typedef struct _GtkPizzaChild GtkPizzaChild;
+typedef struct _GtkPizzaClass GtkPizzaClass;
 typedef struct _GtkPizzaAdjData  GtkPizzaAdjData;
 
+struct _GtkPizzaClass
+{
+  GtkContainerClass parent_class;
+
+  void  (*set_scroll_adjustments)   (GtkPizza     *pizza,
+                                     GtkAdjustment  *hadjustment,
+                                     GtkAdjustment  *vadjustment);
+};
+
+struct _GtkPizzaChild
+{
+    GtkWidget *widget;
+    gint x;
+    gint y;
+};
+
 struct _GtkPizzaAdjData
 {
     gint dx;
@@ -276,8 +294,6 @@ gtk_pizza_put (GtkPizza   *pizza,
     child_info->widget = widget;
     child_info->x = x;
     child_info->y = y;
-    child_info->width = width;
-    child_info->height = height;
 
     pizza->children = g_list_append (pizza->children, child_info);
 
@@ -324,16 +340,9 @@ gtk_pizza_set_size (GtkPizza   *pizza,
 
         if (child->widget == widget)
         {
-            if ((child->x == x) &&
-                (child->y == y) &&
-                (child->width == width) &&
-                (child->height == height)) return;
-
             child->x = x;
             child->y = y;
-            child->width = width;
-            child->height = height;
-            
+
             gtk_widget_set_size_request (widget, width, height);
 
             return;