/* * Copyright (C) 2011 Nick Schermer * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #ifndef __XFCE_APPFINDER_PRIVATE_H__ #define __XFCE_APPFINDER_PRIVATE_H__ #define ITER_GET_DATA(iter) (((GSList *) (iter)->user_data)->data) #define ITER_INIT(iter, iter_stamp, iter_data) \ G_STMT_START { \ (iter).stamp = iter_stamp; \ (iter).user_data = iter_data; \ } G_STMT_END #define IS_STRING(str) ((str) != NULL && *(str) != '\0') #ifdef DEBUG #define APPFINDER_DEBUG(...) g_print ("xfce4-appfinder-dbg: "); g_print (__VA_ARGS__); g_print ("\n") #else #define APPFINDER_DEBUG(...) G_STMT_START{ (void)0; }G_STMT_END #endif #ifdef DEBUG void appfinder_refcount_debug_add (GObject *object, const gchar *description); #else #define appfinder_refcount_debug_add(object, description) G_STMT_START{ (void)0; }G_STMT_END #endif #ifdef DEBUG #define appfinder_assert(expr) g_assert (expr) #define appfinder_assert_not_reached() g_assert_not_reached () #define appfinder_return_if_fail(expr) g_return_if_fail (expr) #define appfinder_return_val_if_fail(expr,val) g_return_val_if_fail (expr, val) #else #define appfinder_assert(expr) G_STMT_START{ (void)0; }G_STMT_END #define appfinder_assert_not_reached() G_STMT_START{ (void)0; }G_STMT_END #define appfinder_return_if_fail(expr) G_STMT_START{ (void)0; }G_STMT_END #define appfinder_return_val_if_fail(expr,val) G_STMT_START{ (void)0; }G_STMT_END #endif #define XFCE_APPFINDER_ICON_NAME_BOOKMARK_NEW "bookmark-new-symbolic" #define XFCE_APPFINDER_ICON_NAME_CLEAR "edit-clear-symbolic" #define XFCE_APPFINDER_ICON_NAME_DELETE "edit-delete-symbolic" #define XFCE_APPFINDER_ICON_NAME_DIALOG_ERROR "dialog-error-symbolic" #define XFCE_APPFINDER_ICON_NAME_EDIT "document-properties-symbolic" #define XFCE_APPFINDER_ICON_NAME_EXECUTE "system-run-symbolic" #define XFCE_APPFINDER_ICON_NAME_FIND "edit-find-symbolic" #define XFCE_APPFINDER_ICON_NAME_GO_DOWN "go-down-symbolic" #define XFCE_APPFINDER_ICON_NAME_GO_UP "go-up-symbolic" #define XFCE_APPFINDER_ICON_NAME_PREFERENCES "preferences-system-symbolic" #define XFCE_APPFINDER_ICON_NAME_REVERT "document-revert-symbolic" #define XFCE_APPFINDER_ICON_NAME_REMOVE "list-remove-symbolic" void appfinder_window_new (const gchar *startup_id, gboolean expanded); #endif /* !__XFCE_APPFINDER_PRIVATE_H__ */