* The item which is currently active. If the model is a non-flat treemodel,
* and the active item is not an immediate child of the root of the tree,
* this property has the value
- * <literal>gtk_tree_path_get_indices (path, NULL)[0]</literal>,
+ * <literal>gtk_tree_path_get_indices (path)[0]</literal>,
* where <literal>path</literal> is the #GtkTreePath of the active item.
*
* Since: 2.4
if (gtk_tree_row_reference_valid (priv->active_row))
{
path = gtk_tree_row_reference_get_path (priv->active_row);
- active_item = gtk_tree_path_get_indices (path, NULL)[0];
+ active_item = gtk_tree_path_get_indices (path)[0];
gtk_tree_path_free (path);
if (priv->add_tearoffs)
return;
depth = gtk_tree_path_get_depth (path);
- pos = gtk_tree_path_get_indices (path, NULL)[depth - 1];
+ pos = gtk_tree_path_get_indices (path)[depth - 1];
if (depth > 1)
{
ppath = gtk_tree_path_copy (path);
* Returns the index of the currently active item, or -1 if there's no
* active item. If the model is a non-flat treemodel, and the active item
* is not an immediate child of the root of the tree, this function returns
- * <literal>gtk_tree_path_get_indices (path, NULL)[0]</literal>, where
+ * <literal>gtk_tree_path_get_indices (path)[0]</literal>, where
* <literal>path</literal> is the #GtkTreePath of the active item.
*
* Return value: An integer which is the index of the currently active item,
GtkTreePath *path;
path = gtk_tree_row_reference_get_path (priv->active_row);
- result = gtk_tree_path_get_indices (path, NULL)[0];
+ result = gtk_tree_path_get_indices (path)[0];
gtk_tree_path_free (path);
}
else
{
/* FIXME handle nested menus better */
gtk_menu_set_active (GTK_MENU (priv->popup_widget),
- gtk_tree_path_get_indices (path, NULL)[0]);
+ gtk_tree_path_get_indices (path)[0]);
}
if (priv->cell_view)
path = gtk_tree_path_new_from_indices (completion->priv->current_selected - matches, -1);
g_signal_emit_by_name (completion, "action-activated",
- gtk_tree_path_get_indices (path, NULL)[0]);
+ gtk_tree_path_get_indices (path)[0]);
gtk_tree_path_free (path);
}
else
&path, NULL, NULL, NULL))
{
g_signal_emit (completion, entry_completion_signals[ACTION_ACTIVATED],
- 0, gtk_tree_path_get_indices (path, NULL)[0]);
+ 0, gtk_tree_path_get_indices (path)[0]);
gtk_tree_path_free (path);
_gtk_entry_completion_popdown (completion);
/* Handle doesn't exist anymore in the model */
goto out;
- pos = gtk_tree_path_get_indices (path, NULL)[0];
+ pos = gtk_tree_path_get_indices (path)[0];
gtk_tree_model_get_iter (GTK_TREE_MODEL (request->impl->shortcuts_model),
&iter, path);
gtk_tree_path_free (path);
if (!path)
return FALSE;
- pos = *gtk_tree_path_get_indices (path, NULL);
+ pos = *gtk_tree_path_get_indices (path);
gtk_tree_path_free (path);
return (pos < shortcuts_get_index (impl, SHORTCUTS_CURRENT_FOLDER_SEPARATOR));
return;
}
- row = *gtk_tree_path_get_indices (*path, NULL);
+ row = *gtk_tree_path_get_indices (*path);
gtk_tree_view_get_background_area (tree_view, *path, column, &cell);
gtk_tree_path_free (*path);
g_assert_not_reached ();
path = gtk_tree_model_get_path (GTK_TREE_MODEL (impl->shortcuts_model), &iter);
- old_position = *gtk_tree_path_get_indices (path, NULL);
+ old_position = *gtk_tree_path_get_indices (path);
gtk_tree_path_free (path);
bookmarks_index = shortcuts_get_index (impl, SHORTCUTS_BOOKMARKS);
bookmarks_index = shortcuts_get_index (impl, SHORTCUTS_BOOKMARKS);
shortcuts_compute_drop_position (impl, x, y, &tree_path, &tree_pos);
- position = *gtk_tree_path_get_indices (tree_path, NULL);
+ position = *gtk_tree_path_get_indices (tree_path);
gtk_tree_path_free (tree_path);
if (tree_pos == GTK_TREE_VIEW_DROP_AFTER)
tree_path = gtk_tree_model_get_path (GTK_TREE_MODEL (impl->shortcuts_model), iter);
g_assert (tree_path != NULL);
- indices = gtk_tree_path_get_indices (tree_path, NULL);
+ indices = gtk_tree_path_get_indices (tree_path);
retval = TRUE;
model = SHORTCUTS_PANE_MODEL_FILTER (drag_source);
- pos = *gtk_tree_path_get_indices (path, NULL);
+ pos = *gtk_tree_path_get_indices (path);
bookmarks_pos = shortcuts_get_index (model->impl, SHORTCUTS_BOOKMARKS);
return (pos >= bookmarks_pos && pos < bookmarks_pos + model->impl->num_bookmarks);
return gtk_file_system_model_iter_nth_child (tree_model,
iter,
NULL,
- gtk_tree_path_get_indices (path, NULL)[0]);
+ gtk_tree_path_get_indices (path)[0]);
}
static GtkTreePath *
if (path)
{
- dest_index = gtk_tree_path_get_indices (path, NULL)[0];
+ dest_index = gtk_tree_path_get_indices (path)[0];
gtk_tree_path_free (path);
}
else
if (gtk_tree_path_get_depth (path) == 1)
item = g_list_nth_data (icon_view->priv->items,
- gtk_tree_path_get_indices(path, NULL)[0]);
+ gtk_tree_path_get_indices(path)[0]);
if (!item)
return;
GList *l;
gint index;
- index = gtk_tree_path_get_indices (path, NULL)[0];
+ index = gtk_tree_path_get_indices (path)[0];
for (l = icon_view->priv->items; l; l = l->next)
{
gtk_icon_view_stop_editing (icon_view, TRUE);
- index = gtk_tree_path_get_indices(path, NULL)[0];
+ index = gtk_tree_path_get_indices(path)[0];
item = g_list_nth_data (icon_view->priv->items, index);
gtk_icon_view_item_invalidate_size (item);
iters_persist = gtk_tree_model_get_flags (icon_view->priv->model) & GTK_TREE_MODEL_ITERS_PERSIST;
- index = gtk_tree_path_get_indices(path, NULL)[0];
+ index = gtk_tree_path_get_indices(path)[0];
item = gtk_icon_view_item_new ();
icon_view = GTK_ICON_VIEW (data);
- index = gtk_tree_path_get_indices(path, NULL)[0];
+ index = gtk_tree_path_get_indices(path)[0];
list = g_list_nth (icon_view->priv->items, index);
item = list->data;
if (gtk_tree_path_get_depth (path) > 0)
item = g_list_nth_data (icon_view->priv->items,
- gtk_tree_path_get_indices(path, NULL)[0]);
+ gtk_tree_path_get_indices(path)[0]);
if (!item || item->width < 0 ||
!gtk_widget_get_realized (GTK_WIDGET (icon_view)))
if (gtk_tree_path_get_depth (path) > 0)
item = g_list_nth_data (icon_view->priv->items,
- gtk_tree_path_get_indices(path, NULL)[0]);
+ gtk_tree_path_get_indices(path)[0]);
if (!item)
return;
if (gtk_tree_path_get_depth (path) > 0)
item = g_list_nth_data (icon_view->priv->items,
- gtk_tree_path_get_indices(path, NULL)[0]);
+ gtk_tree_path_get_indices(path)[0]);
if (item)
gtk_icon_view_select_item (icon_view, item);
g_return_if_fail (path != NULL);
item = g_list_nth_data (icon_view->priv->items,
- gtk_tree_path_get_indices(path, NULL)[0]);
+ gtk_tree_path_get_indices(path)[0]);
if (!item)
return;
g_return_val_if_fail (path != NULL, FALSE);
item = g_list_nth_data (icon_view->priv->items,
- gtk_tree_path_get_indices(path, NULL)[0]);
+ gtk_tree_path_get_indices(path)[0]);
if (!item)
return FALSE;
g_return_val_if_fail (path != NULL, FALSE);
item = g_list_nth_data (icon_view->priv->items,
- gtk_tree_path_get_indices(path, NULL)[0]);
+ gtk_tree_path_get_indices(path)[0]);
if (!item)
return -1;
g_return_val_if_fail (path != NULL, FALSE);
item = g_list_nth_data (icon_view->priv->items,
- gtk_tree_path_get_indices(path, NULL)[0]);
+ gtk_tree_path_get_indices(path)[0]);
if (!item)
return -1;
icon_view->priv->empty_view_drop = FALSE;
if (pos == GTK_ICON_VIEW_DROP_ABOVE && path
&& gtk_tree_path_get_depth (path) == 1
- && gtk_tree_path_get_indices (path, NULL)[0] == 0)
+ && gtk_tree_path_get_indices (path)[0] == 0)
{
gint n_children;
if (!gtk_widget_get_realized (widget))
return NULL;
- index = gtk_tree_path_get_indices (path, NULL)[0];
+ index = gtk_tree_path_get_indices (path)[0];
for (l = icon_view->priv->items; l; l = l->next)
{
atk_obj = gtk_widget_get_accessible (GTK_WIDGET (user_data));
a11y_view = GTK_ICON_VIEW_ACCESSIBLE (atk_obj);
- index = gtk_tree_path_get_indices(path, NULL)[0];
+ index = gtk_tree_path_get_indices(path)[0];
a11y_item = GTK_ICON_VIEW_ITEM_ACCESSIBLE (
gtk_icon_view_accessible_find_child (atk_obj, index));
AtkObject *atk_obj;
gint index;
- index = gtk_tree_path_get_indices(path, NULL)[0];
+ index = gtk_tree_path_get_indices(path)[0];
atk_obj = gtk_widget_get_accessible (GTK_WIDGET (user_data));
view = GTK_ICON_VIEW_ACCESSIBLE (atk_obj);
priv = gtk_icon_view_accessible_get_priv (atk_obj);
AtkObject *atk_obj;
gint index;
- index = gtk_tree_path_get_indices(path, NULL)[0];
+ index = gtk_tree_path_get_indices(path)[0];
atk_obj = gtk_widget_get_accessible (GTK_WIDGET (user_data));
view = GTK_ICON_VIEW_ACCESSIBLE (atk_obj);
priv = gtk_icon_view_accessible_get_priv (atk_obj);
seq = list_store->seq;
- i = gtk_tree_path_get_indices (path, NULL)[0];
+ i = gtk_tree_path_get_indices (path)[0];
if (i >= g_sequence_get_length (seq))
return FALSE;
/* can drop before any existing node, or before one past any existing. */
- indices = gtk_tree_path_get_indices (dest_path, NULL);
+ indices = gtk_tree_path_get_indices (dest_path);
if (indices[0] <= g_sequence_get_length (GTK_LIST_STORE (drag_dest)->seq))
retval = TRUE;
/**
* gtk_tree_path_get_indices:
* @path: A #GtkTreePath.
- * @depth: (allow-none): Number of elements returned in the integer array
+ *
+ * Returns the current indices of @path. This is an array of integers, each
+ * representing a node in a tree. This value should not be freed.
+ *
+ * Return value: The current indices, or %NULL.
+ **/
+gint *
+gtk_tree_path_get_indices (GtkTreePath *path)
+{
+ g_return_val_if_fail (path != NULL, NULL);
+
+ return path->indices;
+}
+
+/**
+ * gtk_tree_path_get_indices_with_depth:
+ * @path: A #GtkTreePath.
+ * @depth: Number of elements returned in the integer array
*
* Returns the current indices of @path.
* This is an array of integers, each representing a node in a tree.
* It also returns the number of elements in the array.
* The array should not be freed.
*
- * Return value: (transfer none) (array length=depth): The current indices, or %NULL.
+ * Return value: (array length=depth): The current indices, or %NULL.
*
* Since: 3.0
**/
gint *
-gtk_tree_path_get_indices (GtkTreePath *path, gint *depth)
+gtk_tree_path_get_indices_with_depth (GtkTreePath *path, gint *depth)
{
g_return_val_if_fail (path != NULL, NULL);
if (ref_depth > depth)
{
gint i;
- gint *indices = gtk_tree_path_get_indices (reference->path, NULL);
+ gint *indices = gtk_tree_path_get_indices (reference->path);
for (i = 0; i < length; i++)
{
void gtk_tree_path_prepend_index (GtkTreePath *path,
gint index_);
gint gtk_tree_path_get_depth (GtkTreePath *path);
-gint *gtk_tree_path_get_indices (GtkTreePath *path,
- gint *depth);
+gint *gtk_tree_path_get_indices (GtkTreePath *path);
+
+gint *gtk_tree_path_get_indices_with_depth (GtkTreePath *path,
+ gint *depth);
void gtk_tree_path_free (GtkTreePath *path);
GtkTreePath *gtk_tree_path_copy (const GtkTreePath *path);
retval = gtk_tree_path_copy (root);
for (i = 0; i < gtk_tree_path_get_depth (src); i++)
- gtk_tree_path_append_index (retval, gtk_tree_path_get_indices (src, NULL)[i]);
+ gtk_tree_path_append_index (retval, gtk_tree_path_get_indices (src)[i]);
return retval;
}
return NULL;
depth = gtk_tree_path_get_depth (src);
- indices = gtk_tree_path_get_indices (src, NULL);
+ indices = gtk_tree_path_get_indices (src);
for (i = 0; i < gtk_tree_path_get_depth (root); i++)
- if (indices[i] != gtk_tree_path_get_indices (root, NULL)[i])
+ if (indices[i] != gtk_tree_path_get_indices (root)[i])
return NULL;
retval = gtk_tree_path_new ();
gboolean common_prefix = TRUE;
level = gtk_tree_path_get_depth (c_path) - 1;
- v_indices = gtk_tree_path_get_indices (filter->priv->virtual_root, NULL);
+ v_indices = gtk_tree_path_get_indices (filter->priv->virtual_root);
c_indices = gtk_tree_path_get_indices (c_path);
for (i = 0; i < level; i++)
goto done;
elt = bsearch_elt_with_offset (level->array,
- gtk_tree_path_get_indices (real_path, NULL)[i],
+ gtk_tree_path_get_indices (real_path)[i],
&j);
if (!elt)
goto done;
/* let's try to insert the value */
- offset = gtk_tree_path_get_indices (real_path, NULL)[gtk_tree_path_get_depth (real_path) - 1];
+ offset = gtk_tree_path_get_indices (real_path)[gtk_tree_path_get_depth (real_path) - 1];
/* update the offsets, yes if we didn't insert the node above, there will
* be a gap here. This will be filled with the node (via fetch_child) when
gboolean common_prefix = TRUE;
level = gtk_tree_path_get_depth (c_path) - 1;
- v_indices = gtk_tree_path_get_indices (filter->priv->virtual_root, NULL);
+ v_indices = gtk_tree_path_get_indices (filter->priv->virtual_root);
c_indices = gtk_tree_path_get_indices (c_path);
for (i = 0; i < level; i++)
}
elt = bsearch_elt_with_offset (level->array,
- gtk_tree_path_get_indices (real_path, NULL)[i],
+ gtk_tree_path_get_indices (real_path)[i],
&j);
if (!elt || !elt->children)
}
}
- offset = gtk_tree_path_get_indices (real_path, NULL)[gtk_tree_path_get_depth (real_path) - 1];
+ offset = gtk_tree_path_get_indices (real_path)[gtk_tree_path_get_depth (real_path) - 1];
gtk_tree_path_free (real_path);
if (!level)
/* reorder root level of path */
for (i = 0; i < length; i++)
- if (new_order[i] == gtk_tree_path_get_indices (filter->priv->virtual_root, NULL)[0])
+ if (new_order[i] == gtk_tree_path_get_indices (filter->priv->virtual_root)[0])
new_pos = i;
if (new_pos < 0)
return;
- gtk_tree_path_get_indices (filter->priv->virtual_root, NULL)[0] = new_pos;
+ gtk_tree_path_get_indices (filter->priv->virtual_root)[0] = new_pos;
return;
}
length = gtk_tree_model_iter_n_children (c_model, &real_c_iter);
for (i = 0; i < length; i++)
- if (new_order[i] == gtk_tree_path_get_indices (filter->priv->virtual_root, NULL)[level])
+ if (new_order[i] == gtk_tree_path_get_indices (filter->priv->virtual_root)[level])
new_pos = i;
if (new_pos < 0)
return;
- gtk_tree_path_get_indices (filter->priv->virtual_root, NULL)[level] = new_pos;
+ gtk_tree_path_get_indices (filter->priv->virtual_root)[level] = new_pos;
return;
}
}
/* emit rows_reordered */
- if (!gtk_tree_path_get_indices (path, NULL))
+ if (!gtk_tree_path_get_indices (path))
gtk_tree_model_rows_reordered (GTK_TREE_MODEL (data), path, NULL,
tmp_array);
else
g_return_val_if_fail (GTK_IS_TREE_MODEL_FILTER (model), FALSE);
g_return_val_if_fail (filter->priv->child_model != NULL, FALSE);
- indices = gtk_tree_path_get_indices (path, NULL);
+ indices = gtk_tree_path_get_indices (path);
if (filter->priv->root == NULL)
gtk_tree_model_filter_build_level (filter, NULL, -1, FALSE);
g_return_val_if_fail (GTK_IS_TREE_MODEL_FILTER (model), FALSE);
g_return_val_if_fail (filter->priv->child_model != NULL, FALSE);
- indices = gtk_tree_path_get_indices (path, NULL);
+ indices = gtk_tree_path_get_indices (path);
if (filter->priv->root == NULL)
gtk_tree_model_filter_build_level (filter, NULL, -1, FALSE);
return NULL;
retval = gtk_tree_path_new ();
- child_indices = gtk_tree_path_get_indices (real_path, NULL);
+ child_indices = gtk_tree_path_get_indices (real_path);
if (filter->priv->root == NULL && build_levels)
gtk_tree_model_filter_build_level (filter, NULL, -1, FALSE);
/* convert path */
retval = gtk_tree_path_new ();
- filter_indices = gtk_tree_path_get_indices (filter_path, NULL);
+ filter_indices = gtk_tree_path_get_indices (filter_path);
if (!filter->priv->root)
gtk_tree_model_filter_build_level (filter, NULL, -1, FALSE);
level = FILTER_LEVEL (filter->priv->root);
tree_store->columns_dirty = TRUE;
- indices = gtk_tree_path_get_indices (path, NULL);
+ indices = gtk_tree_path_get_indices (path);
depth = gtk_tree_path_get_depth (path);
g_return_val_if_fail (depth > 0, FALSE);
{
b = G_NODE (position->user_data);
- if (gtk_tree_path_get_indices (pos_path, NULL)[gtk_tree_path_get_depth (pos_path) - 1] > 0)
+ if (gtk_tree_path_get_indices (pos_path)[gtk_tree_path_get_depth (pos_path) - 1] > 0)
{
gtk_tree_path_prev (pos_path);
if (gtk_tree_store_get_iter (GTK_TREE_MODEL (tree_store),
/* emit signal */
if (position)
- new_pos = gtk_tree_path_get_indices (pos_path, NULL)[gtk_tree_path_get_depth (pos_path)-1];
+ new_pos = gtk_tree_path_get_indices (pos_path)[gtk_tree_path_get_depth (pos_path)-1];
else if (before)
{
if (depth)
time);
if (gtk_tree_path_get_depth (dest_row) == 1
- && gtk_tree_path_get_indices (dest_row, NULL)[0] == 0)
+ && gtk_tree_path_get_indices (dest_row)[0] == 0)
{
/* special special case drag to "0", scroll to first item */
if (!tree_view->priv->scroll_to_path)
/* Update all row-references */
gtk_tree_row_reference_inserted (G_OBJECT (data), path);
depth = gtk_tree_path_get_depth (path);
- indices = gtk_tree_path_get_indices (path, NULL);
+ indices = gtk_tree_path_get_indices (path);
/* First, find the parent tree */
while (i < depth - 1)
{
GtkRBNode *tmpnode = NULL;
GtkRBTree *tmptree = tree_view->priv->tree;
- gint *indices = gtk_tree_path_get_indices (path, NULL);
+ gint *indices = gtk_tree_path_get_indices (path);
gint depth = gtk_tree_path_get_depth (path);
gint i = 0;
path = gtk_tree_path_new ();
gtk_tree_path_down (path);
- indices = gtk_tree_path_get_indices (path, NULL);
+ indices = gtk_tree_path_get_indices (path);
tree = tree_view->priv->tree;
node = tree->root;
g_return_if_fail (path != NULL);
depth = gtk_tree_path_get_depth (path);
- indices = gtk_tree_path_get_indices (path, NULL);
+ indices = gtk_tree_path_get_indices (path);
tmp = gtk_tree_path_new ();
g_return_if_fail (tmp != NULL);
if (pos == GTK_TREE_VIEW_DROP_BEFORE && path
&& gtk_tree_path_get_depth (path) == 1
- && gtk_tree_path_get_indices (path, NULL)[0] == 0)
+ && gtk_tree_path_get_indices (path)[0] == 0)
{
gint n_children;
for (j = 0; j < depth - root_depth; j++)
gtk_tree_path_append_index (real_path,
- gtk_tree_path_get_indices (path, NULL)[root_depth + j]);
+ gtk_tree_path_get_indices (path)[root_depth + j]);
}
else
real_path = gtk_tree_path_copy (path);
GtkTreeIter parent, iter;
path = gtk_tree_path_new_from_string (path_string);
- position = gtk_tree_path_get_indices (path, NULL)[gtk_tree_path_get_depth (path)];
+ position = gtk_tree_path_get_indices (path)[gtk_tree_path_get_depth (path)];
gtk_tree_path_up (path);
if (gtk_tree_model_get_iter (GTK_TREE_MODEL (fixture->store), &parent, path))
GtkTreePath *path;
path = gtk_tree_model_get_path (model, iter);
- if (gtk_tree_path_get_indices (path, NULL)[0] < 4)
+ if (gtk_tree_path_get_indices (path)[0] < 4)
return FALSE;
return TRUE;
if (!path)
return FALSE;
- if (gtk_tree_path_get_indices (path, NULL)[0] != n)
+ if (gtk_tree_path_get_indices (path)[0] != n)
ret = FALSE;
gtk_tree_path_free (path);
if (!path)
return FALSE;
- if (gtk_tree_path_get_indices (path, NULL)[0] != n)
+ if (gtk_tree_path_get_indices (path)[0] != n)
ret = FALSE;
gtk_tree_path_free (path);
int row_start;
row_start = get_row_start_for_index (tree_view,
- gtk_tree_path_get_indices (path, NULL)[0]);
+ gtk_tree_path_get_indices (path)[0]);
if (row_start + row_height < vadj->page_size)
return POS_TOP;
path, NULL, &rect);
row_start = get_row_start_for_index (GTK_TREE_VIEW (tree_view),
- gtk_tree_path_get_indices (path, NULL)[0]);
+ gtk_tree_path_get_indices (path)[0]);
/* Ugh */
pos = get_pos_from_path (GTK_TREE_VIEW (tree_view),
tree_model = gtk_tree_view_get_model (tree_view);
if (gtk_tree_model_get_flags (tree_model) & GTK_TREE_MODEL_LIST_ONLY)
- row = gtk_tree_path_get_indices (path, NULL)[0];
+ row = gtk_tree_path_get_indices (path)[0];
else
{
root_tree = gtk_tree_path_new_first ();
if (path)
{
depth = gtk_tree_path_get_depth (path);
- indices = gtk_tree_path_get_indices (path, NULL);
+ indices = gtk_tree_path_get_indices (path);
}
if (depth > 1)
gboolean sensitive;
path = gtk_tree_model_get_path (tree_model, iter);
- indices = gtk_tree_path_get_indices (path, NULL);
+ indices = gtk_tree_path_get_indices (path);
sensitive = indices[0] != 1;
gtk_tree_path_free (path);
gboolean result;
path = gtk_tree_model_get_path (model, iter);
- result = gtk_tree_path_get_indices (path, NULL)[0] == 4;
+ result = gtk_tree_path_get_indices (path)[0] == 4;
gtk_tree_path_free (path);
return result;
path = gtk_tree_model_get_path (model, iter);
- if (gtk_tree_path_get_indices (path, NULL)[0] < 4)
+ if (gtk_tree_path_get_indices (path)[0] < 4)
visible = first;
else
visible = !first;
g_return_val_if_fail (gtk_tree_path_get_depth (path) > 0, FALSE);
- i = gtk_tree_path_get_indices (path, NULL)[0];
+ i = gtk_tree_path_get_indices (path)[0];
list = g_list_nth (view_model->columns, i);
if (list == NULL)
if (dest_iter)
{
GtkTreePath *path = gtk_tree_model_get_path (dest, dest_iter);
- before = (gtk_tree_path_get_indices (path, NULL))[0];
+ before = (gtk_tree_path_get_indices (path))[0];
gtk_tree_path_free (path);
}
if (dest_iter)
{
GtkTreePath *path = gtk_tree_model_get_path (dest, dest_iter);
- before = (gtk_tree_path_get_indices (path, NULL))[0];
+ before = (gtk_tree_path_get_indices (path))[0];
gtk_tree_path_free (path);
}
GtkTreePath *path;
path = gtk_tree_model_get_path (model, iter);
- size = gtk_tree_path_get_indices (path, NULL)[0] * 2 + 10;
+ size = gtk_tree_path_get_indices (path)[0] * 2 + 10;
gtk_tree_path_free (path);
g_object_set (cell, "indicator_size", size, NULL);