mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-12 05:20:17 +00:00
sync up white space/variable names to match tree_store equiv.
Mon Jul 1 17:04:09 2002 Jonathan Blandford <jrb@redhat.com> * gtk/gtkliststore.c (gtk_list_store_real_set_value): sync up white space/variable names to match tree_store equiv. * gtk/gtktreestore.c (gtk_tree_store_real_set_value): sort if we set the value.
This commit is contained in:
parent
b0f026aeca
commit
3778b86c2e
@ -1,3 +1,11 @@
|
|||||||
|
Mon Jul 1 17:04:09 2002 Jonathan Blandford <jrb@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkliststore.c (gtk_list_store_real_set_value): sync up
|
||||||
|
white space/variable names to match tree_store equiv.
|
||||||
|
|
||||||
|
* gtk/gtktreestore.c (gtk_tree_store_real_set_value): sort if we
|
||||||
|
set the value.
|
||||||
|
|
||||||
Mon Jul 01 17:19:00 2002 Bill Haneman <bill.haneman@sun.com>
|
Mon Jul 01 17:19:00 2002 Bill Haneman <bill.haneman@sun.com>
|
||||||
|
|
||||||
* contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlib-drawable.c
|
* contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlib-drawable.c
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
Mon Jul 1 17:04:09 2002 Jonathan Blandford <jrb@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkliststore.c (gtk_list_store_real_set_value): sync up
|
||||||
|
white space/variable names to match tree_store equiv.
|
||||||
|
|
||||||
|
* gtk/gtktreestore.c (gtk_tree_store_real_set_value): sort if we
|
||||||
|
set the value.
|
||||||
|
|
||||||
Mon Jul 01 17:19:00 2002 Bill Haneman <bill.haneman@sun.com>
|
Mon Jul 01 17:19:00 2002 Bill Haneman <bill.haneman@sun.com>
|
||||||
|
|
||||||
* contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlib-drawable.c
|
* contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlib-drawable.c
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
Mon Jul 1 17:04:09 2002 Jonathan Blandford <jrb@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkliststore.c (gtk_list_store_real_set_value): sync up
|
||||||
|
white space/variable names to match tree_store equiv.
|
||||||
|
|
||||||
|
* gtk/gtktreestore.c (gtk_tree_store_real_set_value): sort if we
|
||||||
|
set the value.
|
||||||
|
|
||||||
Mon Jul 01 17:19:00 2002 Bill Haneman <bill.haneman@sun.com>
|
Mon Jul 01 17:19:00 2002 Bill Haneman <bill.haneman@sun.com>
|
||||||
|
|
||||||
* contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlib-drawable.c
|
* contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlib-drawable.c
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
Mon Jul 1 17:04:09 2002 Jonathan Blandford <jrb@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkliststore.c (gtk_list_store_real_set_value): sync up
|
||||||
|
white space/variable names to match tree_store equiv.
|
||||||
|
|
||||||
|
* gtk/gtktreestore.c (gtk_tree_store_real_set_value): sort if we
|
||||||
|
set the value.
|
||||||
|
|
||||||
Mon Jul 01 17:19:00 2002 Bill Haneman <bill.haneman@sun.com>
|
Mon Jul 01 17:19:00 2002 Bill Haneman <bill.haneman@sun.com>
|
||||||
|
|
||||||
* contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlib-drawable.c
|
* contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlib-drawable.c
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
Mon Jul 1 17:04:09 2002 Jonathan Blandford <jrb@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkliststore.c (gtk_list_store_real_set_value): sync up
|
||||||
|
white space/variable names to match tree_store equiv.
|
||||||
|
|
||||||
|
* gtk/gtktreestore.c (gtk_tree_store_real_set_value): sort if we
|
||||||
|
set the value.
|
||||||
|
|
||||||
Mon Jul 01 17:19:00 2002 Bill Haneman <bill.haneman@sun.com>
|
Mon Jul 01 17:19:00 2002 Bill Haneman <bill.haneman@sun.com>
|
||||||
|
|
||||||
* contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlib-drawable.c
|
* contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlib-drawable.c
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
Mon Jul 1 17:04:09 2002 Jonathan Blandford <jrb@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkliststore.c (gtk_list_store_real_set_value): sync up
|
||||||
|
white space/variable names to match tree_store equiv.
|
||||||
|
|
||||||
|
* gtk/gtktreestore.c (gtk_tree_store_real_set_value): sort if we
|
||||||
|
set the value.
|
||||||
|
|
||||||
Mon Jul 01 17:19:00 2002 Bill Haneman <bill.haneman@sun.com>
|
Mon Jul 01 17:19:00 2002 Bill Haneman <bill.haneman@sun.com>
|
||||||
|
|
||||||
* contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlib-drawable.c
|
* contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlib-drawable.c
|
||||||
|
@ -659,9 +659,9 @@ gtk_list_store_real_set_value (GtkListStore *list_store,
|
|||||||
{
|
{
|
||||||
GtkTreeDataList *list;
|
GtkTreeDataList *list;
|
||||||
GtkTreeDataList *prev;
|
GtkTreeDataList *prev;
|
||||||
|
gint old_column = column;
|
||||||
GValue real_value = {0, };
|
GValue real_value = {0, };
|
||||||
gboolean converted = FALSE;
|
gboolean converted = FALSE;
|
||||||
gint orig_column = column;
|
|
||||||
gboolean retval = FALSE;
|
gboolean retval = FALSE;
|
||||||
|
|
||||||
g_return_val_if_fail (GTK_IS_LIST_STORE (list_store), FALSE);
|
g_return_val_if_fail (GTK_IS_LIST_STORE (list_store), FALSE);
|
||||||
@ -736,12 +736,13 @@ gtk_list_store_real_set_value (GtkListStore *list_store,
|
|||||||
_gtk_tree_data_list_value_to_node (list, &real_value);
|
_gtk_tree_data_list_value_to_node (list, &real_value);
|
||||||
else
|
else
|
||||||
_gtk_tree_data_list_value_to_node (list, value);
|
_gtk_tree_data_list_value_to_node (list, value);
|
||||||
|
|
||||||
retval = TRUE;
|
retval = TRUE;
|
||||||
if (converted)
|
if (converted)
|
||||||
g_value_unset (&real_value);
|
g_value_unset (&real_value);
|
||||||
|
|
||||||
if (sort && GTK_LIST_STORE_IS_SORTED (list_store))
|
if (sort && GTK_LIST_STORE_IS_SORTED (list_store))
|
||||||
gtk_list_store_sort_iter_changed (list_store, iter, orig_column);
|
gtk_list_store_sort_iter_changed (list_store, iter, old_column);
|
||||||
|
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
@ -1771,7 +1772,6 @@ gtk_list_store_sort_iter_changed (GtkListStore *list_store,
|
|||||||
cmp_b = (* func) (GTK_TREE_MODEL (list_store), iter, &tmp_iter, data);
|
cmp_b = (* func) (GTK_TREE_MODEL (list_store), iter, &tmp_iter, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (list_store->order == GTK_SORT_DESCENDING)
|
if (list_store->order == GTK_SORT_DESCENDING)
|
||||||
{
|
{
|
||||||
if (cmp_a < 0)
|
if (cmp_a < 0)
|
||||||
|
@ -778,11 +778,16 @@ gtk_tree_store_real_set_value (GtkTreeStore *tree_store,
|
|||||||
{
|
{
|
||||||
GtkTreeDataList *list;
|
GtkTreeDataList *list;
|
||||||
GtkTreeDataList *prev;
|
GtkTreeDataList *prev;
|
||||||
GtkTreePath *path = NULL;
|
gint old_column = column;
|
||||||
GValue real_value = {0, };
|
GValue real_value = {0, };
|
||||||
gboolean converted = FALSE;
|
gboolean converted = FALSE;
|
||||||
gboolean retval = FALSE;
|
gboolean retval = FALSE;
|
||||||
|
|
||||||
|
g_return_val_if_fail (GTK_IS_TREE_STORE (tree_store), FALSE);
|
||||||
|
g_return_val_if_fail (VALID_ITER (iter, tree_store), FALSE);
|
||||||
|
g_return_val_if_fail (column >= 0 && column < tree_store->n_columns, FALSE);
|
||||||
|
g_return_val_if_fail (G_IS_VALUE (value), FALSE);
|
||||||
|
|
||||||
if (! g_type_is_a (G_VALUE_TYPE (value), tree_store->column_headers[column]))
|
if (! g_type_is_a (G_VALUE_TYPE (value), tree_store->column_headers[column]))
|
||||||
{
|
{
|
||||||
if (! (g_value_type_compatible (G_VALUE_TYPE (value), tree_store->column_headers[column]) &&
|
if (! (g_value_type_compatible (G_VALUE_TYPE (value), tree_store->column_headers[column]) &&
|
||||||
@ -808,8 +813,6 @@ gtk_tree_store_real_set_value (GtkTreeStore *tree_store,
|
|||||||
|
|
||||||
prev = list = G_NODE (iter->user_data)->data;
|
prev = list = G_NODE (iter->user_data)->data;
|
||||||
|
|
||||||
path = gtk_tree_store_get_path (GTK_TREE_MODEL (tree_store), iter);
|
|
||||||
|
|
||||||
while (list != NULL)
|
while (list != NULL)
|
||||||
{
|
{
|
||||||
if (column == 0)
|
if (column == 0)
|
||||||
@ -819,7 +822,6 @@ gtk_tree_store_real_set_value (GtkTreeStore *tree_store,
|
|||||||
else
|
else
|
||||||
_gtk_tree_data_list_value_to_node (list, value);
|
_gtk_tree_data_list_value_to_node (list, value);
|
||||||
retval = TRUE;
|
retval = TRUE;
|
||||||
gtk_tree_path_free (path);
|
|
||||||
if (converted)
|
if (converted)
|
||||||
g_value_unset (&real_value);
|
g_value_unset (&real_value);
|
||||||
return retval;
|
return retval;
|
||||||
@ -848,16 +850,19 @@ gtk_tree_store_real_set_value (GtkTreeStore *tree_store,
|
|||||||
list->next = NULL;
|
list->next = NULL;
|
||||||
column --;
|
column --;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (converted)
|
if (converted)
|
||||||
_gtk_tree_data_list_value_to_node (list, &real_value);
|
_gtk_tree_data_list_value_to_node (list, &real_value);
|
||||||
else
|
else
|
||||||
_gtk_tree_data_list_value_to_node (list, value);
|
_gtk_tree_data_list_value_to_node (list, value);
|
||||||
|
|
||||||
retval = TRUE;
|
retval = TRUE;
|
||||||
gtk_tree_path_free (path);
|
|
||||||
if (converted)
|
if (converted)
|
||||||
g_value_unset (&real_value);
|
g_value_unset (&real_value);
|
||||||
|
|
||||||
|
if (sort && GTK_TREE_STORE_IS_SORTED (tree_store))
|
||||||
|
gtk_tree_store_sort_iter_changed (tree_store, iter, old_column);
|
||||||
|
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2067,7 +2072,6 @@ gtk_tree_store_sort_iter_changed (GtkTreeStore *tree_store,
|
|||||||
cmp_b = (* func) (GTK_TREE_MODEL (tree_store), iter, &tmp_iter, data);
|
cmp_b = (* func) (GTK_TREE_MODEL (tree_store), iter, &tmp_iter, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (tree_store->order == GTK_SORT_DESCENDING)
|
if (tree_store->order == GTK_SORT_DESCENDING)
|
||||||
{
|
{
|
||||||
if (cmp_a < 0)
|
if (cmp_a < 0)
|
||||||
|
@ -4182,8 +4182,8 @@ validate_rows (GtkTreeView *tree_view)
|
|||||||
tree_view->priv->validate_rows_timer = 0;
|
tree_view->priv->validate_rows_timer = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
validate_rows_handler (GtkTreeView *tree_view)
|
validate_rows_handler (GtkTreeView *tree_view)
|
||||||
|
Loading…
Reference in New Issue
Block a user