]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/win_gtk.cpp
work around VC6 bug
[wxWidgets.git] / src / gtk / win_gtk.cpp
index 0ef51eb2bdf680ebb9f684c4b9700bfa8f35ba88..13f596d26cfa85d4907f53430394c4f59df6601c 100644 (file)
@@ -108,12 +108,7 @@ static void size_allocate(GtkWidget* widget, GtkAllocation* alloc)
             child_alloc.height = req.height;
             if (gtk_widget_get_direction(widget) == GTK_TEXT_DIR_RTL)
                 child_alloc.x = w - child_alloc.x - child_alloc.width;
-                
-            if ((child_alloc.x != child_old_alloc.x) ||
-                (child_alloc.y != child_old_alloc.y) ||
-                (child_alloc.width != child_old_alloc.width) ||
-                (child_alloc.height != child_old_alloc.height))
-                gtk_widget_size_allocate(child->widget, &child_alloc);
+            gtk_widget_size_allocate(child->widget, &child_alloc);
         }
     }
 }
@@ -264,13 +259,6 @@ static void class_init(void* g_class, void*)
             G_TYPE_NONE, 2, GTK_TYPE_ADJUSTMENT, GTK_TYPE_ADJUSTMENT);
 
     parent_class = GTK_WIDGET_CLASS(g_type_class_peek_parent(g_class));
-
-    gtk_widget_class_install_style_property (widget_class,
-                                          g_param_spec_boolean ("row-ending-details",
-                                                                "Row Ending details",
-                                                                "Enable extended row background theming",
-                                                                FALSE,
-                                                                G_PARAM_READABLE));
 }
 
 } // extern "C"
@@ -294,10 +282,11 @@ GType wxPizza::type()
     return type;
 }
 
-GtkWidget* wxPizza::New(long windowStyle)
+GtkWidget* wxPizza::New(long windowStyle,void* owner)
 {
     GtkWidget* widget = GTK_WIDGET(g_object_new(type(), NULL));
     wxPizza* pizza = WX_PIZZA(widget);
+    pizza->m_owner = owner;
     pizza->m_backing_window = NULL;
     pizza->m_scroll_x = 0;
     pizza->m_scroll_y = 0;