Revision: 5605
http://geany.svn.sourceforge.net/geany/?rev=5605&view=rev
Author: eht16
Date: 2011-03-18 09:35:31 +0000 (Fri, 18 Mar 2011)
Log Message:
-----------
Add file template for Vala (patch by Mark Trompell, thanks).
Modified Paths:
--------------
trunk/ChangeLog
Added Paths:
-----------
trunk/data/templates/files/main.vala
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2011-03-17 18:00:20 UTC (rev 5604)
+++ trunk/ChangeLog 2011-03-18 09:35:31 UTC (rev 5605)
@@ -1,3 +1,9 @@
+2011-03-18 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
+
+ * data/templates/files/main.vala:
+ Add file template for Vala (patch by Mark Trompell, thanks).
+
+
2011-03-17 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/utils.c, src/utils.h, src/filetypes.c:
@@ -8,23 +14,23 @@
Improve Class Builder plugin dialog UI using a table (patch by
Matthew Brush, thanks).
* plugins/classbuilder.c:
- Fix GLib warning when creating classes and no documents are open
+ Fix GLib warning when creating classes and no documents are open
(patch by Matthew Brush, thanks).
* plugins/classbuilder.c:
- Undo patch change to cc_option_label_new() to append a ':' colon to
- label text because this unnecessarily causes string translations to
+ Undo patch change to cc_option_label_new() to append a ':' colon to
+ label text because this unnecessarily causes string translations to
be updated.
* src/interface.c, geany.glade:
- Fix wrong label capitalization for Toolbar Preferences dialog tab
+ Fix wrong label capitalization for Toolbar Preferences dialog tab
and 2 other labels.
* data/filetypes.Scala.conf, data/filetype_extensions.conf:
Add Scala custom filetype, based on file by werg (thanks).
(This uses the newly added [styling=C] syntax).
* src/filetypes.c:
- Make special case for filetypes.matlab instead of truncating all
+ Make special case for filetypes.matlab instead of truncating all
filetype config filenames at slash.
* src/filetypes.c:
- Fix generating tag files and --ft-names option by ensuring GTK is
+ Fix generating tag files and --ft-names option by ensuring GTK is
initialized before calling ui_get_mime_icon().
Added: trunk/data/templates/files/main.vala
===================================================================
--- trunk/data/templates/files/main.vala (rev 0)
+++ trunk/data/templates/files/main.vala 2011-03-18 09:35:31 UTC (rev 5605)
@@ -0,0 +1,9 @@
+{fileheader}
+
+class {untitled} : GLib.Object {
+
+ public static int main(string[] args) {
+
+ return 0;
+ }
+}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 5604
http://geany.svn.sourceforge.net/geany/?rev=5604&view=rev
Author: ntrel
Date: 2011-03-17 18:00:20 +0000 (Thu, 17 Mar 2011)
Log Message:
-----------
Fix generating tag files and --ft-names option by ensuring GTK is
initialized before calling ui_get_mime_icon().
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/filetypes.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2011-03-17 17:03:01 UTC (rev 5603)
+++ trunk/ChangeLog 2011-03-17 18:00:20 UTC (rev 5604)
@@ -23,6 +23,9 @@
* src/filetypes.c:
Make special case for filetypes.matlab instead of truncating all
filetype config filenames at slash.
+ * src/filetypes.c:
+ Fix generating tag files and --ft-names option by ensuring GTK is
+ initialized before calling ui_get_mime_icon().
2011-03-15 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
Modified: trunk/src/filetypes.c
===================================================================
--- trunk/src/filetypes.c 2011-03-17 17:03:01 UTC (rev 5603)
+++ trunk/src/filetypes.c 2011-03-17 18:00:20 UTC (rev 5604)
@@ -528,8 +528,6 @@
if (!ft->mime_type)
ft->mime_type = g_strdup("text/plain");
-
- ft->icon = ui_get_mime_icon(ft->mime_type, GTK_ICON_SIZE_MENU);
}
@@ -581,7 +579,8 @@
}
-/* Create the filetypes array and fill it with the known filetypes. */
+/* Create the filetypes array and fill it with the known filetypes.
+ * Warning: GTK isn't necessarily initialized yet. */
void filetypes_init_types()
{
filetype_id ft_id;
@@ -686,8 +685,15 @@
void filetypes_init()
{
+ GSList *node;
+
filetypes_init_types();
-
+ /* this has to be here as GTK isn't initialized in filetypes_init_types(). */
+ foreach_slist(node, filetypes_by_title)
+ {
+ GeanyFiletype *ft = node->data;
+ ft->icon = ui_get_mime_icon(ft->mime_type, GTK_ICON_SIZE_MENU);
+ }
create_set_filetype_menu();
setup_config_file_menus();
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 5603
http://geany.svn.sourceforge.net/geany/?rev=5603&view=rev
Author: ntrel
Date: 2011-03-17 17:03:01 +0000 (Thu, 17 Mar 2011)
Log Message:
-----------
Make special case for filetypes.matlab instead of truncating all
filetype config filenames at slash.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/filetypes.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2011-03-17 16:51:18 UTC (rev 5602)
+++ trunk/ChangeLog 2011-03-17 17:03:01 UTC (rev 5603)
@@ -20,6 +20,9 @@
* data/filetypes.Scala.conf, data/filetype_extensions.conf:
Add Scala custom filetype, based on file by werg (thanks).
(This uses the newly added [styling=C] syntax).
+ * src/filetypes.c:
+ Make special case for filetypes.matlab instead of truncating all
+ filetype config filenames at slash.
2011-03-15 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
Modified: trunk/src/filetypes.c
===================================================================
--- trunk/src/filetypes.c 2011-03-17 16:51:18 UTC (rev 5602)
+++ trunk/src/filetypes.c 2011-03-17 17:03:01 UTC (rev 5603)
@@ -1290,7 +1290,7 @@
gchar *filetypes_get_conf_extension(gint filetype_idx)
{
- gchar *result, *ptr;
+ gchar *result;
GeanyFiletype *ft = filetypes[filetype_idx];
if (ft->priv->custom)
@@ -1303,12 +1303,10 @@
case GEANY_FILETYPES_CS: result = g_strdup("cs"); break;
case GEANY_FILETYPES_MAKE: result = g_strdup("makefile"); break;
case GEANY_FILETYPES_NONE: result = g_strdup("common"); break;
+ /* name is Matlab/Octave */
+ case GEANY_FILETYPES_MATLAB: result = g_strdup("matlab"); break;
default:
result = g_ascii_strdown(ft->name, -1);
- /* truncate at slash (e.g. for Matlab/Octave) */
- ptr = strstr(result, "/");
- if (ptr)
- *ptr = 0x0;
break;
}
return result;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 5602
http://geany.svn.sourceforge.net/geany/?rev=5602&view=rev
Author: ntrel
Date: 2011-03-17 16:51:18 +0000 (Thu, 17 Mar 2011)
Log Message:
-----------
Add Scala custom filetype, based on file by werg (thanks).
(This uses the newly added [styling=C] syntax).
Modified Paths:
--------------
trunk/ChangeLog
trunk/data/filetype_extensions.conf
Added Paths:
-----------
trunk/data/filetypes.Scala.conf
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2011-03-17 16:41:25 UTC (rev 5601)
+++ trunk/ChangeLog 2011-03-17 16:51:18 UTC (rev 5602)
@@ -17,6 +17,9 @@
* src/interface.c, geany.glade:
Fix wrong label capitalization for Toolbar Preferences dialog tab
and 2 other labels.
+ * data/filetypes.Scala.conf, data/filetype_extensions.conf:
+ Add Scala custom filetype, based on file by werg (thanks).
+ (This uses the newly added [styling=C] syntax).
2011-03-15 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
Modified: trunk/data/filetype_extensions.conf
===================================================================
--- trunk/data/filetype_extensions.conf 2011-03-17 16:41:25 UTC (rev 5601)
+++ trunk/data/filetype_extensions.conf 2011-03-17 16:51:18 UTC (rev 5602)
@@ -45,6 +45,7 @@
reStructuredText=*.rest;*.reST;*.rst;
R=*.R;*.r;
Ruby=*.rb;*.rhtml;*.ruby;
+Scala=*.scl;
Sh=*.sh;configure;configure.in;configure.in.in;configure.ac;*.ksh;*.zsh;*.ash;*.bash;*.m4;
SQL=*.sql;
Tcl=*.tcl;*.tk;*.wish;
Added: trunk/data/filetypes.Scala.conf
===================================================================
--- trunk/data/filetypes.Scala.conf (rev 0)
+++ trunk/data/filetypes.Scala.conf 2011-03-17 16:51:18 UTC (rev 5602)
@@ -0,0 +1,37 @@
+# Based on file by werg
+# For complete documentation of this file, please see Geany's main documentation
+[styling=C]
+
+[keywords]
+# all items must be in one line
+primary=abstract case catch class def do else extends false final finally for forSome if implicit import lazy match new object override package private protected requires return sealed throw trait true try type val var with while yield @ =>
+
+secondary=null super this AllRef Any AnyRef Array Attribute Elem Iterable List Option Some Stack String Unit Console Nil None Predef
+# these are some doxygen keywords (incomplete)
+docComment=attention author brief bug class code date def enum example exception file fn namespace note param remarks return see since struct throw todo typedef var version warning union
+
+[settings]
+lexer_filetype=C
+
+# default extension used when saving files
+extension=scl
+
+# the following characters are these which a "word" can contains, see documentation
+#wordchars=_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
+
+# if only single comment char is supported like # in this file, leave comment_close blank
+#comment_open=//
+#comment_close=
+# this is an alternative way, so multiline comments are used
+comment_open=/*
+comment_close=*/
+
+comment_use_indent=true
+
+#[build_settings]
+# %f will be replaced by the complete filename
+# %e will be replaced by the filename without extension
+# (use only one of it at one time)
+#compiler=g++ -Wall -c "%f"
+#linker=g++ -Wall -o "%e" "%f"
+#run_cmd="./%e"
Property changes on: trunk/data/filetypes.Scala.conf
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 5598
http://geany.svn.sourceforge.net/geany/?rev=5598&view=rev
Author: ntrel
Date: 2011-03-17 12:54:41 +0000 (Thu, 17 Mar 2011)
Log Message:
-----------
Fix GLib warning when creating classes and no documents are open
(patch by Matthew Brush, thanks).
Modified Paths:
--------------
trunk/ChangeLog
trunk/plugins/classbuilder.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2011-03-17 12:49:21 UTC (rev 5597)
+++ trunk/ChangeLog 2011-03-17 12:54:41 UTC (rev 5598)
@@ -7,6 +7,9 @@
* THANKS, plugins/classbuilder.c:
Improve Class Builder plugin dialog UI using a table (patch by
Matthew Brush, thanks).
+ * plugins/classbuilder.c:
+ Fix GLib warning when creating classes and no documents are open
+ (patch by Matthew Brush, thanks).
2011-03-15 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
Modified: trunk/plugins/classbuilder.c
===================================================================
--- trunk/plugins/classbuilder.c 2011-03-17 12:49:21 UTC (rev 5597)
+++ trunk/plugins/classbuilder.c 2011-03-17 12:54:41 UTC (rev 5598)
@@ -1040,16 +1040,16 @@
/* only create the files if the filename is not empty */
if (! utils_str_equal(class_info->source, ""))
{
+ doc = document_new_file(class_info->source, NULL, NULL);
text = get_template_class_source(class_info);
- doc = document_new_file(class_info->source, NULL, NULL);
editor_insert_text_block(doc->editor, text, 0, -1, 0, TRUE);
g_free(text);
}
if (! utils_str_equal(class_info->header, "") && class_info->type != GEANY_CLASS_TYPE_PHP)
{
+ doc = document_new_file(class_info->header, NULL, NULL);
text = get_template_class_header(class_info);
- doc = document_new_file(class_info->header, NULL, NULL);
editor_insert_text_block(doc->editor, text, 0, -1, 0, TRUE);
g_free(text);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.