[gnome-builder/wip/lazy-tree: 3/5] tree: style fix, public functions go at the bottom of the file



commit e6aa61d8ee5773ad5a730ec3c7461b5f35f37bd6
Author: Christian Hergert <christian hergert me>
Date:   Sun Jun 14 11:32:13 2015 -0700

    tree: style fix, public functions go at the bottom of the file

 src/tree/gb-tree.c |   76 ++++++++++++++++++++++++++--------------------------
 1 files changed, 38 insertions(+), 38 deletions(-)
---
diff --git a/src/tree/gb-tree.c b/src/tree/gb-tree.c
index b04f409..c5a33d5 100644
--- a/src/tree/gb-tree.c
+++ b/src/tree/gb-tree.c
@@ -70,44 +70,6 @@ static GtkBuildableIface *gb_tree_parent_buildable_iface;
 static GParamSpec *gParamSpecs [LAST_PROP];
 static guint gSignals [LAST_SIGNAL];
 
-gboolean
-gb_tree_get_show_icons (GbTree *tree)
-{
-  GbTreePrivate *priv = gb_tree_get_instance_private (tree);
-
-  g_return_val_if_fail (GB_IS_TREE (tree), FALSE);
-
-  return priv->show_icons;
-}
-
-void
-gb_tree_set_show_icons (GbTree   *tree,
-                        gboolean  show_icons)
-{
-  GbTreePrivate *priv = gb_tree_get_instance_private (tree);
-
-  g_return_if_fail (GB_IS_TREE (tree));
-
-  show_icons = !!show_icons;
-
-  if (show_icons != priv->show_icons)
-    {
-      priv->show_icons = show_icons;
-      g_object_set (priv->cell_pixbuf, "visible", show_icons, NULL);
-      /*
-       * WORKAROUND:
-       *
-       * Changing the visibility of the cell does not force a redraw of the
-       * tree view. So to force it, we will hide/show our entire pixbuf/text
-       * column.
-       */
-      gtk_tree_view_column_set_visible (priv->column, FALSE);
-      gtk_tree_view_column_set_visible (priv->column, TRUE);
-      g_object_notify_by_pspec (G_OBJECT (tree),
-                                gParamSpecs [PROP_SHOW_ICONS]);
-    }
-}
-
 /**
  * gb_tree_unselect:
  * @tree: (in): A #GbTree.
@@ -1414,3 +1376,41 @@ gb_tree_expand_to_node (GbTree     *tree,
       gb_tree_node_collapse (node);
     }
 }
+
+gboolean
+gb_tree_get_show_icons (GbTree *tree)
+{
+  GbTreePrivate *priv = gb_tree_get_instance_private (tree);
+
+  g_return_val_if_fail (GB_IS_TREE (tree), FALSE);
+
+  return priv->show_icons;
+}
+
+void
+gb_tree_set_show_icons (GbTree   *tree,
+                        gboolean  show_icons)
+{
+  GbTreePrivate *priv = gb_tree_get_instance_private (tree);
+
+  g_return_if_fail (GB_IS_TREE (tree));
+
+  show_icons = !!show_icons;
+
+  if (show_icons != priv->show_icons)
+    {
+      priv->show_icons = show_icons;
+      g_object_set (priv->cell_pixbuf, "visible", show_icons, NULL);
+      /*
+       * WORKAROUND:
+       *
+       * Changing the visibility of the cell does not force a redraw of the
+       * tree view. So to force it, we will hide/show our entire pixbuf/text
+       * column.
+       */
+      gtk_tree_view_column_set_visible (priv->column, FALSE);
+      gtk_tree_view_column_set_visible (priv->column, TRUE);
+      g_object_notify_by_pspec (G_OBJECT (tree),
+                                gParamSpecs [PROP_SHOW_ICONS]);
+    }
+}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]