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



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

Log:
	* translation-memory/translation-memory-ui.c:
	(showed_message_cb): Deactive translation memory menu
	if there are no options in the translation memory tab.

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

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:39:39 2008
@@ -139,16 +139,16 @@
   GtkUIManager *manager;
 
   model = GTK_LIST_STORE (gtk_tree_view_get_model (GTK_TREE_VIEW (tm_ui->priv->tree_view)));
+  
+  window = gtranslator_application_get_active_window (GTR_APP);
+  tm_menu = gtranslator_window_get_tm_menu (window);
 
   if (!gtranslator_prefs_manager_get_show_tm_options () && gtranslator_msg_is_translated (msg)
       && !gtranslator_msg_is_fuzzy (msg)) {
+    gtk_widget_set_sensitive (tm_menu, FALSE);
     gtk_list_store_clear (model);
     return;    
-  }else {
-
-    window = gtranslator_application_get_active_window (GTR_APP);
-    tm_menu = gtranslator_window_get_tm_menu (window);
-    
+  }else {  
     g_signal_connect (tm_ui->priv->tree_view,
 		      "size_allocate",
 		      G_CALLBACK (tree_view_size_cb),



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