forked from AuroraMiddleware/gtk
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:
parent
d3973cb865
commit
bbc45a6230
@ -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
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user