32 #import "CoreGTK/CGTKRecentChooserDialog.h"
36 -(id)initForManagerWithTitle:(NSString *)title andParent:(
CGTKWindow *)parent andManager:(GtkRecentManager*)manager andButtonTextResponseDictionary:(NSDictionary *)buttonTextDict
38 self = [
super initWithGObject:(GObject *)gtk_recent_chooser_dialog_new_for_manager([title UTF8String], [parent
WINDOW], manager, NULL, NULL)];
44 for(NSString *text in buttonTextDict)
46 wrapper = [buttonTextDict objectForKey:text];
48 [
self addButtonWithButtonText:text andResponseId:wrapper.gintValue];
55 -(id)initWithTitle:(NSString *)title andParent:(
CGTKWindow *)parent andButtonTextResponseDictionary:(NSDictionary *)buttonTextDict
57 self = [
super initWithGObject:(GObject *)gtk_recent_chooser_dialog_new([title UTF8String], [parent
WINDOW], NULL, NULL)];
63 for(NSString *text in buttonTextDict)
65 wrapper = [buttonTextDict objectForKey:text];
67 [
self addButtonWithButtonText:text andResponseId:wrapper.gintValue];
76 return GTK_RECENT_CHOOSER_DIALOG([
self GOBJECT]);
GtkRecentChooserDialog * RECENTCHOOSERDIALOG()