[gnome-builder] navigation: set the current item to the tip upon append().
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] navigation: set the current item to the tip upon append().
- Date: Thu, 25 Sep 2014 02:49:08 +0000 (UTC)
commit af3686cb0d7f19dacc8e71fba8edd1a2832f1ad4
Author: Christian Hergert <christian hergert me>
Date: Wed Sep 24 19:45:30 2014 -0700
navigation: set the current item to the tip upon append().
src/navigation/gb-navigation-list.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/navigation/gb-navigation-list.c b/src/navigation/gb-navigation-list.c
index 838993e..1bd5b7e 100644
--- a/src/navigation/gb-navigation-list.c
+++ b/src/navigation/gb-navigation-list.c
@@ -181,8 +181,7 @@ gb_navigation_list_append (GbNavigationList *list,
}
g_ptr_array_add (list->priv->items, g_object_ref_sink (item));
-
- list->priv->current++;
+ list->priv->current = list->priv->items->len - 1;
g_object_notify_by_pspec (G_OBJECT (list),
gParamSpecs [PROP_CURRENT_ITEM]);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]