aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormutantturkey <crazycal00@gmail.com>2010-05-24 08:00:33 -0400
committermutantturkey <crazycal00@gmail.com>2010-05-24 08:00:33 -0400
commit49cd13c07226526a06c054b4d5ef38d5cae684c1 (patch)
treeb56e7e67259af0432c2c99b1743492cdd44a6e0c
parent716437cb2a9a8db4b86a6d27d25d83af1123c9c2 (diff)
defining in preprocessor instead of being chars
-rw-r--r--mt.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mt.c b/mt.c
index 16845f3..e91f7c8 100644
--- a/mt.c
+++ b/mt.c
@@ -13,10 +13,11 @@ static void tab_focus(GtkNotebook *notebook, GtkNotebookPage *page, guint page_n
/* part of the code is from sakura. :) i just want a more minimal version, sakura is to code bloat for what i want. so snippets will do*/
/* i am very thankful for this part, because it really helped me figure out how to close tabs properly (sounds easy, but i am dumb as a doorknob*/
static GQuark term_data_id = 0;
-#define get_page_term( sakura, page_idx ) (struct term*)g_object_get_qdata(G_OBJECT( gtk_notebook_get_nth_page( (GtkNotebook*)mt.notebook, page_idx ) ), term_data_id);
static gboolean fullscreen;
+
+#define get_page_term( sakura, page_idx ) (struct term*)g_object_get_qdata(G_OBJECT( gtk_notebook_get_nth_page( (GtkNotebook*)mt.notebook, page_idx ) ), term_data_id);
#define FONT "terminus 9"
-static char *httpregexp = "(ftp|http)s?://[-a-zA-Z0-9.?$%&/=_~#.,:;+]*";
+#define HTTPREGEX "(ftp|http)s?://[-a-zA-Z0-9.?$%&/=_~#.,:;+]*"
#define SCROLL 250
static struct { GtkWidget *win; GtkWidget *notebook; gchar *title;} mt;