[gnome-terminal/search: 5/9] [find] Move private structs out of header file
- From: Behdad Esfahbod <behdad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-terminal/search: 5/9] [find] Move private structs out of header file
- Date: Tue, 13 Apr 2010 13:51:15 +0000 (UTC)
commit dfb670576a06bb9ebace26b66e144a055ec3f8b3
Author: Behdad Esfahbod <behdad behdad org>
Date: Tue Apr 13 09:25:46 2010 -0400
[find] Move private structs out of header file
src/terminal-find.c | 23 +++++++++++++++++++++--
src/terminal-find.h | 15 ---------------
2 files changed, 21 insertions(+), 17 deletions(-)
---
diff --git a/src/terminal-find.c b/src/terminal-find.c
index ad50a09..35d0c3a 100644
--- a/src/terminal-find.c
+++ b/src/terminal-find.c
@@ -37,6 +37,27 @@
#define CONF_FIND_ENTRY_DEFAULT 50 /* By default, save 50 previous finds */
+
+
+#define TERMINAL_FIND_FLAG_CASE (1 << 0)
+#define TERMINAL_FIND_FLAG_REGEX (1 << 1)
+#define TERMINAL_FIND_FLAG_WHOLE (1 << 2)
+
+typedef struct
+{
+ char *find_string;
+ char *regex_string;
+ int row;
+ int column;
+ int length;
+ int flags;
+ void *screen;
+} FindParams;
+
+/* Keep track of where we are */
+static FindParams *params;
+
+
/* GConf stuff */
static GConfClient *gconf;
static guint nid_case; /* Notify IDs */
@@ -53,8 +74,6 @@ static GtkTreeModel *model;
static gint entry_max;
static GtkWindow *parent;
-/* Keep track of where we are */
-static FindParams *params;
static void terminal_find_set_parent (GtkWindow *new_parent);
diff --git a/src/terminal-find.h b/src/terminal-find.h
index cd1317f..f2b3644 100644
--- a/src/terminal-find.h
+++ b/src/terminal-find.h
@@ -22,21 +22,6 @@
#include <gtk/gtk.h>
-#define TERMINAL_FIND_FLAG_CASE (1 << 0)
-#define TERMINAL_FIND_FLAG_REGEX (1 << 1)
-#define TERMINAL_FIND_FLAG_WHOLE (1 << 2)
-
-typedef struct
-{
- char *find_string;
- char *regex_string;
- int row;
- int column;
- int length;
- int flags;
- void *screen;
-} FindParams;
-
void terminal_find_display (GtkWindow *parent);
#endif /* _TERMINAL_FIND_H_ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]