X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fhildon2%2Fmodest-hildon2-window.h;h=170a756d0ccda2a38f7fcff602b3643871df111c;hp=837075fec86c3b7ec047bc458d305dca656d910a;hb=c166d31d376325f89ba36dae8123103a946a5fae;hpb=bf2cf2ca01e09b01ffeb7e07e15fd8efe80f8c0a diff --git a/src/hildon2/modest-hildon2-window.h b/src/hildon2/modest-hildon2-window.h index 837075f..170a756 100644 --- a/src/hildon2/modest-hildon2-window.h +++ b/src/hildon2/modest-hildon2-window.h @@ -59,8 +59,10 @@ struct _ModestHildon2WindowClass { }; typedef void (*ModestHildon2AppMenuCallback) (GObject *control, gpointer userdata); +typedef gboolean (*ModestHildon2EditModeCallback) (ModestHildon2Window *self); #define APP_MENU_CALLBACK(x) ((ModestHildon2AppMenuCallback) (x)) +#define EDIT_MODE_CALLBACK(x) ((ModestHildon2EditModeCallback) (x)) /** * modest_hildon2_window_get_type: @@ -103,7 +105,29 @@ modest_hildon2_window_add_button_to_menu (ModestHildon2Window *self, GtkButton *button, ModestDimmingCallback dimming_callback); - +/** + * modest_hildon2_window_pack_toolbar: + * @self: a #ModestHildon2Window + * @pack_type: a #GtkPackType + * @toolbar: a toolbar widget + * + * packs a toolbar (widget @toolbar) in @self with @pack_type + */ +void modest_hildon2_window_pack_toolbar (ModestHildon2Window *self, + GtkPackType pack_type, + GtkWidget *toolbar); + +void modest_hildon2_window_register_edit_mode (ModestHildon2Window *self, + gint edit_mode_id, + const gchar *description, + const gchar *button, + GtkTreeView *tree_view, + GtkSelectionMode mode, + ModestHildon2EditModeCallback action); + +void modest_hildon2_window_set_edit_mode (ModestHildon2Window *self, + gint edit_mode_id); +void modest_hildon2_window_unset_edit_mode (ModestHildon2Window *self); G_END_DECLS