1 /* 2 * fm-app-menu-view.h 3 * 4 * Copyright 2010 - 2012 Hong Jen Yee (PCMan) <pcman.tw@gmail.com> 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or 9 * (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 19 * MA 02110-1301, USA. 20 */ 21 22 23 #ifndef __FM_APP_MENU_VIEW_H__ 24 #define __FM_APP_MENU_VIEW_H__ 25 26 #include <gtk/gtk.h> 27 #include "fm-path.h" 28 29 G_BEGIN_DECLS 30 31 GtkTreeView* fm_app_menu_view_new(void); 32 33 GAppInfo* fm_app_menu_view_dup_selected_app(GtkTreeView* view); 34 35 char* fm_app_menu_view_dup_selected_app_desktop_id(GtkTreeView* view); 36 37 char* fm_app_menu_view_dup_selected_app_desktop_file_path(GtkTreeView* view); 38 39 FmPath * fm_app_menu_view_dup_selected_app_desktop_path(GtkTreeView* view); 40 41 gboolean fm_app_menu_view_is_app_selected(GtkTreeView* view); 42 43 gboolean fm_app_menu_view_is_item_app(GtkTreeView* view, GtkTreeIter* it); 44 45 G_END_DECLS 46 47 #endif /* __FM_APP_MENU_VIEW_H__ */ 48