Revision: 651 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=651&view=rev Author: frlan Date: 2009-05-15 21:34:08 +0000 (Fri, 15 May 2009)
Log Message: ----------- GeanyLaTeX: Sort entries of insert environment dialog pulldown
Modified Paths: -------------- trunk/geanylatex/src/latexenvironments.c
Modified: trunk/geanylatex/src/latexenvironments.c =================================================================== --- trunk/geanylatex/src/latexenvironments.c 2009-05-15 21:33:22 UTC (rev 650) +++ trunk/geanylatex/src/latexenvironments.c 2009-05-15 21:34:08 UTC (rev 651) @@ -111,6 +111,7 @@ GtkWidget *label_env = NULL; GtkWidget *textbox_env = NULL; GtkWidget *table = NULL; + GtkTreeModel *model = NULL; gint i, max;
dialog = gtk_dialog_new_with_buttons(_("Insert Environment"), @@ -137,6 +138,10 @@ glatex_environment_array[i].label); }
+ model = gtk_combo_box_get_model(GTK_COMBO_BOX(textbox_env)); + gtk_tree_sortable_set_sort_column_id(GTK_TREE_SORTABLE(model), + 0, GTK_SORT_ASCENDING); + gtk_misc_set_alignment(GTK_MISC(label_env), 0, 0.5);
gtk_table_attach_defaults(GTK_TABLE(table), label_env, 0, 1, 0, 1);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.