gtranslator r3755 - in trunk: . plugins/open-tran src



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

Log:
2008-09-03  Ignacio Casal Quinteiro  <nacho resa gmail com>

	* main.c (main):
	Fixed another memory leak.

	* view.c:
	Added doc.

	* plugins/open-tran/open-tran-plugin.c (impl_activate):
	Removed unnecessary code.

Modified:
   trunk/ChangeLog
   trunk/plugins/open-tran/open-tran-plugin.c
   trunk/src/ChangeLog
   trunk/src/view.c

Modified: trunk/plugins/open-tran/open-tran-plugin.c
==============================================================================
--- trunk/plugins/open-tran/open-tran-plugin.c	(original)
+++ trunk/plugins/open-tran/open-tran-plugin.c	Mon Sep 22 09:46:58 2008
@@ -94,33 +94,13 @@
 impl_activate (GtranslatorPlugin *plugin,
 	       GtranslatorWindow *window)
 {
-	//GtkWidget *image = NULL;
 	GtkWidget *opentran;
-	/*GdkPixbuf *pixbuf;
-	GtkIconSet *iconset;
-	GError *error = NULL;*/
-	
-	/*pixbuf = gdk_pixbuf_new_from_file(OPEN_TRAN_PLUGIN_ICON, &error);
-	
-	if (error)
-	{
-		g_warning ("Could not load icon: %s\n", error->message);
-		g_error_free(error);
-		pixbuf = NULL;
-	}
-	
-	if(pixbuf)
-	{
-		iconset = gtk_icon_set_new_from_pixbuf(pixbuf);
-	
-		image = gtk_image_new_from_icon_set(iconset,
-						    GTK_ICON_SIZE_MENU);
-	}*/
 	
 	gtranslator_application_register_icon (GTR_APP, "open-tran.png",
 					       "open-tran-plugin-icon");
 
 	opentran = gtranslator_open_tran_panel_new(window);
+	gtk_widget_show (opentran);
 
 	gtranslator_window_add_widget (window,
 				       opentran,
@@ -132,8 +112,6 @@
 	g_object_set_data(G_OBJECT(window),
 			  WINDOW_DATA_KEY,
 			  opentran);
-	
-	gtk_widget_show_all(opentran);
 }
 
 static void

Modified: trunk/src/view.c
==============================================================================
--- trunk/src/view.c	(original)
+++ trunk/src/view.c	Mon Sep 22 09:46:58 2008
@@ -809,7 +809,13 @@
 	return cont;
 }
 
-
+/**
+ * gtranslator_view_reload_scheme_color:
+ * @view: a #GtranslatorView
+ *
+ * Reloads the gtksourceview scheme color. Neccessary when the scheme color 
+ * changes.
+ */
 void
 gtranslator_view_reload_scheme_color (GtranslatorView *view)
 {



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