~midori/midori/cmake-make-dist

« back to all changes in this revision

Viewing changes to src/sokoke.h

  • Committer: Christian Dywan
  • Date: 2008-06-01 21:47:27 UTC
  • Revision ID: git-v1:b511f12b9b4b063610161f2229b94a24a86be0fc
Rename folder 'src' to 'midori'

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 Copyright (C) 2007-2008 Christian Dywan <christian@twotoasts.de>
3
 
 
4
 
 This library is free software; you can redistribute it and/or
5
 
 modify it under the terms of the GNU Lesser General Public
6
 
 License as published by the Free Software Foundation; either
7
 
 version 2.1 of the License, or (at your option) any later version.
8
 
 
9
 
 See the file COPYING for the full license text.
10
 
*/
11
 
 
12
 
#ifndef __SOKOKE_H__
13
 
#define __SOKOKE_H__ 1
14
 
 
15
 
#include <gtk/gtk.h>
16
 
 
17
 
// Many themes need this hack for small toolbars to work
18
 
#define GTK_ICON_SIZE_SMALL_TOOLBAR GTK_ICON_SIZE_BUTTON
19
 
 
20
 
gchar*
21
 
sokoke_magic_uri               (const gchar* uri,
22
 
                                const gchar* search);
23
 
 
24
 
void
25
 
sokoke_entry_setup_completion  (GtkEntry* entry);
26
 
 
27
 
void
28
 
sokoke_entry_append_completion (GtkEntry*    entry,
29
 
                                const gchar* text);
30
 
 
31
 
typedef enum {
32
 
    SOKOKE_MENU_POSITION_CURSOR = 0,
33
 
    SOKOKE_MENU_POSITION_LEFT,
34
 
    SOKOKE_MENU_POSITION_RIGHT
35
 
} SokokeMenuPos;
36
 
 
37
 
void
38
 
sokoke_combo_box_add_strings (GtkComboBox* combobox,
39
 
                              const gchar* label_first, ...);
40
 
 
41
 
void
42
 
sokoke_widget_set_visible (GtkWidget* widget,
43
 
                           gboolean   visible);
44
 
 
45
 
void
46
 
sokoke_container_show_children (GtkContainer* container);
47
 
 
48
 
void
49
 
sokoke_widget_set_tooltip_text (GtkWidget*   widget,
50
 
                                const gchar* text);
51
 
 
52
 
void
53
 
sokoke_tool_item_set_tooltip_text (GtkToolItem* toolitem,
54
 
                                   const gchar* text);
55
 
 
56
 
void
57
 
sokoke_widget_popup (GtkWidget*      widget,
58
 
                     GtkMenu*        menu,
59
 
                     GdkEventButton* event,
60
 
                     SokokeMenuPos   pos);
61
 
 
62
 
GtkWidget*
63
 
sokoke_xfce_header_new (const gchar* icon,
64
 
                        const gchar* title);
65
 
 
66
 
GtkWidget*
67
 
sokoke_superuser_warning_new (void);
68
 
 
69
 
GtkWidget*
70
 
sokoke_hig_frame_new (const gchar* title);
71
 
 
72
 
void
73
 
sokoke_widget_set_pango_font_style (GtkWidget* widget,
74
 
                                    PangoStyle style);
75
 
 
76
 
void
77
 
sokoke_entry_set_default_text(GtkEntry*, const gchar*);
78
 
 
79
 
gchar*
80
 
sokoke_key_file_get_string_default (GKeyFile*    key_file,
81
 
                                    const gchar* group,
82
 
                                    const gchar* key,
83
 
                                    const gchar* default_value,
84
 
                                    GError**     error);
85
 
 
86
 
gint
87
 
sokoke_key_file_get_integer_default (GKeyFile*    key_file,
88
 
                                     const gchar* group,
89
 
                                     const gchar* key,
90
 
                                     const gint   default_value,
91
 
                                     GError**     error);
92
 
 
93
 
gdouble
94
 
sokoke_key_file_get_double_default (GKeyFile*    key_file,
95
 
                                    const gchar* group,
96
 
                                    const gchar* key,
97
 
                                    gdouble      default_value,
98
 
                                    GError**     error);
99
 
 
100
 
gboolean
101
 
sokoke_key_file_get_boolean_default (GKeyFile*    key_file,
102
 
                                     const gchar* group,
103
 
                                     const gchar* key,
104
 
                                     gboolean     default_value,
105
 
                                     GError**     error);
106
 
 
107
 
gboolean
108
 
sokoke_key_file_save_to_file (GKeyFile*    key_file,
109
 
                              const gchar* filename,
110
 
                              GError**     error);
111
 
 
112
 
void
113
 
sokoke_widget_get_text_size (GtkWidget*   widget,
114
 
                             const gchar* text,
115
 
                             gint*        width,
116
 
                             gint*        height);
117
 
 
118
 
#endif /* !__SOKOKE_H__ */