- (void) activate:(id) sender
{
UNUSED_PARAMETER(sender);
- g_idle_add (idle_call_activate, gtk_menu_item);
+ // Hot Fix. Increase Priority.
+ g_idle_add_full (G_PRIORITY_HIGH_IDLE, idle_call_activate, gtk_menu_item, NULL);
+// g_idle_add (idle_call_activate, gtk_menu_item);
}
@end
modifiers |= NSControlKeyMask;
}
- /* gdk/quartz maps Command to Meta (XXX check this - it may move to SUPER at some point) */
+ /* our modified gdk/quartz maps Command to Mod2 */
- if (key->accel_mods & GDK_META_MASK) {
+ if (key->accel_mods & GDK_MOD2_MASK) {
modifiers |= NSCommandKeyMask;
}
}
[menuitem release];
[_app_menu addItem: [NSMenuItem separatorItem]];
menuitem = [[NSMenuItem alloc] initWithTitle:@"Hide"
- action:@selector(hide:) keyEquivalent:@""];
+ action:@selector(hide:) keyEquivalent:@"h"];
[menuitem setTarget: NSApp];
[_app_menu addItem: menuitem];
[menuitem release];
@end
-@interface GtkApplicationDelegate : NSObject
+@interface GtkApplicationDelegate : NSObject
-(BOOL) application:(NSApplication*) app openFile:(NSString*) file;
- (NSApplicationTerminateReply) applicationShouldTerminate:(NSApplication *) app;
+- (void) startApp;
@end
@implementation GtkApplicationDelegate
[[NSApplication sharedApplication] activateIgnoringOtherApps : YES];
}
+extern "C" void
+gtk_application_hide ()
+{
+ [NSApp performSelector:@selector(hide:)];
+}
+
extern "C" void
gtk_application_cleanup()
{