[gtk+/overlay: 32/34] Coding style cleanups
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/overlay: 32/34] Coding style cleanups
- Date: Sat, 11 Jun 2011 01:01:20 +0000 (UTC)
commit 0fee49d52679431ded793abf3c4b7858f691f59d
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Jun 10 20:33:10 2011 -0400
Coding style cleanups
gtk/gtkoverlay.c | 37 ++++++++++++++++++-------------------
1 files changed, 18 insertions(+), 19 deletions(-)
---
diff --git a/gtk/gtkoverlay.c b/gtk/gtkoverlay.c
index e7a34ba..7162898 100644
--- a/gtk/gtkoverlay.c
+++ b/gtk/gtkoverlay.c
@@ -357,18 +357,14 @@ gtk_overlay_realize (GtkWidget *widget)
GTK_WIDGET_CLASS (gtk_overlay_parent_class)->realize (widget);
- for (children = priv->children; children; children = g_slist_next (children))
+ for (children = priv->children; children; children = children->next)
{
child = children->data;
if (child->widget == priv->main_widget)
- {
- child->window = gtk_widget_get_window (priv->main_widget);
- }
+ child->window = gtk_widget_get_window (priv->main_widget);
else if (child->window == NULL)
- {
- child->window = gtk_overlay_create_child_window (overlay, child->widget);
- }
+ child->window = gtk_overlay_create_child_window (overlay, child->widget);
}
}
@@ -380,12 +376,14 @@ gtk_overlay_unrealize (GtkWidget *widget)
GtkOverlayChild *child;
GSList *children;
- for (children = priv->children; children; children = g_slist_next (children))
+ for (children = priv->children; children; children = children->next)
{
child = children->data;
if (child->widget == priv->main_widget)
- child->window = NULL;
+ {
+ child->window = NULL;
+ }
else
{
gtk_widget_set_parent_window (child->widget, NULL);
@@ -408,11 +406,13 @@ gtk_overlay_map (GtkWidget *widget)
GTK_WIDGET_CLASS (gtk_overlay_parent_class)->map (widget);
- for (children = priv->children; children; children = g_slist_next (children))
+ for (children = priv->children; children; children = children->next)
{
child = children->data;
- if (child->window != NULL && gtk_widget_get_visible (child->widget) && gtk_widget_get_child_visible (child->widget))
+ if (child->window != NULL &&
+ gtk_widget_get_visible (child->widget) &&
+ gtk_widget_get_child_visible (child->widget))
gdk_window_show (child->window);
}
}
@@ -425,11 +425,12 @@ gtk_overlay_unmap (GtkWidget *widget)
GtkOverlayChild *child;
GSList *children;
- for (children = priv->children; children; children = g_slist_next (children))
+ for (children = priv->children; children; children = children->next)
{
child = children->data;
- if (child->window != NULL && gdk_window_is_visible (child->window))
+ if (child->window != NULL &&
+ gdk_window_is_visible (child->window))
gdk_window_hide (child->window);
}
@@ -445,7 +446,7 @@ gtk_overlay_draw (GtkWidget *widget,
GtkOverlayChild *child;
GSList *children;
- for (children = priv->children; children; children = g_slist_next (children))
+ for (children = priv->children; children; children = children->next)
{
child = children->data;
@@ -465,9 +466,8 @@ gtk_overlay_draw (GtkWidget *widget,
}
}
- /* Chain up to draw children */
GTK_WIDGET_CLASS (gtk_overlay_parent_class)->draw (widget, cr);
-
+
return FALSE;
}
@@ -515,7 +515,7 @@ gtk_overlay_remove (GtkContainer *overlay,
GtkOverlayChild *child;
GSList *children;
- for (children = priv->children; children; children = g_slist_next (children))
+ for (children = priv->children; children; children = children->next)
{
child = children->data;
@@ -532,8 +532,7 @@ gtk_overlay_remove (GtkContainer *overlay,
gtk_widget_unparent (widget);
- priv->children = g_slist_delete_link (priv->children,
- children);
+ priv->children = g_slist_delete_link (priv->children, children);
g_slice_free (GtkOverlayChild, child);
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]