X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fhildon2%2Fmodest-hildon2-window.h;h=2233ccc8b042fff05a551ade12c9be95f5c6983d;hb=f1de0a0bda7f91db62329d11e2df31bea2ea68b4;hp=51a52afdf69d58033177d84f37c767e7291b4abe;hpb=9de4a682c6c45422a713c5e3f53fcaed2618b3fb;p=modest diff --git a/src/hildon2/modest-hildon2-window.h b/src/hildon2/modest-hildon2-window.h index 51a52af..2233ccc 100644 --- a/src/hildon2/modest-hildon2-window.h +++ b/src/hildon2/modest-hildon2-window.h @@ -56,14 +56,16 @@ struct _ModestHildon2WindowClass { ModestWindowClass parent_class; void (*pack_toolbar_func) (ModestHildon2Window *self, GtkPackType pack_type, GtkWidget *toolbar); + void (*edit_mode_changed) (ModestHildon2Window *self, gint edit_mode, gboolean enabled); }; -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)) +/* edit mode id for no edit mode */ +#define MODEST_HILDON2_WINDOW_EDIT_MODE_NONE -1 + /** * modest_hildon2_window_get_type: * @@ -73,38 +75,6 @@ typedef gboolean (*ModestHildon2EditModeCallback) (ModestHildon2Window *self); */ GType modest_hildon2_window_get_type (void) G_GNUC_CONST; -/** - * modest_hildon2_window_add_to_menu: - * @self: a #ModestHildon2Window - * @label: the label of the button added to menu - * @callback: a #ModestHildon2AppMenuCallback - * @dimming_callback: a #ModestDimmingCallback or %NULL for no dimming rule - * - * creates a button in the window #HildonAppMenu, with label @label. - * It will call @callback, and will configure @dimming_callback for - * dimming. - */ -void -modest_hildon2_window_add_to_menu (ModestHildon2Window *self, - gchar *label, - const gchar *accelerator, - ModestHildon2AppMenuCallback callback, - ModestDimmingCallback dimming_callback); - -/** - * modest_hildon2_window_add_button_to_menu: - * @self: a #ModestHildon2Window - * @button: a #GtkButton - * @dimming_callback: a #ModestDimmingCallback or %NULL for no dimming rule - * - * adds a previously configured button @button to the window #HildonAppMenu. - * It will configure @dimming_callback for dimming. User should previously - * attach the proper signal handler for @button. - */ -void -modest_hildon2_window_add_button_to_menu (ModestHildon2Window *self, - GtkButton *button, - ModestDimmingCallback dimming_callback); /** * modest_hildon2_window_pack_toolbar: