[Xfce4-commits] [apps/xfce4-terminal] 01/01: Use enum type instead of int for url patterns

noreply at xfce.org noreply at xfce.org
Wed Jul 20 10:25:41 CEST 2016


This is an automated email from the git hooks/post-receive script.

f2404 pushed a commit to branch master
in repository apps/xfce4-terminal.

commit 12f1fce49921ec058d6a81b2577fe89c0a770e75
Author: Igor <f2404 at yandex.ru>
Date:   Wed Jul 20 11:25:32 2016 +0300

    Use enum type instead of int for url patterns
---
 terminal/terminal-widget.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/terminal/terminal-widget.c b/terminal/terminal-widget.c
index 41353fa..46f7662 100644
--- a/terminal/terminal-widget.c
+++ b/terminal/terminal-widget.c
@@ -62,18 +62,19 @@ enum
   LAST_SIGNAL,
 };
 
-enum
+typedef enum
 {
   PATTERN_TYPE_NONE,
   PATTERN_TYPE_FULL_HTTP,
   PATTERN_TYPE_HTTP,
   PATTERN_TYPE_EMAIL
-};
+}
+PatternType;
 
 typedef struct
 {
   const gchar *pattern;
-  gint         type;
+  PatternType  type;
 }
 TerminalRegexPattern;
 
@@ -287,7 +288,7 @@ terminal_widget_context_menu (TerminalWidget *widget,
   gchar       *match;
   guint        id, i;
   gint         tag;
-  gint         pattern_type = PATTERN_TYPE_NONE;
+  PatternType  pattern_type = PATTERN_TYPE_NONE;
 
   g_signal_emit (G_OBJECT (widget), widget_signals[GET_CONTEXT_MENU], 0, &menu);
   if (G_UNLIKELY (menu == NULL))

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list