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



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

Log:
2008-08-07  Ignacio Casal Quinteiro  <nacho resa gmail com>

        * translation-memory/translation-memory-ui.c
        (gtranslator_translation_memory_ui_draw),
        (gtranslator_translation_memory_ui_new):
        Fixed criticals adding the widget.

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:42:19 2008
@@ -265,9 +265,6 @@
 	priv->tree_view = gtk_tree_view_new();
 	gtk_widget_show (priv->tree_view);
 	
-	gtk_container_add (GTK_CONTAINER(tm_ui),
-			   priv->tree_view);
-	
 	gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(tm_ui),
 				       GTK_POLICY_AUTOMATIC,
 				       GTK_POLICY_AUTOMATIC);
@@ -351,5 +348,9 @@
 			 G_CALLBACK(showed_message_cb),
 			 tm_ui);
 	
+	/* Scrolledwindow needs to be realized to add a widget */
+	gtk_container_add (GTK_CONTAINER(tm_ui),
+			   tm_ui->priv->tree_view);
+	
 	return GTK_WIDGET(tm_ui);
 }



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