diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-10-23 02:39:14 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-10-23 02:59:18 (EDT) |
commit | f385f135108169de5de6e3c972846e93c816fe3e (patch) | |
tree | a500f8147b456861ab9510a66e73a48356aee2df | |
parent | 08b956e032e3257e04a0dfc90496437b98a7a176 (diff) | |
download | marquee-f385f135108169de5de6e3c972846e93c816fe3e.zip marquee-f385f135108169de5de6e3c972846e93c816fe3e.tar.gz marquee-f385f135108169de5de6e3c972846e93c816fe3e.tar.bz2 |
MqNotebook: Set up MqTree root
-rw-r--r-- | src/notebook.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/notebook.c b/src/notebook.c index 61502e7..675e6bb 100644 --- a/src/notebook.c +++ b/src/notebook.c @@ -24,11 +24,23 @@ #include <glib.h> #include <gtk/gtk.h> +#include "tab-label.h" +#include "tab-page.h" +#include "tree.h" #include "window.h" +#define MQ_TAB_TREE(obj) (MqTabTree *) (obj) + +typedef struct { + MqTree parent_instance; + MqTabLabel *label; + MqTabPage *page; +} MqTabTree; + struct _MqNotebook { GtkNotebook parent_instance; MqWindow *window; + MqTabTree *tree; }; enum { @@ -104,6 +116,9 @@ mq_notebook_class_init(MqNotebookClass *klass) static void mq_notebook_init(MqNotebook *notebook) { + notebook->tree = MQ_TAB_TREE(mq_tree_insert_root_allocated( + MQ_TREE(g_new0(MqTabTree, 1)), NULL)); + gtk_notebook_set_show_border(GTK_NOTEBOOK(notebook), FALSE); gtk_notebook_set_scrollable(GTK_NOTEBOOK(notebook), TRUE); gtk_notebook_set_group_name(GTK_NOTEBOOK(notebook), "mq-tabs"); |