Revision: 588 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=588&view=rev Author: frlan Date: 2009-04-13 19:30:11 +0000 (Mon, 13 Apr 2009)
Log Message: ----------- GeanyLaTeX: Sort entries on insert reference dialog by alphabet
Modified Paths: -------------- trunk/geanylatex/ChangeLog trunk/geanylatex/doc/geanylatex.tex trunk/geanylatex/src/geanylatex.c
Modified: trunk/geanylatex/ChangeLog =================================================================== --- trunk/geanylatex/ChangeLog 2009-04-10 08:32:59 UTC (rev 587) +++ trunk/geanylatex/ChangeLog 2009-04-13 19:30:11 UTC (rev 588) @@ -1,3 +1,8 @@ +2009-04-10 Frank Lanitz <frank(at)frank(dot)uvena(dot)de> + + * Sort entries on insert reference dialog by alphabet + + 2009-03-30 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
* Moved replacement functions into their own submenu.
Modified: trunk/geanylatex/doc/geanylatex.tex =================================================================== --- trunk/geanylatex/doc/geanylatex.tex 2009-04-10 08:32:59 UTC (rev 587) +++ trunk/geanylatex/doc/geanylatex.tex 2009-04-13 19:30:11 UTC (rev 588) @@ -213,11 +213,10 @@
The suggestions inside the pull down are based on the aux file creating by processing of *.tex file. The plugin is searching for a aux file -for the current open *.tex file inside current directory. When first stept +for the current open *.tex file inside current directory. When first step was successful the file is parsed for \texttt{\textbackslash newlabel{}{}{}} and tries to interpret them properly. The found -entries will be inserted into pull down sorted by appearance inside aux -file which should be appearance inside document in most of cases. +entries will be inserted into pull down sorted by alphabet.
Both, the inserting labels as well as the inserting reference dialog can be accessed by key binding also. See chapter \ref{kb_insert_label}
Modified: trunk/geanylatex/src/geanylatex.c =================================================================== --- trunk/geanylatex/src/geanylatex.c 2009-04-10 08:32:59 UTC (rev 587) +++ trunk/geanylatex/src/geanylatex.c 2009-04-13 19:30:11 UTC (rev 588) @@ -280,6 +280,7 @@ GtkWidget *table = NULL; GtkWidget *radio1 = NULL; GtkWidget *radio2 = NULL; + GtkTreeModel *model = NULL;
dialog = gtk_dialog_new_with_buttons(_("Insert Reference"), @@ -298,6 +299,9 @@ label_ref = gtk_label_new(_("Reference name:")); textbox_ref = gtk_combo_box_entry_new_text(); glatex_add_Labels(textbox_ref, glatex_get_aux_file()); + model = gtk_combo_box_get_model(GTK_COMBO_BOX(textbox_ref)); + gtk_tree_sortable_set_sort_column_id(GTK_TREE_SORTABLE(model), + 0, GTK_SORT_ASCENDING);
gtk_misc_set_alignment(GTK_MISC(label_ref), 0, 0.5);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.