From 7e8c863298a28813444a41bcbe082967792d9949 Mon Sep 17 00:00:00 2001 From: Nick Treleaven Date: Wed, 8 Sep 2010 12:36:01 +0000 Subject: [PATCH] Add GeanyMainWidgets::message_window_notebook for plugins to append a new notebook page (#3061342). git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5204 ea778897-0a13-0410-b9d1-a72fbfd435f5 --- ChangeLog | 7 +++++++ src/main.c | 1 + src/msgwindow.c | 8 +++++--- src/msgwindow.h | 7 ------- src/ui_utils.h | 22 ++++++++++++---------- 5 files changed, 25 insertions(+), 20 deletions(-) diff --git a/ChangeLog b/ChangeLog index e018f3e7..220a7e56 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2010-09-08 Nick Treleaven + + * src/ui_utils.h, src/msgwindow.c, src/msgwindow.h, src/main.c: + Add GeanyMainWidgets::message_window_notebook for plugins to append + a new notebook page (#3061342). + + 2010-08-29 Enrico Tröger * data/snippets.conf: diff --git a/src/main.c b/src/main.c index d0298a38..05b6f5fb 100644 --- a/src/main.c +++ b/src/main.c @@ -252,6 +252,7 @@ static void main_init(void) main_widgets.notebook = ui_lookup_widget(main_widgets.window, "notebook1"); main_widgets.editor_menu = create_edit_menu1(); main_widgets.tools_menu = ui_lookup_widget(main_widgets.window, "tools1_menu"); + main_widgets.message_window_notebook = ui_lookup_widget(main_widgets.window, "notebook_info"); ui_widgets.toolbar_menu = create_toolbar_popup_menu1(); ui_init(); diff --git a/src/msgwindow.c b/src/msgwindow.c index 6cbc853f..3e5e438c 100644 --- a/src/msgwindow.c +++ b/src/msgwindow.c @@ -21,11 +21,13 @@ * $Id$ */ -/* +/** + * @file msgwindow.h * Message window functions (status, compiler, messages windows). * Also compiler error message parsing and grep file and line parsing. - */ - + * + * @see GeanyMainWidgets::message_window_notebook to append a new notebook page. + **/ #include "geany.h" diff --git a/src/msgwindow.h b/src/msgwindow.h index 45337337..8ccce8c2 100644 --- a/src/msgwindow.h +++ b/src/msgwindow.h @@ -21,13 +21,6 @@ * $Id$ */ -/** - * @file msgwindow.h - * Message window functions (status, compiler, messages windows). - * Also compiler error message parsing and grep file and line parsing. - **/ - - #ifndef GEANY_MSGWINDOW_H #define GEANY_MSGWINDOW_H 1 diff --git a/src/ui_utils.h b/src/ui_utils.h index db76e631..678a617a 100644 --- a/src/ui_utils.h +++ b/src/ui_utils.h @@ -65,18 +65,20 @@ GeanyInterfacePrefs; extern GeanyInterfacePrefs interface_prefs; -/** Important widgets in the main window. */ +/** Important widgets in the main window. + * Accessed by @c geany->main_widgets. */ typedef struct GeanyMainWidgets { - GtkWidget *window; /**< Main window. */ - GtkWidget *toolbar; /**< Main toolbar. */ - GtkWidget *sidebar_notebook; /**< Sidebar notebook. */ - GtkWidget *notebook; /**< Document notebook. */ - GtkWidget *editor_menu; /**< Popup editor menu. */ - GtkWidget *tools_menu; /**< Most plugins add menu items to the Tools menu. */ - GtkWidget *progressbar; /**< Progress bar widget in the status bar to show - progress of various actions. - See ui_progress_bar_start() for details. */ + GtkWidget *window; /**< Main window. */ + GtkWidget *toolbar; /**< Main toolbar. */ + GtkWidget *sidebar_notebook; /**< Sidebar notebook. */ + GtkWidget *notebook; /**< Document notebook. */ + GtkWidget *editor_menu; /**< Popup editor menu. */ + GtkWidget *tools_menu; /**< Most plugins add menu items to the Tools menu. */ + /** Progress bar widget in the status bar to show progress of various actions. + * See ui_progress_bar_start() for details. */ + GtkWidget *progressbar; + GtkWidget *message_window_notebook; /**< Message Window notebook. */ } GeanyMainWidgets;