From: Richard Kettlewell Date: Sun, 21 Oct 2007 19:44:25 +0000 (+0100) Subject: doxygen + window title for man page popup X-Git-Tag: debian-1_5_99dev8~91 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/commitdiff_plain/288dd12fb1e711016e9b7163cf5433a0e368780f?ds=sidebyside doxygen + window title for man page popup --- diff --git a/disobedience/help.c b/disobedience/help.c index 3510c28..b90ea35 100644 --- a/disobedience/help.c +++ b/disobedience/help.c @@ -191,6 +191,7 @@ static void insert_html(GtkTextBuffer *buffer, html_parse(&insert_html_callbacks, html, s); } +/** @brief Create a GtkTextBuffer with @p html rendered into it */ static GtkTextBuffer *html_buffer(const char *html) { GtkTextBuffer *buffer = gtk_text_buffer_new(NULL); @@ -198,8 +199,10 @@ static GtkTextBuffer *html_buffer(const char *html) { return buffer; } +/** @brief The manual page window */ static GtkWidget *help_window; +/** @brief Pop up the manual page in a window */ void popup_help(void) { GtkWidget *view; @@ -210,7 +213,7 @@ void popup_help(void) { help_window = gtk_window_new(GTK_WINDOW_TOPLEVEL); g_signal_connect(help_window, "destroy", G_CALLBACK(gtk_widget_destroyed), &help_window); - gtk_window_set_title(GTK_WINDOW(help_window), "Disobedience Manual"); + gtk_window_set_title(GTK_WINDOW(help_window), "Disobedience Manual Page"); view = gtk_text_view_new_with_buffer(html_buffer(manual)); gtk_text_view_set_editable(GTK_TEXT_VIEW(view), FALSE); gtk_container_add(GTK_CONTAINER(help_window),