[ekiga/ds-gtk-application] Forms: Added GmEntry defined to contain numbers.
- From: Damien Sandras <dsandras src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga/ds-gtk-application] Forms: Added GmEntry defined to contain numbers.
- Date: Sun, 14 Dec 2014 15:23:23 +0000 (UTC)
commit 8c44ef75bf737b8b8a60a8c5078825d8227cb163
Author: Damien Sandras <dsandras seconix com>
Date: Sun Dec 14 16:17:38 2014 +0100
Forms: Added GmEntry defined to contain numbers.
lib/engine/framework/form-visitor.h | 2 +-
lib/gui/gm-entry.h | 1 +
2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/lib/engine/framework/form-visitor.h b/lib/engine/framework/form-visitor.h
index bb9eb34..8d80fdc 100644
--- a/lib/engine/framework/form-visitor.h
+++ b/lib/engine/framework/form-visitor.h
@@ -75,7 +75,7 @@ namespace Ekiga
bool advanced,
bool in_header_bar) = 0;
- typedef enum { STANDARD, PHONE_NUMBER, URI, PASSWORD } FormTextType;
+ typedef enum { STANDARD, PHONE_NUMBER, URI, PASSWORD, NUMBER } FormTextType;
virtual void text (const std::string name,
const std::string description,
const std::string value,
diff --git a/lib/gui/gm-entry.h b/lib/gui/gm-entry.h
index c0dc2ab..1dd8330 100644
--- a/lib/gui/gm-entry.h
+++ b/lib/gui/gm-entry.h
@@ -50,6 +50,7 @@ G_BEGIN_DECLS
#define BASIC_URI_PART "[A-Za-z0-9_\\-\\.]+"
#define BASIC_URI_REGEX "^" URI_SCHEME BASIC_URI_PART "@" BASIC_URI_PART "$"
#define PHONE_NUMBER_REGEX "\\+?[0-9]+"
+#define NUMBER_REGEX "\\[0-9]+"
typedef struct _GmEntry GmEntry;
typedef struct _GmEntryPrivate GmEntryPrivate;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]