[gtk-mac-integration] Fix some Clang-5 errors
- From: John Ralls <jralls src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-mac-integration] Fix some Clang-5 errors
- Date: Thu, 27 Jun 2013 22:27:27 +0000 (UTC)
commit b8f7a82d09bda62f974c4a7d0be5b30d9f61d82b
Author: John Ralls <jralls ceridwen us>
Date: Thu Jun 27 15:27:18 2013 -0700
Fix some Clang-5 errors
src/cocoa_menu_item.c | 4 ++--
src/cocoa_menu_item.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/cocoa_menu_item.c b/src/cocoa_menu_item.c
index 13be754..8068039 100644
--- a/src/cocoa_menu_item.c
+++ b/src/cocoa_menu_item.c
@@ -237,7 +237,7 @@ cocoa_menu_item_update_accelerator (_GNSMenuItem *cocoa_item,
if (keyval_is_keypad (actual_key))
{
- actual_key = keyval_keypad_nonkeypad_equivalent (actual_key)
+ actual_key = keyval_keypad_nonkeypad_equivalent (actual_key);
if (actual_key == GDK_VoidSymbol)
{
/* GDK_KP_Separator */
@@ -550,7 +550,7 @@ cocoa_menu_item_add_item (NSMenu* cocoa_menu, GtkWidget* menu_item, int index)
else
{
const gchar* text = get_menu_label_text (menu_item, &label);
- NSString *title = [NSString stringWithUTF8String: (text ? text : @"")];
+ NSString *title = [NSString stringWithUTF8String: (text ? text : "")];
GClosure *menu_action =
g_cclosure_new_object_swap (G_CALLBACK (gtk_menu_item_activate),
diff --git a/src/cocoa_menu_item.h b/src/cocoa_menu_item.h
index 78fc249..3cb8adc 100644
--- a/src/cocoa_menu_item.h
+++ b/src/cocoa_menu_item.h
@@ -40,4 +40,4 @@ void cocoa_menu_item_add_submenu (GtkMenuShell *menu_shell,
gboolean debug);
-#endif __COCOA_MENU_ITEM_H__
+#endif /* __COCOA_MENU_ITEM_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]