[gtk-mac-integration] Fix mis-encoding of application name.



commit 9b53c59c2348410779133bb84fdf1152e4ef9258
Author: John Ralls <jralls ceridwen us>
Date:   Fri May 4 09:22:37 2018 -0400

    Fix mis-encoding of application name.

 src/gtkosxapplication_quartz.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gtkosxapplication_quartz.c b/src/gtkosxapplication_quartz.c
index d4ba637..11be981 100644
--- a/src/gtkosxapplication_quartz.c
+++ b/src/gtkosxapplication_quartz.c
@@ -250,7 +250,7 @@ create_apple_menu (GtkosxApplication *self, GtkWidget *toplevel)
   /* Translators: This is the Services menu item for the "Apple" menu. */
   NSString *title = [NSString stringWithUTF8String: _("Services")];
   NSMenu *menuServices = [[[NSMenu alloc] initWithTitle: title] autorelease];
-  NSString *appname = get_application_name ();
+  const char *appname = [get_application_name () UTF8String];
   GClosure *hide_closure, *hide_others_closure;
   GtkAccelGroup *accel_group = gtk_accel_group_new ();
   gtk_window_add_accel_group (GTK_WINDOW (toplevel), accel_group);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]