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.
This commit is contained in:
Jonathan Blandford
2000-11-18 23:59:30 +00:00
committed by Jonathan Blandford
parent 14ec95efb4
commit c9e39436b9
19 changed files with 230 additions and 23 deletions

View File

@ -52,7 +52,7 @@ create_menu (gint depth, gboolean tearoff)
return menu;
}
void
GtkWidget *
do_menus (void)
{
static GtkWidget *window = NULL;
@ -180,8 +180,15 @@ do_menus (void)
}
if (!GTK_WIDGET_VISIBLE (window))
gtk_widget_show (window);
{
gtk_widget_show (window);
}
else
gtk_widget_destroy (window);
{
gtk_widget_destroy (window);
window = NULL;
}
return window;
}