| 1 |
/* |
| 2 |
* This file is a part of hildon |
| 3 |
* |
| 4 |
* Copyright (C) 2005, 2006 Nokia Corporation, all rights reserved. |
| 5 |
* |
| 6 |
* Contact: Rodrigo Novo <rodrigo.novo@nokia.com> |
| 7 |
* |
| 8 |
* This library is free software; you can redistribute it and/or |
| 9 |
* modify it under the terms of the GNU Lesser General Public License |
| 10 |
* as published by the Free Software Foundation; version 2.1 of |
| 11 |
* the License, or (at your option) any later version. |
| 12 |
* |
| 13 |
* This library is distributed in the hope that it will be useful, but |
| 14 |
* WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 |
* Lesser General Public License for more details. |
| 17 |
* |
| 18 |
* You should have received a copy of the GNU Lesser General Public |
| 19 |
* License along with this library; if not, write to the Free Software |
| 20 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA |
| 21 |
* 02110-1301 USA |
| 22 |
* |
| 23 |
*/ |
| 24 |
|
| 25 |
#ifndef __HILDON_HELPER_H__ |
| 26 |
#define __HILDON_HELPER_H__ |
| 27 |
|
| 28 |
#include <gdk/gdkkeysyms.h> |
| 29 |
#include <gtk/gtk.h> |
| 30 |
|
| 31 |
#include "hildon-defines.h" |
| 32 |
|
| 33 |
G_BEGIN_DECLS |
| 34 |
|
| 35 |
gulong |
| 36 |
hildon_helper_set_logical_font (GtkWidget *widget, |
| 37 |
const gchar *logicalfontname); |
| 38 |
|
| 39 |
gulong |
| 40 |
hildon_helper_set_logical_color (GtkWidget *widget, |
| 41 |
GtkRcFlags rcflags, |
| 42 |
GtkStateType state, |
| 43 |
const gchar *logicalcolorname); |
| 44 |
gboolean |
| 45 |
hildon_helper_event_button_is_finger (GdkEventButton *event); |
| 46 |
|
| 47 |
#ifndef HILDON_DISABLE_DEPRECATED |
| 48 |
void |
| 49 |
hildon_helper_set_insensitive_message (GtkWidget *widget, |
| 50 |
const gchar *message); |
| 51 |
|
| 52 |
void |
| 53 |
hildon_helper_set_insensitive_messagef (GtkWidget *widget, |
| 54 |
const gchar *format, |
| 55 |
...); |
| 56 |
#endif |
| 57 |
|
| 58 |
void |
| 59 |
hildon_helper_set_thumb_scrollbar (GtkScrolledWindow *win, |
| 60 |
gboolean thumb); |
| 61 |
|
| 62 |
gchar * |
| 63 |
hildon_format_file_size_for_display (goffset size); |
| 64 |
|
| 65 |
const gchar * |
| 66 |
hildon_helper_utf8_strstrcasedecomp_needle_stripped (const gchar *haystack, |
| 67 |
const gunichar *nuni); |
| 68 |
|
| 69 |
gunichar * |
| 70 |
hildon_helper_strip_string (const gchar *string); |
| 71 |
|
| 72 |
gchar * |
| 73 |
hildon_helper_normalize_string (const gchar *string); |
| 74 |
|
| 75 |
gchar * |
| 76 |
hildon_helper_smart_match (const gchar *haystack, |
| 77 |
const gchar *needle); |
| 78 |
|
| 79 |
G_END_DECLS |
| 80 |
|
| 81 |
#endif /* __HILDON_HELPER_H__ */ |