summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2016-02-10 19:40:19 +0100
committerDave Davenport <qball@gmpclient.org>2016-02-10 19:40:19 +0100
commitfdb4c99456c869110a76bde5495993f299117406 (patch)
tree3e29f2639a005701ebed9abbe49cd249315ccf2d /include
parent2cd8888d2cd4e9f2aaa605c025d63344757ee563 (diff)
Remove normal window global.
Diffstat (limited to 'include')
-rw-r--r--include/textbox.h18
-rw-r--r--include/view-internal.h2
-rw-r--r--include/view.h19
3 files changed, 28 insertions, 11 deletions
diff --git a/include/textbox.h b/include/textbox.h
index 757b1c62..c321eb47 100644
--- a/include/textbox.h
+++ b/include/textbox.h
@@ -42,15 +42,15 @@ typedef struct
typedef enum
{
- TB_AUTOHEIGHT = 1 << 0,
- TB_AUTOWIDTH = 1 << 1,
- TB_LEFT = 1 << 16,
- TB_RIGHT = 1 << 17,
- TB_CENTER = 1 << 18,
- TB_EDITABLE = 1 << 19,
- TB_MARKUP = 1 << 20,
- TB_WRAP = 1 << 21,
- TB_PASSWORD = 1 << 22,
+ TB_AUTOHEIGHT = 1 << 0,
+ TB_AUTOWIDTH = 1 << 1,
+ TB_LEFT = 1 << 16,
+ TB_RIGHT = 1 << 17,
+ TB_CENTER = 1 << 18,
+ TB_EDITABLE = 1 << 19,
+ TB_MARKUP = 1 << 20,
+ TB_WRAP = 1 << 21,
+ TB_PASSWORD = 1 << 22,
} TextboxFlags;
typedef enum
diff --git a/include/view-internal.h b/include/view-internal.h
index 9632e810..e6c23d55 100644
--- a/include/view-internal.h
+++ b/include/view-internal.h
@@ -65,6 +65,8 @@ typedef struct RofiViewState
// Sidebar view
ssize_t num_modi;
textbox **modi;
+
+ MenuFlags menu_flags;
// Handlers.
void ( *x11_event_loop )( struct RofiViewState *state, XEvent *ev );
void ( *finalize )( struct RofiViewState *state );
diff --git a/include/view.h b/include/view.h
index 3151a438..82de0d0f 100644
--- a/include/view.h
+++ b/include/view.h
@@ -15,9 +15,11 @@ typedef struct RofiViewState RofiViewState;
typedef enum
{
/** Create a menu for entering text */
- MENU_NORMAL = 0,
+ MENU_NORMAL = 0,
/** Create a menu for entering passwords */
- MENU_PASSWORD = 1
+ MENU_PASSWORD = 1,
+ /** Create amanaged window. */
+ MENU_NORMAL_WINDOW = 2,
} MenuFlags;
/**
@@ -146,4 +148,17 @@ void rofi_view_cleanup ( void );
void rofi_view_call_thread ( gpointer data, gpointer user_data );
/** @} */
+/***
+ * @defgroup ViewThreadPool ViewThreadPool
+ * @ingroup View
+ *
+ * The view can (optionally) keep a set of worker threads around to parallize work.
+ * This includes filtering and sorting.
+ *
+ * @{
+ */
+void rofi_view_workers_initialize ( void );
+void rofi_view_workers_finalize ( void );
+
+/**@}*/
#endif