X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fhildon2%2Fmodest-maemo-utils.h;h=f40cf9044f64770574a7cf716bfe2106b575f2bb;hb=fd067def87340f018ddaa4a10a81ce2d717906d3;hp=959227fbb32c192bb0eb9dc05df57198642c5c76;hpb=def18d95098bb627d13083011140685fa3e2385b;p=modest diff --git a/src/hildon2/modest-maemo-utils.h b/src/hildon2/modest-maemo-utils.h index 959227f..f40cf90 100644 --- a/src/hildon2/modest-maemo-utils.h +++ b/src/hildon2/modest-maemo-utils.h @@ -38,6 +38,7 @@ #include "widgets/modest-global-settings-dialog.h" #include "widgets/modest-validating-entry.h" #include +#include #define MODEST_MAEMO_UTILS_MYDOCS_ENV "MYDOCSDIR" #define MODEST_MAEMO_UTILS_DEFAULT_IMAGE_FOLDER ".images" @@ -75,16 +76,6 @@ void modest_maemo_utils_setup_images_filechooser (GtkFileChooser *chooser); osso_context_t *modest_maemo_utils_get_osso_context (void); /** - * modest_maemo_set_thumbable_scrollbar: - * @win: a scrollable window - * @thumbable: set it to thumbable (TRUE) or small (FALSE) - * - * changes the thumbability of scrollbars in a scrollable window - */ -void modest_maemo_set_thumbable_scrollbar (GtkScrolledWindow *win, gboolean thumbable); - - -/** * modest_maemo_get_osso_context: * * retrieve the osso context for this application @@ -158,4 +149,34 @@ gboolean modest_maemo_utils_select_attachments (GtkWindow *window, TnyList *at gboolean modest_maemo_utils_in_usb_mode (); #endif +/** + * modest_maemo_utils_scroll_pannable: + * @pannable: a #HildonPannableArea + * @horizontal: the amount to scroll in horizontal direction + * @vertical: the amount to scroll in vertical direction + * + * Performs some scrolling over a pannable area. The amount of + * scrolling is expressed in step_increments of the pannable area + * GtkAdjustments + **/ +void +modest_maemo_utils_scroll_pannable(HildonPannableArea *pannable, + gint horizontal, + gint vertical); + +/** + * modest_heartbeat_add: + * @function: function to call + * @userdata: data to pass to @function. + * + * Adds a function to be called when heartbeat is called. If the + * function returns FALSE it is automatically removed from the + * list of event sources and will not be called again. + * + * Returns: the ID (greater than 0) of the event source + */ +guint +modest_heartbeat_add (GSourceFunc function, + gpointer userdata); + #endif /*__MODEST_MAEMO_UTILS_H__*/