typedef struct _GtkPizzaChild GtkPizzaChild;
typedef struct _GtkPizzaClass GtkPizzaClass;
-typedef struct _GtkPizzaAdjData GtkPizzaAdjData;
struct _GtkPizzaClass
{
gint y;
};
-struct _GtkPizzaAdjData
-{
- gint dx;
- gint dy;
-};
-
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;
- // do something
+ /* do something */
}
void gtk_pizza_set_yoffset (GtkPizza *pizza, gint yoffset)
g_return_if_fail (GTK_IS_PIZZA (pizza));
pizza->m_xoffset = yoffset;
- // do something
+ /* do something */
}
gint gtk_pizza_get_rtl_offset (GtkPizza *pizza)
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;
- tmp_list = tmp_list->next;
-
GtkAllocation alloc = child->widget->allocation;
alloc.x -= dx;
alloc.y -= dy;