SF.net SVN: geany:[3324] trunk
ntrel at users.sourceforge.net
ntrel at xxxxx
Fri Dec 5 16:41:23 UTC 2008
Revision: 3324
http://geany.svn.sourceforge.net/geany/?rev=3324&view=rev
Author: ntrel
Date: 2008-12-05 16:41:23 +0000 (Fri, 05 Dec 2008)
Log Message:
-----------
Fix use of filetypes_array.
Modified Paths:
--------------
trunk/ChangeLog
trunk/plugins/saveactions.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2008-12-05 16:29:32 UTC (rev 3323)
+++ trunk/ChangeLog 2008-12-05 16:41:23 UTC (rev 3324)
@@ -8,6 +8,8 @@
* src/plugindata.h, src/plugins.c:
Add GeanyFunctions::p_msgwin to fix the prefix for generated macros.
Deprecate GeanyFunctions::p_msgwindow.
+ * plugins/saveactions.c:
+ Fix use of filetypes_array.
2008-12-04 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
Modified: trunk/plugins/saveactions.c
===================================================================
--- trunk/plugins/saveactions.c 2008-12-05 16:29:32 UTC (rev 3323)
+++ trunk/plugins/saveactions.c 2008-12-05 16:41:23 UTC (rev 3324)
@@ -623,11 +623,13 @@
gtk_box_pack_start(GTK_BOX(inner_vbox), label, FALSE, FALSE, 0);
pref_widgets.instantsave_ft_combo = combo = gtk_combo_box_new_text();
- for (i = 0; i < filetypes_array->len; i++)
+ for (i = 0; i < geany->filetypes_array->len; i++)
{
- gtk_combo_box_append_text(GTK_COMBO_BOX(combo), filetypes[i]->name);
+ GeanyFiletype *ft = filetypes_index(i);
- if (utils_str_equal(filetypes[i]->name, instantsave_default_ft))
+ gtk_combo_box_append_text(GTK_COMBO_BOX(combo), ft->name);
+
+ if (utils_str_equal(ft->name, instantsave_default_ft))
gtk_combo_box_set_active(GTK_COMBO_BOX(combo), i);
}
gtk_combo_box_set_wrap_width(GTK_COMBO_BOX(combo), 3);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list