Revision: 1987
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1987&view=rev
Author: colombanw
Date: 2011-03-14 19:08:30 +0000 (Mon, 14 Mar 2011)
Log Message:
-----------
Update the README to include most configure options
Modified Paths:
--------------
trunk/geany-plugins/README
Modified: trunk/geany-plugins/README
===================================================================
--- trunk/geany-plugins/README 2011-03-14 19:08:13 UTC (rev 1986)
+++ trunk/geany-plugins/README 2011-03-14 19:08:30 UTC (rev 1987)
@@ -35,14 +35,37 @@
to fail with an error message if you have missing
dependencies. --disable-<option> causes the feature to be forcefully disabled.
-* geanylua -- the GeanyLua plug-in
+* addons -- the Addons plugin
+* codenav -- the CodeNav plugin
+* debugger -- the Debugger plugin
+* devhelp -- the devhelp plugin
+* geanycfp -- the geanycfp plugin
+* geanydoc -- the GeanyDoc plugin
+* geanyextrasel -- the GeanyExtraSel plugin
+* geanygdb -- the GeanyGDB plugin
+* geanygendoc -- the GeanyGenDoc plugin
+* geanyinsertnum -- the GeanyInsertNum plugin
+* geanylatex -- the GeanyLaTeX plugin
+* geanylipsum -- the GeanyLipsum plugin
+* geanylua -- the GeanyLua plugin
+* geanypg -- the geanypg plugin
+* geanyprj -- the GeanyPrj plugin
+* geanysendmail -- the GeanySendmail plugin
+* geanyvc -- the GeanyVC plugin
* gtkspell -- GeanyVC's spell-check support
-* spellcheck -- the Spellcheck plug-in
+* pretty_printer -- the pretty-printer plugin
+* shiftcolumn -- the ShiftColumn plugin
+* spellcheck -- the spellcheck plugin
+* treebrowser -- the Treebrowser plugin
+* tableconvert -- the Tableconvert plugin
+* updatechecker -- the Updatechecker plugin
+* webhelper -- the WebHelper plugin
Example:
-./configure --enable-geanylua --enable-gtkspell --enable-spellcheck
+./configure --enable-geanylua --enable-spellcheck
-This will force all optional plugins to be enabled even if dependencies are missing.
+This will force force both geanylua and spellcheck plugins to be enabled even
+if some dependencies are missing.
Other tweaks
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1985
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1985&view=rev
Author: frlan
Date: 2011-03-13 22:10:13 +0000 (Sun, 13 Mar 2011)
Log Message:
-----------
GeanyLaTeX: Documentation: Make usage of listing caption feature and change font to LaTeX default for meanwhile
Modified Paths:
--------------
trunk/geanylatex/doc/geanylatex.tex
Modified: trunk/geanylatex/doc/geanylatex.tex
===================================================================
--- trunk/geanylatex/doc/geanylatex.tex 2011-03-13 22:09:48 UTC (rev 1984)
+++ trunk/geanylatex/doc/geanylatex.tex 2011-03-13 22:10:13 UTC (rev 1985)
@@ -16,7 +16,6 @@
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{float}
-\usepackage{lmodern}
\usepackage{graphicx}
\usepackage{color}
\usepackage{listings}
@@ -62,7 +61,9 @@
\maketitle
\tableofcontents
\listoftables
-\listoffigures
+\listoffigures{}
+\lstlistoflistings{}
+
\newpage
\pagenumbering{arabic}
\section{About the plugin}
@@ -183,13 +184,11 @@
Compiling and installing the code is done by the following three
commands:
-\begin{figure}[h!]
-\begin{lstlisting}
+\begin{lstlisting}[caption={Compiling with waf}]
$ ./waf configure
$ ./waf build
$ ./waf install %$
\end{lstlisting}
-\end{figure}
For more configuration details, run \texttt{./waf --help}
@@ -213,12 +212,11 @@
might like to use \texttt{htlatex}. The HTML version of this documentation
shipped with source tarball has been compiled with
-\begin{figure}[h!]
-\begin{lstlisting}
+\begin{lstlisting}[caption={Compiling of documentation}]
htlatex geanylatex.tex xhtml -cvalidate -interaction=batchmode
\end{lstlisting}
-\end{figure}
+
\section{Usage}
\begin{figure}[h!]
\centering{\includegraphics[height=7cm]{img/plugin_manager.png}}
@@ -405,8 +403,7 @@
no be moved during the process. As an example for a book, this will be
inserted to the document:
-\begin{figure}[h!]
-\begin{lstlisting}
+\begin{lstlisting}[caption={Example of BibTeX entry for a book}]
@Book{
Author = {},
Editor = {},
@@ -415,8 +412,8 @@
Year = {},
}
\end{lstlisting}
-\end{figure}
+
\subsubsection{Inserting cite-reference}
Geany\LaTeX{} is searching here for *.bib-files inside the directory
@@ -464,23 +461,21 @@
current position of cursor. If there is a selection activ, the selection
will be included into environment.
-\begin{figure}[h!]
\begin{lstlisting}
\begin{your_environment}
... selected text ...
\end{your_environment}
\end{lstlisting}
-\end{figure}
In case of an empty (= no selection) an empty environment with
-\begin{figure}[h!]
+
\begin{lstlisting}
\begin{your_environment}
...
\end{your_environment}
\end{lstlisting}
-\end{figure}
+
will be inserted to the document.
\begin{figure}[h!]
@@ -684,7 +679,9 @@
\texttt{glatex\_deactivate\_toolbaritems\_with\_non\_latex=false}.
As a result, your config file could look similar to this:
-\begin{lstlisting}
+\begin{lstlisting}[caption={Configuration to enable toolbar buttons if %
+ no \LaTeX{} is active}]
+
[general]
glatex_set_koma_active=false
glatex_set_toolbar_active=true
@@ -706,7 +703,7 @@
two documents it can be set to keep even there is no LaTeX document
activ.
-\begin{lstlisting}
+\begin{lstlisting}[caption={Configuration to keep \LaTeX{} menu inside menubar}]
[general]
glatex_set_koma_active=false
glatex_set_toolbar_active=true
@@ -727,7 +724,7 @@
time you might set \texttt{glatex\_add\_menu\_on\_startup} inside
menu section of configuration file to true.
-\begin{lstlisting}
+\begin{lstlisting}[caption={Configuration add \LaTeX{} menu on startup of Geany}]
[general]
glatex_set_koma_active=false
glatex_set_toolbar_active=true
@@ -752,8 +749,7 @@
\texttt{glatex\_set\_autocompletion\_contextsize} followed by an integer
value. An example could look like this:
-\begin{figure}[h!]
-\begin{lstlisting}
+\begin{lstlisting}[caption={Example configuration for contextsize of autocompletion}]
[general]
glatex_set_koma_active=true
glatex_set_toolbar_active=false
@@ -762,14 +758,12 @@
[autocompletion]
glatex_set_autocompletion_contextsize=2
\end{lstlisting}
-\caption{general.conf example for contextsize}
-\end{figure}
\subsubsection{Apply autocompletion only to \TeX{}-like files}
With this option, you can force Geany\LaTeX{} to apply all autocompletion functions also to non-\TeX{} file types as for example an C-source code file. As this is only in a very low number of cases a really good idea, the option is by default turned on.
-\begin{figure}[h!]
-\begin{lstlisting}
+\begin{lstlisting}[caption={general.conf example for deactivating file %
+ type specific restrictions for autocompletion}]
[general]
glatex_set_koma_active=true
glatex_set_toolbar_active=false
@@ -778,8 +772,6 @@
[autocompletion]
glatex_autocompletion_only_for_latex=false
\end{lstlisting}
-\caption{general.conf example for deactivating file type specific restrictions for autocompletion}
-\end{figure}
\subsubsection{Customized reference strings}
@@ -790,7 +782,7 @@
\texttt{glatex\_reference\_all} inside configuration file as shown inside
the example configuration snippet.
-\begin{lstlisting}
+\begin{lstlisting}[caption={Configuration example for customized reference strings}]
[general]
glatex_set_koma_active=true
glatex_set_toolbar_active=true
@@ -820,7 +812,8 @@
inside \texttt{[autocompletion]} section of configuration file. An example
which is turning off the feature might can look like this:
-\begin{lstlisting}
+\begin{lstlisting}[caption={Configuration example for autocompletion of %
+ \{\} after \_ and \symbol{94}}]
[general]
glatex_set_koma_active=true
glatex_set_toolbar_active=true
@@ -997,8 +990,7 @@
A possible snippet for snippets.conf could be:
-\begin{figure}[h!]
-\begin{lstlisting}
+\begin{lstlisting}[caption={Minimal snippets.conf for \LaTeX{}}]
[LaTeX]
frame=\\begin{frame}\n%ws%\\frametitle{%cursor%}\n%ws%%cursor%\n\\end{frame}
block=\\begin{block}{%cursor%}\n%ws%%cursor%\n\\end{block}
@@ -1006,7 +998,6 @@
enumerate=\\begin{enumerate}\n%ws%\\item %cursor%\n\\end{enumerate}
description=\\begin{description}\n%ws%\\item %cursor%\n\\end{description}
\end{lstlisting}
-\end{figure}
A snapshot of the authors' last version for LaTeX can be found on
\url{http://www.geany.org/Download/Extras}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1981
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1981&view=rev
Author: codebrainz
Date: 2011-03-12 19:12:47 +0000 (Sat, 12 Mar 2011)
Log Message:
-----------
Clean up some code causing warnings using stronger compiler warning flags.
Modified Paths:
--------------
trunk/geany-plugins/devhelp/src/devhelpplugin.c
trunk/geany-plugins/devhelp/src/devhelpplugin.h
trunk/geany-plugins/devhelp/src/main-notebook.c
trunk/geany-plugins/devhelp/src/plugin.c
trunk/geany-plugins/devhelp/src/plugin.h
Modified: trunk/geany-plugins/devhelp/src/devhelpplugin.c
===================================================================
--- trunk/geany-plugins/devhelp/src/devhelpplugin.c 2011-03-12 19:12:29 UTC (rev 1980)
+++ trunk/geany-plugins/devhelp/src/devhelpplugin.c 2011-03-12 19:12:47 UTC (rev 1981)
@@ -162,13 +162,13 @@
* Called when a link in either the contents or search areas on the sidebar
* have a link clicked on, meaning to load that file into the webview.
*/
-static void on_link_clicked(GObject * ignored, DhLink * link,
+static void on_link_clicked(GObject * ignored, DhLink * dhlink,
gpointer user_data)
{
DevhelpPlugin *plug = user_data;
if (plug->last_uri)
g_free(plug->last_uri);
- plug->last_uri = dh_link_get_uri(link);
+ plug->last_uri = dh_link_get_uri(dhlink);
webkit_web_view_open(WEBKIT_WEB_VIEW(plug->webview), plug->last_uri);
gtk_notebook_set_current_page(GTK_NOTEBOOK(plug->main_notebook),
plug->webview_tab);
Modified: trunk/geany-plugins/devhelp/src/devhelpplugin.h
===================================================================
--- trunk/geany-plugins/devhelp/src/devhelpplugin.h 2011-03-12 19:12:29 UTC (rev 1980)
+++ trunk/geany-plugins/devhelp/src/devhelpplugin.h 2011-03-12 19:12:47 UTC (rev 1981)
@@ -1,25 +1,24 @@
-// devhelpplugin.h
-//
-// Copyright 2011 Matthew Brush <mbrush@desktop>
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2 of the License, or
-// (at your option) any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
-// MA 02110-1301, USA.
-//
-//
+/*
+ * devhelpplugin.h
+ *
+ * Copyright 2011 Matthew Brush <mbrush(a)leftclick.ca>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ */
-
#ifndef __DEVHELPPLUGIN_H__
#define __DEVHELPPLUGIN_H__
@@ -50,24 +49,24 @@
{
GObject parent;
- GtkWidget *book_tree; /// "Contents" in the sidebar
- GtkWidget *search; /// "Search" in the sidebar
- GtkWidget *sb_notebook; /// Notebook that holds contents/search
- gint sb_notebook_tab; /// Index of tab where devhelp sidebar is
- GtkWidget *webview; /// Webkit that shows documentation
- gint webview_tab; /// Index of tab that contains the webview
- GtkWidget *main_notebook; /// Notebook that holds Geany doc notebook and
- /// and webkit view
- GtkWidget *doc_notebook; /// Geany's document notebook
- GtkWidget *editor_menu_item; /// Item in the editor's context menu
- GtkWidget *editor_menu_sep; /// Separator item above menu item
- gboolean *webview_active; /// Tracks whether webview stuff is shown
+ GtkWidget *book_tree; /* "Contents" in the sidebar */
+ GtkWidget *search; /* "Search" in the sidebar */
+ GtkWidget *sb_notebook; /* Notebook that holds contents/search */
+ gint sb_notebook_tab; /* Index of tab where devhelp sidebar is */
+ GtkWidget *webview; /* Webkit that shows documentation */
+ gint webview_tab; /* Index of tab that contains the webview */
+ GtkWidget *main_notebook; /* Notebook that holds Geany doc notebook and
+ * and webkit view */
+ GtkWidget *doc_notebook; /* Geany's document notebook */
+ GtkWidget *editor_menu_item; /* Item in the editor's context menu */
+ GtkWidget *editor_menu_sep; /* Separator item above menu item */
+ gboolean *webview_active; /* Tracks whether webview stuff is shown */
- gboolean last_main_tab_id; /// These track the last id of the tabs
- gboolean last_sb_tab_id; /// before toggling
- gboolean tabs_toggled; /// Tracks state of whether to toggle to
- /// Devhelp or back to code
- gboolean created_main_nb; /// Track whether we created the main notebook
+ gboolean last_main_tab_id; /* These track the last id of the tabs */
+ gboolean last_sb_tab_id; /* before toggling */
+ gboolean tabs_toggled; /* Tracks state of whether to toggle to
+ * Devhelp or back to code */
+ gboolean created_main_nb; /* Track whether we created the main notebook */
GtkPositionType orig_sb_tab_pos;
gboolean sidebar_tab_bottom;
Modified: trunk/geany-plugins/devhelp/src/main-notebook.c
===================================================================
--- trunk/geany-plugins/devhelp/src/main-notebook.c 2011-03-12 19:12:29 UTC (rev 1980)
+++ trunk/geany-plugins/devhelp/src/main-notebook.c 2011-03-12 19:12:47 UTC (rev 1981)
@@ -64,11 +64,11 @@
*/
void main_notebook_destroy(void)
{
+ GtkWidget *main_notebook, *doc_nb_parent, *vbox;
+
if (!main_notebook_needs_destroying())
return;
- GtkWidget *main_notebook, *doc_nb_parent, *vbox;
-
main_notebook = ui_lookup_widget(geany->main_widgets->window,
"main_notebook");
@@ -144,7 +144,7 @@
gtk_notebook_append_page(GTK_NOTEBOOK(main_notebook), doc_nb_box, code_label);
gtk_widget_reparent(geany->main_widgets->notebook, vbox);
gtk_container_add(GTK_CONTAINER(doc_nb_parent), main_notebook);
- //gtk_paned_pack2(GTK_PANED(doc_nb_parent), main_notebook, TRUE, TRUE);
+ /*gtk_paned_pack2(GTK_PANED(doc_nb_parent), main_notebook, TRUE, TRUE);*/
gtk_widget_show_all(main_notebook);
gtk_widget_reparent(geany->main_widgets->notebook, doc_nb_box);
gtk_notebook_set_current_page(GTK_NOTEBOOK(main_notebook), 0);
Modified: trunk/geany-plugins/devhelp/src/plugin.c
===================================================================
--- trunk/geany-plugins/devhelp/src/plugin.c 2011-03-12 19:12:29 UTC (rev 1980)
+++ trunk/geany-plugins/devhelp/src/plugin.c 2011-03-12 19:12:47 UTC (rev 1981)
@@ -247,16 +247,18 @@
error->message);
g_error_free(error);
error = NULL;
- config_text = " ";
rcode = FALSE;
}
- if (!g_file_set_contents(user_config, config_text, -1, &error))
+ else
{
- g_warning(_("Unable to write default configuration: %s"),
- error->message);
- g_error_free(error);
- error = NULL;
- rcode = FALSE;
+ if (!g_file_set_contents(user_config, config_text, -1, &error))
+ {
+ g_warning(_("Unable to write default configuration: %s"),
+ error->message);
+ g_error_free(error);
+ error = NULL;
+ rcode = FALSE;
+ }
}
}
Modified: trunk/geany-plugins/devhelp/src/plugin.h
===================================================================
--- trunk/geany-plugins/devhelp/src/plugin.h 2011-03-12 19:12:29 UTC (rev 1980)
+++ trunk/geany-plugins/devhelp/src/plugin.h 2011-03-12 19:12:47 UTC (rev 1981)
@@ -32,8 +32,8 @@
extern DevhelpPlugin *dev_help_plugin;
-gint plugin_load_preferences();
-gint plugin_store_preferences();
-gboolean plugin_config_init();
+gint plugin_load_preferences(void);
+gint plugin_store_preferences(void);
+gboolean plugin_config_init(void);
#endif
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.