Revision: 305 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=305&view=rev Author: frlan Date: 2008-11-18 20:34:28 +0000 (Tue, 18 Nov 2008)
Log Message: ----------- GeanyLaTeX: Removed a unneeded variable assignment
Modified Paths: -------------- trunk/geanylatex/src/geanylatex.c
Modified: trunk/geanylatex/src/geanylatex.c =================================================================== --- trunk/geanylatex/src/geanylatex.c 2008-11-17 22:56:50 UTC (rev 304) +++ trunk/geanylatex/src/geanylatex.c 2008-11-18 20:34:28 UTC (rev 305) @@ -252,7 +252,6 @@ { gint i; gint j; - gint max_menu_entries = MAX_MENU_ENTRIES; gint categories = count_menu_cat_entries(category_name); GtkWidget *sub_menu = NULL; GtkWidget *sub_menu_cat[categories][2]; @@ -282,7 +281,7 @@
// Default is, not to split anything to make menu not // deeper than realy needed. - if (item_count > max_menu_entries) + if (item_count > MAX_MENU_ENTRIES) { split = TRUE; } @@ -297,7 +296,7 @@ if (menu_template[j].cat == i) { // Creates a new sub sub menu if needed - if (split == TRUE && (local_count % max_menu_entries) == 0) + if (split == TRUE && (local_count % MAX_MENU_ENTRIES) == 0) { gint next_split_point = 0; GtkWidget *tmp = NULL; @@ -306,7 +305,7 @@ sub_menu = active_submenu;
for (next_split_point = 0; - next_split_point < max_menu_entries ; next_split_point ++) + next_split_point < MAX_MENU_ENTRIES ; next_split_point ++) { if (menu_template[j+next_split_point].cat != i) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.