gedit-plugins r439 - in trunk: . plugins/bookmarks
- From: icq svn gnome org
- To: svn-commits-list gnome org
- Subject: gedit-plugins r439 - in trunk: . plugins/bookmarks
- Date: Sun, 1 Feb 2009 22:10:26 +0000 (UTC)
Author: icq
Date: Sun Feb 1 22:10:26 2009
New Revision: 439
URL: http://svn.gnome.org/viewvc/gedit-plugins?rev=439&view=rev
Log:
2009-02-01 Ignacio Casal Quinteiro <nacho resa gmail com>
* plugins/bookmarks/gedit-bookmarks-plugin.c:
Use slice instead of g_new.
Modified:
trunk/ChangeLog
trunk/plugins/bookmarks/gedit-bookmarks-plugin.c
Modified: trunk/plugins/bookmarks/gedit-bookmarks-plugin.c
==============================================================================
--- trunk/plugins/bookmarks/gedit-bookmarks-plugin.c (original)
+++ trunk/plugins/bookmarks/gedit-bookmarks-plugin.c Sun Feb 1 22:10:26 2009
@@ -119,6 +119,12 @@
g_slice_free (WindowData, data);
}
+static void
+free_insert_data (InsertData *data)
+{
+ g_slice_free (InsertData, data);
+}
+
static GtkActionEntry const action_entries[] = {
{"ToggleBookmark", NULL, N_("Toggle Bookmark"), "<Control><Alt>B",
N_("Toggle bookmark status of the current line"),
@@ -251,14 +257,14 @@
G_CALLBACK (on_delete_range),
NULL);
- data = g_new (InsertData, 1);
+ data = g_slice_new (InsertData);
data->new_user_action = FALSE;
data->previous_line = -1;
g_object_set_data_full (G_OBJECT (buffer),
INSERT_DATA_KEY,
data,
- (GDestroyNotify) g_free);
+ (GDestroyNotify) free_insert_data);
g_signal_connect (buffer,
"insert-text",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]