00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00030 #ifndef HOME_SELECT_APPLETS_DIALOG_H
00031 #define HOME_SELECT_APPLETS_DIALOG_H
00032
00033 #include "hildon-base-lib/hildon-base-dnotify.h"
00034 #include <gtk/gtk.h>
00035
00036 #include <libosso.h>
00037
00038 G_BEGIN_DECLS
00039
00040
00041 #define _(a) gettext(a)
00042
00043
00044 #define HOME_APPLETS_MAXIMUM_VISIBLE_ROWS 8
00045 #define HOME_APPLETS_MARGIN_DEFAULT 6
00046
00047 #define HOME_APPLETS_DIALOG_HEIGHT (HOME_APPLETS_MAXIMUM_VISIBLE_ROWS * 30 + 2 * HOME_APPLETS_MARGIN_DEFAULT)
00048 #define HOME_APPLETS_DESKTOP_SUFFIX ".desktop"
00049 #define HOME_APPLETS_DESKTOP_DIR "/usr/share/applications/hildon-home/"
00050 #define HOME_APPLETS_DESKTOP_GROUP "Desktop Entry"
00051 #define HOME_APPLETS_DESKTOP_NAME_KEY "Name"
00052 #define HOME_APPLETS_SELECT_TITLE _("home_ti_select_applets")
00053 #define HOME_APPLETS_SELECT_OK _("home_bd_select_applets_ok")
00054 #define HOME_APPLETS_SELECT_CANCEL _("home_bd_select_applets_cancel")
00055
00056
00057
00058 enum {
00059 CHECKBOX_COL = 0,
00060 APPLET_NAME_COL,
00061 DESKTOP_FILE_COL,
00062 APPLETS_LIST_COLUMNS
00063 };
00064
00065 typedef struct {
00066 GList* list_data;
00067 GtkTreeModel* model_data;
00068 } SelectAppletsData;
00069
00070
00071
00072 void show_select_applets_dialog(GList *applets,
00073 GList **added_list,
00074 GList **removed_list);
00075
00076 void select_applets_selected(GtkEventBox *home_event_box,
00077 GtkFixed *home_fixed,
00078 GtkWidget *titlebar_label);
00079
00080 G_END_DECLS
00081
00082 #endif