gtranslator r3656 - in trunk/src: . translation-memory



Author: icq
Date: Mon Sep 22 09:41:19 2008
New Revision: 3656
URL: http://svn.gnome.org/viewvc/gtranslator?rev=3656&view=rev

Log:
	* translation-memory/translation-memory-ui.c:
	Removed comment.h dependency because it isn't necessary really.
	Fixed bug in translation memory menu. Now it shows correctly the
	options.

Modified:
   trunk/src/ChangeLog
   trunk/src/tab.c
   trunk/src/translation-memory/translation-memory-ui.c

Modified: trunk/src/tab.c
==============================================================================
--- trunk/src/tab.c	(original)
+++ trunk/src/tab.c	Mon Sep 22 09:41:19 2008
@@ -508,11 +508,13 @@
 static void
 gtranslator_tab_draw (GtranslatorTab *tab)
 {
+        gint current_page_num;
 	GtkWidget *image;
 	GtkWidget *vertical_box;
 	GtkWidget *label_widget;
 	GtkWidget *msgid_label;
 	GtkWidget *msgstr_label;
+	GtkWidget *current_page;
 	GtkWidget *notebook, *tm_layout, *tm, *comments_label, *tm_label, *scroll;
 	GtranslatorTabPrivate *priv = tab->priv;
 	

Modified: trunk/src/translation-memory/translation-memory-ui.c
==============================================================================
--- trunk/src/translation-memory/translation-memory-ui.c	(original)
+++ trunk/src/translation-memory/translation-memory-ui.c	Mon Sep 22 09:41:19 2008
@@ -20,7 +20,6 @@
 #endif
 
 #include "application.h"
-#include "comment.h"
 #include "po.h"
 #include "prefs-manager.h"
 #include "translation-memory.h"
@@ -218,9 +217,12 @@
 			G_CALLBACK (on_activate_item_cb), window);
       
       gtk_menu_shell_append (GTK_MENU_SHELL (items_menu), tm_item);
-    j++;
-    }while (j<=9);
-    //while ((tm_list = g_list_next (tm_list)));
+    
+      j++;
+      if (j>10)
+	break;
+
+    }while (tm_list = g_list_next (tm_list));
     
     gtk_menu_item_set_submenu (GTK_MENU_ITEM (tm_menu), items_menu);
   }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]