Revision: 1530 http://svn.sourceforge.net/geany/?rev=1530&view=rev Author: ntrel Date: 2007-05-14 05:55:55 -0700 (Mon, 14 May 2007)
Log Message: ----------- Add some menu separators to group filetype menu items. Reorder Haskell, O-Matrix, VHDL filetypes.
Modified Paths: -------------- trunk/ChangeLog trunk/src/filetypes.c trunk/src/filetypes.h
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2007-05-12 12:25:11 UTC (rev 1529) +++ trunk/ChangeLog 2007-05-14 12:55:55 UTC (rev 1530) @@ -1,3 +1,10 @@ +2007-05-14 Nick Treleaven nick.treleaven@btinternet.com + + * src/filetypes.c, src/filetypes.h: + Add some menu separators to group filetype menu items. + Reorder Haskell, O-Matrix, VHDL filetypes. + + 2007-05-12 Nick Treleaven nick.treleaven@btinternet.com
* tagmanager/sql.c:
Modified: trunk/src/filetypes.c =================================================================== --- trunk/src/filetypes.c 2007-05-12 12:25:11 UTC (rev 1529) +++ trunk/src/filetypes.c 2007-05-14 12:55:55 UTC (rev 1530) @@ -548,6 +548,21 @@ filetype *ft = filetypes[ft_id]; const gchar *title = (ft_id == GEANY_FILETYPES_ALL) ? _("None") : ft->title;
+ // insert separators for different filetype groups + switch (ft_id) + { + case GEANY_FILETYPES_PERL: // scripts + case GEANY_FILETYPES_XML: // text documents + case GEANY_FILETYPES_ALL: // none + { + GtkWidget *sep = gtk_separator_menu_item_new(); + + gtk_widget_show(sep); + gtk_container_add(GTK_CONTAINER(filetype_menu), sep); + } + default: + break; + } ft->item = NULL; filetypes_create_menu_item(filetype_menu, title, ft); }
Modified: trunk/src/filetypes.h =================================================================== --- trunk/src/filetypes.h 2007-05-12 12:25:11 UTC (rev 1529) +++ trunk/src/filetypes.h 2007-05-14 12:55:55 UTC (rev 1530) @@ -35,6 +35,7 @@
typedef enum { + // normally compiled languages GEANY_FILETYPES_C = 0, GEANY_FILETYPES_CPP, GEANY_FILETYPES_D, @@ -43,6 +44,10 @@ GEANY_FILETYPES_ASM, GEANY_FILETYPES_FORTRAN, GEANY_FILETYPES_CAML, + GEANY_FILETYPES_HASKELL, + GEANY_FILETYPES_VHDL, + + // script languages GEANY_FILETYPES_PERL, GEANY_FILETYPES_PHP, GEANY_FILETYPES_JS, @@ -51,20 +56,21 @@ GEANY_FILETYPES_TCL, GEANY_FILETYPES_LUA, GEANY_FILETYPES_FERITE, - GEANY_FILETYPES_HASKELL, GEANY_FILETYPES_SH, GEANY_FILETYPES_MAKE, + GEANY_FILETYPES_OMS, + + // documents and others GEANY_FILETYPES_XML, GEANY_FILETYPES_DOCBOOK, GEANY_FILETYPES_HTML, GEANY_FILETYPES_CSS, GEANY_FILETYPES_SQL, GEANY_FILETYPES_LATEX, - GEANY_FILETYPES_OMS, - GEANY_FILETYPES_VHDL, GEANY_FILETYPES_DIFF, GEANY_FILETYPES_CONF, - GEANY_FILETYPES_ALL, // must be last filetype + + GEANY_FILETYPES_ALL, // must be last filetype, used for 'None' item. GEANY_MAX_FILE_TYPES } filetype_id;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.