SF.net SVN: geany:[4122] trunk/src/build.c

ntrel at users.sourceforge.net ntrel at xxxxx
Tue Aug 25 16:03:24 UTC 2009


Revision: 4122
          http://geany.svn.sourceforge.net/geany/?rev=4122&view=rev
Author:   ntrel
Date:     2009-08-25 16:03:24 +0000 (Tue, 25 Aug 2009)

Log Message:
-----------
Fix using CamelCase for typenames.

Modified Paths:
--------------
    trunk/src/build.c

Modified: trunk/src/build.c
===================================================================
--- trunk/src/build.c	2009-08-25 11:22:00 UTC (rev 4121)
+++ trunk/src/build.c	2009-08-25 16:03:24 UTC (rev 4122)
@@ -1074,7 +1074,7 @@
 	return TRUE;
 }
 
-typedef void callback(GtkWidget *w, gpointer u);
+typedef void Callback(GtkWidget *w, gpointer u);
 
 /* run the command catenating cmd_cat if present */
 static void build_command(GeanyDocument *doc, GeanyBuildGroup grp, gint cmd, gchar *cmd_cat)
@@ -1190,12 +1190,12 @@
 #define MENU_DONE        (MENU_COMMANDS+1)
 
 
-static struct build_menu_item_spec {
+static struct BuildMenuItemSpec {
 	const gchar	*stock_id;
 	const gint	 key_binding;
 	const gint	 build_grp, build_cmd;
 	const gchar	*fix_label;
-	callback *cb;
+	Callback *cb;
 } build_menu_specs[] = {
 	{ GTK_STOCK_CONVERT, GEANY_KEYS_BUILD_COMPILE, GBO_TO_GBG(GEANY_GBO_COMPILE),
 		GBO_TO_CMD(GEANY_GBO_COMPILE),       NULL, on_build_menu_item },
@@ -1234,7 +1234,7 @@
 };
 
 static void create_build_menu_item(GtkWidget *menu, GeanyKeyGroup *group, GtkAccelGroup *ag,
-							struct build_menu_item_spec *bs, gchar *lbl, gint grp, gint cmd)
+							struct BuildMenuItemSpec *bs, gchar *lbl, gint grp, gint cmd)
 {
 	GtkWidget *item = gtk_image_menu_item_new_with_mnemonic(lbl);
 	if (bs->stock_id!=NULL)
@@ -1269,7 +1269,7 @@
 
 	for (i=0; build_menu_specs[i].build_grp != MENU_DONE; ++i)
 	{
-		struct build_menu_item_spec *bs = &(build_menu_specs[i]);
+		struct BuildMenuItemSpec *bs = &(build_menu_specs[i]);
 		if (bs->build_grp == MENU_SEPARATOR)
 		{
 			GtkWidget *item = gtk_separator_menu_item_new();
@@ -1332,7 +1332,7 @@
 	have_errors = gtk_tree_model_iter_n_children(GTK_TREE_MODEL(msgwindow.store_compiler), NULL) > 0;
 	for (i=0; build_menu_specs[i].build_grp != MENU_DONE; ++i)
 	{
-		struct build_menu_item_spec *bs = &(build_menu_specs[i]);
+		struct BuildMenuItemSpec *bs = &(build_menu_specs[i]);
 		switch(bs->build_grp)
 		{
 			case MENU_SEPARATOR:


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