ekiga r7861 - branches/gnome-2-26/src/gui



Author: ededu
Date: Wed Apr 15 16:24:53 2009
New Revision: 7861
URL: http://svn.gnome.org/viewvc/ekiga?rev=7861&view=rev

Log:
In assistant, next button is enabled if the given name has at least one char, thanks Takao Fujiwara (#578359).

Modified:
   branches/gnome-2-26/src/gui/assistant.cpp

Modified: branches/gnome-2-26/src/gui/assistant.cpp
==============================================================================
--- branches/gnome-2-26/src/gui/assistant.cpp	(original)
+++ branches/gnome-2-26/src/gui/assistant.cpp	Wed Apr 15 16:24:53 2009
@@ -343,17 +343,7 @@
 name_changed_cb (GtkEntry     *entry,
                  GtkAssistant *assistant)
 {
-  gchar **couple;
-  gboolean complete;
-
-  couple = g_strsplit (gtk_entry_get_text (entry), " ", 2);
-
-  complete = couple && couple[0] && couple[1]
-          && !PString (couple[0]).Trim ().IsEmpty ()
-          && !PString (couple[1]).Trim ().IsEmpty ();
-  set_current_page_complete (assistant, complete);
-
-  g_strfreev (couple);
+  set_current_page_complete (assistant, gtk_entry_get_text_length (entry) > 0);
 }
 
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]