test if clist->title_window exists before showing it,

Wed Mar 18 01:07:11 1998  Radek Doulik  <rodo@aquarius>

	* gtk/gtkclist.c (gtk_clist_column_titles_show): test if
	clist->title_window exists before showing it,
	gtk_clist_column_titles_hide also fixed
This commit is contained in:
Radek Doulik 1998-03-17 23:21:17 +00:00 committed by Radek Doulik
parent 3f04c019cd
commit b141619b50

View File

@ -571,7 +571,8 @@ gtk_clist_column_titles_show (GtkCList * clist)
if (!GTK_CLIST_SHOW_TITLES (clist))
{
GTK_CLIST_SET_FLAGS (clist, CLIST_SHOW_TITLES);
gdk_window_show (clist->title_window);
if (clist->title_window)
gdk_window_show (clist->title_window);
gtk_widget_queue_resize (GTK_WIDGET (clist));
}
}
@ -584,7 +585,8 @@ gtk_clist_column_titles_hide (GtkCList * clist)
if (GTK_CLIST_SHOW_TITLES (clist))
{
GTK_CLIST_UNSET_FLAGS (clist, CLIST_SHOW_TITLES);
gdk_window_hide (clist->title_window);
if (clist->title_window)
gdk_window_hide (clist->title_window);
gtk_widget_queue_resize (GTK_WIDGET (clist));
}
}