eog r4830 - in trunk: . src



Author: friemann
Date: Sat Oct 18 15:27:26 2008
New Revision: 4830
URL: http://svn.gnome.org/viewvc/eog?rev=4830&view=rev

Log:
2008-10-18  Felix Riemann  <friemann svn gnome org>

	* src/eog-print.c: (eog_print_end_print),
	(eog_print_operation_new):
	* src/eog-save-as-dialog-helper.c: (destroy_data_cb),
	(eog_save_as_dialog_new):
	Use GSlice for even more internal structures.


Modified:
   trunk/ChangeLog
   trunk/src/eog-print.c
   trunk/src/eog-save-as-dialog-helper.c

Modified: trunk/src/eog-print.c
==============================================================================
--- trunk/src/eog-print.c	(original)
+++ trunk/src/eog-print.c	Sat Oct 18 15:27:26 2008
@@ -151,7 +151,7 @@
 	eog_debug (DEBUG_PRINTING);
 	
 	g_object_unref (data->image);
-	g_free (data);
+	g_slice_free (EogPrintData, data);
 }
 
 GtkPrintOperation *
@@ -166,7 +166,7 @@
 
 	print = gtk_print_operation_new ();
 
-	data = g_new0 (EogPrintData, 1);
+	data = g_slice_new0 (EogPrintData);
 
 	data->left_margin = 0;
 	data->top_margin = 0;

Modified: trunk/src/eog-save-as-dialog-helper.c
==============================================================================
--- trunk/src/eog-save-as-dialog-helper.c	(original)
+++ trunk/src/eog-save-as-dialog-helper.c	Sat Oct 18 15:27:26 2008
@@ -176,7 +176,7 @@
 	if (sd->idle_id != 0)
 		g_source_remove (sd->idle_id);
 
-	g_free (sd);
+	g_slice_free (SaveAsData, sd);
 }
 
 static void
@@ -225,7 +225,7 @@
 	gtk_window_set_transient_for (GTK_WINDOW (dlg), GTK_WINDOW (main));
 	gtk_window_set_position (GTK_WINDOW (dlg), GTK_WIN_POS_CENTER_ON_PARENT);
 
-	data = g_new0 (SaveAsData, 1);
+	data = g_slice_new0 (SaveAsData);
 	/* init widget references */
 	data->dir_chooser = GTK_WIDGET (gtk_builder_get_object (xml,
 								"dir_chooser"));



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