diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2012-06-15 15:03:01 +0200 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2012-06-15 15:03:01 +0200 |
commit | ac1a11bdf1df0efb426654cfe6b7ad4d5deb3815 (patch) | |
tree | 02c006eeb7e5bb5668c0dc274f92d89f84680d61 /libmessaging-menu | |
parent | 78edb4ee5c8a585986fa092ee4ec81fad442f64f (diff) | |
download | ayatana-indicator-messages-ac1a11bdf1df0efb426654cfe6b7ad4d5deb3815.tar.gz ayatana-indicator-messages-ac1a11bdf1df0efb426654cfe6b7ad4d5deb3815.tar.bz2 ayatana-indicator-messages-ac1a11bdf1df0efb426654cfe6b7ad4d5deb3815.zip |
Check parameter types in public API
Diffstat (limited to 'libmessaging-menu')
-rw-r--r-- | libmessaging-menu/messaging-menu.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libmessaging-menu/messaging-menu.c b/libmessaging-menu/messaging-menu.c index 5b786af..6d2eab5 100644 --- a/libmessaging-menu/messaging-menu.c +++ b/libmessaging-menu/messaging-menu.c @@ -265,6 +265,8 @@ messaging_menu_app_new (const gchar *desktop_id) void messaging_menu_app_register (MessagingMenuApp *app) { + g_return_if_fail (MESSAGING_MENU_IS_APP (app)); + app->registered = TRUE; /* state will be synced right after connecting to the service */ @@ -290,6 +292,8 @@ messaging_menu_app_register (MessagingMenuApp *app) void messaging_menu_app_unregister (MessagingMenuApp *app) { + g_return_if_fail (MESSAGING_MENU_IS_APP (app)); + app->registered = FALSE; /* state will be synced right after connecting to the service */ |