gucharmap r1690 - trunk/gucharmap
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: gucharmap r1690 - trunk/gucharmap
- Date: Fri, 21 Mar 2008 10:56:57 +0000 (GMT)
Author: chpe
Date: Fri Mar 21 10:56:57 2008
New Revision: 1690
URL: http://svn.gnome.org/viewvc/gucharmap?rev=1690&view=rev
Log:
Code simplification.
Modified:
trunk/gucharmap/gucharmap-search-dialog.c
Modified: trunk/gucharmap/gucharmap-search-dialog.c
==============================================================================
--- trunk/gucharmap/gucharmap-search-dialog.c (original)
+++ trunk/gucharmap/gucharmap-search-dialog.c Fri Mar 21 10:56:57 2008
@@ -721,17 +721,12 @@
GucharmapSearchDialog *search_dialog)
{
GucharmapSearchDialogPrivate *priv = GUCHARMAP_SEARCH_DIALOG_GET_PRIVATE (search_dialog);
+ gboolean is_empty;
- if (_entry_is_empty (GTK_ENTRY (priv->entry)))
- {
- gtk_widget_set_sensitive (priv->prev_button, FALSE);
- gtk_widget_set_sensitive (priv->next_button, FALSE);
- }
- else
- {
- gtk_widget_set_sensitive (priv->prev_button, TRUE);
- gtk_widget_set_sensitive (priv->next_button, TRUE);
- }
+ is_empty = _entry_is_empty (GTK_ENTRY (priv->entry));
+
+ gtk_widget_set_sensitive (priv->prev_button, !is_empty);
+ gtk_widget_set_sensitive (priv->next_button, !is_empty);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]