git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49184
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
typedef struct _GtkPizzaChild GtkPizzaChild;
typedef struct _GtkPizzaClass GtkPizzaClass;
typedef struct _GtkPizzaChild GtkPizzaChild;
typedef struct _GtkPizzaClass GtkPizzaClass;
-typedef struct _GtkPizzaAdjData GtkPizzaAdjData;
-struct _GtkPizzaAdjData
-{
- gint dx;
- gint dy;
-};
-
static void gtk_pizza_class_init (GtkPizzaClass *klass);
static void gtk_pizza_init (GtkPizza *pizza);
static void gtk_pizza_class_init (GtkPizzaClass *klass);
static void gtk_pizza_init (GtkPizza *pizza);
g_return_if_fail (GTK_IS_PIZZA (pizza));
pizza->m_xoffset = xoffset;
g_return_if_fail (GTK_IS_PIZZA (pizza));
pizza->m_xoffset = xoffset;
}
void gtk_pizza_set_yoffset (GtkPizza *pizza, gint yoffset)
}
void gtk_pizza_set_yoffset (GtkPizza *pizza, gint yoffset)
g_return_if_fail (GTK_IS_PIZZA (pizza));
pizza->m_xoffset = yoffset;
g_return_if_fail (GTK_IS_PIZZA (pizza));
pizza->m_xoffset = yoffset;
}
gint gtk_pizza_get_rtl_offset (GtkPizza *pizza)
}
gint gtk_pizza_get_rtl_offset (GtkPizza *pizza)
if (pizza->bin_window)
gdk_window_scroll( pizza->bin_window, -dx, -dy );
if (pizza->bin_window)
gdk_window_scroll( pizza->bin_window, -dx, -dy );
- tmp_list = pizza->children;
- while (tmp_list)
+ for (tmp_list = pizza->children; tmp_list; tmp_list = tmp_list->next)
{
GtkPizzaChild *child = tmp_list->data;
{
GtkPizzaChild *child = tmp_list->data;
- tmp_list = tmp_list->next;
-
GtkAllocation alloc = child->widget->allocation;
alloc.x -= dx;
alloc.y -= dy;
GtkAllocation alloc = child->widget->allocation;
alloc.x -= dx;
alloc.y -= dy;