diff options
author | Jonathan Blandford <jrb@redhat.com> | 2000-11-18 23:59:30 +0000 |
---|---|---|
committer | Jonathan Blandford <jrb@src.gnome.org> | 2000-11-18 23:59:30 +0000 |
commit | c9e39436b9cae1c03fb15242116798550a44b66e (patch) | |
tree | 04471c79ad93c6c7ec5486fee393ba144b0d6cc6 /gtk | |
parent | 14ec95efb42c28947caa74894bf5049c474dd846 (diff) | |
download | gtk+-c9e39436b9cae1c03fb15242116798550a44b66e.tar.gz |
Changed to have the list become non-italic when the demo window is
Sat Nov 18 18:00:17 2000 Jonathan Blandford <jrb@redhat.com>
* demos/gtk-demo/main.c: Changed to have the list become
non-italic when the demo window is destroyed through an external
event (like a close button). Doing so found three bugs in the
widget.
* demos/gtk-demo/*.c (do_*): Changed to return the toplevel window.
* gtk/gtkliststore.c (gtk_list_store_set_cell): emit "change" when
we actually set the cell.
* gtk/gtktreestore.c (gtk_tree_store_set_cell): ditto
* gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
free a leaked path. Thanks memprof.
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkliststore.c | 3 | ||||
-rw-r--r-- | gtk/gtktreeselection.c | 1 | ||||
-rw-r--r-- | gtk/gtktreestore.c | 3 | ||||
-rw-r--r-- | gtk/gtktreeview.c | 2 |
4 files changed, 8 insertions, 1 deletions
diff --git a/gtk/gtkliststore.c b/gtk/gtkliststore.c index fb23aadfb4..063a844b59 100644 --- a/gtk/gtkliststore.c +++ b/gtk/gtkliststore.c @@ -442,6 +442,9 @@ gtk_list_store_set_cell (GtkListStore *list_store, if (column == 0) { _gtk_tree_data_list_value_to_node (list, value); + gtk_signal_emit_by_name (GTK_OBJECT (list_store), + "changed", + NULL, iter); return; } diff --git a/gtk/gtktreeselection.c b/gtk/gtktreeselection.c index 706549ee31..4654a7de25 100644 --- a/gtk/gtktreeselection.c +++ b/gtk/gtktreeselection.c @@ -893,6 +893,7 @@ gtk_tree_selection_real_select_node (GtkTreeSelection *selection, } else selected = TRUE; + gtk_tree_path_free (path); } if (selected == TRUE) { diff --git a/gtk/gtktreestore.c b/gtk/gtktreestore.c index c85c251b8d..b57de70820 100644 --- a/gtk/gtktreestore.c +++ b/gtk/gtktreestore.c @@ -502,6 +502,9 @@ gtk_tree_store_set_cell (GtkTreeStore *tree_store, if (column == 0) { _gtk_tree_data_list_value_to_node (list, value); + gtk_signal_emit_by_name (GTK_OBJECT (tree_store), + "changed", + NULL, iter); return; } diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c index de3d504726..e1122db48c 100644 --- a/gtk/gtktreeview.c +++ b/gtk/gtktreeview.c @@ -1947,7 +1947,7 @@ gtk_tree_view_changed (GtkTreeModel *model, else { /* FIXME: just redraw the node */ - gtk_widget_queue_resize (GTK_WIDGET (data)); + gtk_widget_queue_draw (GTK_WIDGET (data)); } } |