From: John Darrington Date: Thu, 16 Apr 2009 13:10:29 +0000 (+0800) Subject: remove superfluous tests X-Git-Tag: v0.7.3~154 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b93e51996d294eabe7bb43c33747c283cc865e11;p=pspp-builds.git remove superfluous tests --- diff --git a/lib/gtk-contrib/psppire-sheet.c b/lib/gtk-contrib/psppire-sheet.c index bb99d1e3..87547e84 100644 --- a/lib/gtk-contrib/psppire-sheet.c +++ b/lib/gtk-contrib/psppire-sheet.c @@ -2141,11 +2141,8 @@ psppire_sheet_unmap (GtkWidget *widget) gdk_window_hide (sheet->row_title_window); gdk_window_hide (widget->window); - if (GTK_WIDGET_MAPPED (sheet->entry_widget)) - gtk_widget_unmap (sheet->entry_widget); - - if (GTK_WIDGET_MAPPED (sheet->button)) - gtk_widget_unmap (sheet->button); + gtk_widget_unmap (sheet->entry_widget); + gtk_widget_unmap (sheet->button); } /* get cell attributes of the given cell */