From: Paul Cornett Date: Wed, 17 Oct 2007 02:58:17 +0000 (+0000) Subject: Fix declaration-after-statement compile error, remove C++ comments, remove unused... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/525ee32a672eb462769d69d31302f465d7fdda0b Fix declaration-after-statement compile error, remove C++ comments, remove unused GtkPizzaAdjData git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49184 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/win_gtk.c b/src/gtk/win_gtk.c index 4f396aafd1..aa9b115a56 100644 --- a/src/gtk/win_gtk.c +++ b/src/gtk/win_gtk.c @@ -22,7 +22,6 @@ extern "C" { typedef struct _GtkPizzaChild GtkPizzaChild; typedef struct _GtkPizzaClass GtkPizzaClass; -typedef struct _GtkPizzaAdjData GtkPizzaAdjData; struct _GtkPizzaClass { @@ -40,12 +39,6 @@ struct _GtkPizzaChild gint y; }; -struct _GtkPizzaAdjData -{ - gint dx; - gint dy; -}; - static void gtk_pizza_class_init (GtkPizzaClass *klass); static void gtk_pizza_init (GtkPizza *pizza); @@ -253,7 +246,7 @@ void gtk_pizza_set_xoffset (GtkPizza *pizza, gint xoffset) 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) @@ -262,7 +255,7 @@ 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) @@ -744,12 +737,9 @@ gtk_pizza_scroll (GtkPizza *pizza, gint dx, gint 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; - tmp_list = tmp_list->next; - GtkAllocation alloc = child->widget->allocation; alloc.x -= dx; alloc.y -= dy;