Reindent.

2006-07-19  Richard Hult  <richard@imendio.com>

	* gtk/gtkdnd-quartz.c (register_types): Reindent.

	* gtk/gtkclipboard-quartz.c (gtk_clipboard_set_contents): Add
	autorelease pool.
This commit is contained in:
Richard Hult 2006-07-19 18:55:27 +00:00 committed by Richard Hult
parent d3973cb865
commit bbc45a6230
4 changed files with 21 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2006-07-19 Richard Hult <richard@imendio.com>
* gtk/gtkdnd-quartz.c (register_types): Reindent.
* gtk/gtkclipboard-quartz.c (gtk_clipboard_set_contents): Add
autorelease pool.
2006-07-19 Richard Hult <richard@imendio.com>
* gdk/quartz/GdkQuartzWindow.c

View File

@ -1,3 +1,10 @@
2006-07-19 Richard Hult <richard@imendio.com>
* gtk/gtkdnd-quartz.c (register_types): Reindent.
* gtk/gtkclipboard-quartz.c (gtk_clipboard_set_contents): Add
autorelease pool.
2006-07-19 Richard Hult <richard@imendio.com>
* gdk/quartz/GdkQuartzWindow.c

View File

@ -371,8 +371,12 @@ gtk_clipboard_set_contents (GtkClipboard *clipboard,
{
GtkClipboardOwner *owner;
NSArray *types;
NSAutoreleasePool *pool;
pool = [[NSAutoreleasePool alloc] init];
owner = [[GtkClipboardOwner alloc] initWithClipboard:clipboard];
types = _gtk_quartz_target_entries_to_pasteboard_types (targets, n_targets);
clipboard->user_data = user_data;
@ -384,6 +388,8 @@ gtk_clipboard_set_contents (GtkClipboard *clipboard,
[clipboard->pasteboard declareTypes:types owner:owner];
[pool release];
return true;
}

View File

@ -417,7 +417,7 @@ register_types (GtkWidget *widget, GtkDragDestSite *site)
if (!nswindow)
return;
pool= [[NSAutoreleasePool alloc] init];
pool = [[NSAutoreleasePool alloc] init];
types = _gtk_quartz_target_list_to_pasteboard_types (site->target_list);
[nswindow registerForDraggedTypes:types];