Mercurial > geeqie
comparison src/ui_misc.h @ 1448:89dedc61b1bd
gint -> gboolean.
author | zas_ |
---|---|
date | Sun, 15 Mar 2009 20:16:20 +0000 |
parents | 50ae02a4a675 |
children | 956aab097ea7 |
comparison
equal
deleted
inserted
replaced
1447:a10d70ae85e9 | 1448:89dedc61b1bd |
---|---|
51 * but GTK's stock buttons ignore this (hard coded to 2), we do it too for consistency | 51 * but GTK's stock buttons ignore this (hard coded to 2), we do it too for consistency |
52 */ | 52 */ |
53 #define PREF_PAD_BUTTON_ICON_GAP 2 | 53 #define PREF_PAD_BUTTON_ICON_GAP 2 |
54 | 54 |
55 | 55 |
56 GtkWidget *pref_box_new(GtkWidget *parent_box, gint fill, | 56 GtkWidget *pref_box_new(GtkWidget *parent_box, gboolean fill, |
57 GtkOrientation orientation, gint padding); | 57 GtkOrientation orientation, gboolean padding); |
58 | 58 |
59 GtkWidget *pref_group_new(GtkWidget *parent_box, gint fill, | 59 GtkWidget *pref_group_new(GtkWidget *parent_box, gboolean fill, |
60 const gchar *text, GtkOrientation orientation); | 60 const gchar *text, GtkOrientation orientation); |
61 GtkWidget *pref_group_parent(GtkWidget *child); | 61 GtkWidget *pref_group_parent(GtkWidget *child); |
62 | 62 |
63 GtkWidget *pref_frame_new(GtkWidget *parent_box, gint fill, | 63 GtkWidget *pref_frame_new(GtkWidget *parent_box, gboolean fill, |
64 const gchar *text, | 64 const gchar *text, |
65 GtkOrientation orientation, gint padding); | 65 GtkOrientation orientation, gboolean padding); |
66 | 66 |
67 GtkWidget *pref_spacer(GtkWidget *parent_box, gint padding); | 67 GtkWidget *pref_spacer(GtkWidget *parent_box, gboolean padding); |
68 GtkWidget *pref_line(GtkWidget *parent_box, gint padding); | 68 GtkWidget *pref_line(GtkWidget *parent_box, gboolean padding); |
69 | 69 |
70 GtkWidget *pref_label_new(GtkWidget *parent_box, const gchar *text); | 70 GtkWidget *pref_label_new(GtkWidget *parent_box, const gchar *text); |
71 GtkWidget *pref_label_new_mnemonic(GtkWidget *parent_box, const gchar *text, GtkWidget *widget); | 71 GtkWidget *pref_label_new_mnemonic(GtkWidget *parent_box, const gchar *text, GtkWidget *widget); |
72 void pref_label_bold(GtkWidget *label, gint bold, gint increase_size); | 72 void pref_label_bold(GtkWidget *label, gboolean bold, gboolean increase_size); |
73 | 73 |
74 GtkWidget *pref_button_new(GtkWidget *parent_box, const gchar *stock_id, | 74 GtkWidget *pref_button_new(GtkWidget *parent_box, const gchar *stock_id, |
75 const gchar *text, gint hide_stock_text, | 75 const gchar *text, gboolean hide_stock_text, |
76 GCallback func, gpointer data); | 76 GCallback func, gpointer data); |
77 | 77 |
78 GtkWidget *pref_checkbox_new(GtkWidget *parent_box, const gchar *text, gint active, | 78 GtkWidget *pref_checkbox_new(GtkWidget *parent_box, const gchar *text, gboolean active, |
79 GCallback func, gpointer data); | 79 GCallback func, gpointer data); |
80 GtkWidget *pref_checkbox_new_mnemonic(GtkWidget *parent_box, const gchar *text, gint active, | 80 GtkWidget *pref_checkbox_new_mnemonic(GtkWidget *parent_box, const gchar *text, gboolean active, |
81 GCallback func, gpointer data); | 81 GCallback func, gpointer data); |
82 | 82 |
83 GtkWidget *pref_checkbox_new_int(GtkWidget *parent_box, const gchar *text, gint active, | 83 GtkWidget *pref_checkbox_new_int(GtkWidget *parent_box, const gchar *text, gboolean active, |
84 gint *result); | 84 gboolean *result); |
85 | 85 |
86 void pref_checkbox_link_sensitivity(GtkWidget *button, GtkWidget *widget); | 86 void pref_checkbox_link_sensitivity(GtkWidget *button, GtkWidget *widget); |
87 void pref_checkbox_link_sensitivity_swap(GtkWidget *button, GtkWidget *widget); | 87 void pref_checkbox_link_sensitivity_swap(GtkWidget *button, GtkWidget *widget); |
88 | 88 |
89 GtkWidget *pref_radiobutton_new(GtkWidget *parent_box, GtkWidget *sibling, | 89 GtkWidget *pref_radiobutton_new(GtkWidget *parent_box, GtkWidget *sibling, |
90 const gchar *text, gint active, | 90 const gchar *text, gboolean active, |
91 GCallback func, gpointer data); | 91 GCallback func, gpointer data); |
92 GtkWidget *pref_radiobutton_new_mnemonic(GtkWidget *parent_box, GtkWidget *sibling, | 92 GtkWidget *pref_radiobutton_new_mnemonic(GtkWidget *parent_box, GtkWidget *sibling, |
93 const gchar *text, gint active, | 93 const gchar *text, gboolean active, |
94 GCallback func, gpointer data); | 94 GCallback func, gpointer data); |
95 | 95 |
96 GtkWidget *pref_radiobutton_new_int(GtkWidget *parent_box, GtkWidget *sibling, | 96 GtkWidget *pref_radiobutton_new_int(GtkWidget *parent_box, GtkWidget *sibling, |
97 const gchar *text, gint active, | 97 const gchar *text, gboolean active, |
98 gint *result, gint value, | 98 gboolean *result, gboolean value, |
99 GCallback func, gpointer data); | 99 GCallback func, gpointer data); |
100 | 100 |
101 GtkWidget *pref_spin_new(GtkWidget *parent_box, const gchar *text, const gchar *suffix, | 101 GtkWidget *pref_spin_new(GtkWidget *parent_box, const gchar *text, const gchar *suffix, |
102 gdouble min, gdouble max, gdouble step, gint digits, | 102 gdouble min, gdouble max, gdouble step, gint digits, |
103 gdouble value, | 103 gdouble value, |
116 void pref_signal_block_data(GtkWidget *widget, gpointer data); | 116 void pref_signal_block_data(GtkWidget *widget, gpointer data); |
117 void pref_signal_unblock_data(GtkWidget *widget, gpointer data); | 117 void pref_signal_unblock_data(GtkWidget *widget, gpointer data); |
118 | 118 |
119 | 119 |
120 GtkWidget *pref_table_new(GtkWidget *parent_box, gint columns, gint rows, | 120 GtkWidget *pref_table_new(GtkWidget *parent_box, gint columns, gint rows, |
121 gint homogenious, gint fill); | 121 gboolean homegeneous, gboolean fill); |
122 | 122 |
123 GtkWidget *pref_table_box(GtkWidget *table, gint column, gint row, | 123 GtkWidget *pref_table_box(GtkWidget *table, gint column, gint row, |
124 GtkOrientation orientation, const gchar *text); | 124 GtkOrientation orientation, const gchar *text); |
125 | 125 |
126 GtkWidget *pref_table_label(GtkWidget *table, gint column, gint row, | 126 GtkWidget *pref_table_label(GtkWidget *table, gint column, gint row, |
127 const gchar *text, gfloat alignment); | 127 const gchar *text, gfloat alignment); |
128 | 128 |
129 GtkWidget *pref_table_button(GtkWidget *table, gint column, gint row, | 129 GtkWidget *pref_table_button(GtkWidget *table, gint column, gint row, |
130 const gchar *stock_id, const gchar *text, gint hide_stock_text, | 130 const gchar *stock_id, const gchar *text, gboolean hide_stock_text, |
131 GCallback func, gpointer data); | 131 GCallback func, gpointer data); |
132 | 132 |
133 GtkWidget *pref_table_spin(GtkWidget *table, gint column, gint row, | 133 GtkWidget *pref_table_spin(GtkWidget *table, gint column, gint row, |
134 const gchar *text, const gchar *suffix, | 134 const gchar *text, const gchar *suffix, |
135 gdouble min, gdouble max, gdouble step, gint digits, | 135 gdouble min, gdouble max, gdouble step, gint digits, |
137 GCallback func, gpointer data); | 137 GCallback func, gpointer data); |
138 | 138 |
139 | 139 |
140 GtkWidget *pref_toolbar_new(GtkWidget *parent_box, GtkToolbarStyle style); | 140 GtkWidget *pref_toolbar_new(GtkWidget *parent_box, GtkToolbarStyle style); |
141 GtkWidget *pref_toolbar_button(GtkWidget *toolbar, | 141 GtkWidget *pref_toolbar_button(GtkWidget *toolbar, |
142 const gchar *stock_id, const gchar *label, gint toggle, | 142 const gchar *stock_id, const gchar *label, gboolean toggle, |
143 const gchar *description, | 143 const gchar *description, |
144 GCallback func, gpointer data); | 144 GCallback func, gpointer data); |
145 void pref_toolbar_button_set_icon(GtkWidget *button, GtkWidget *widget, const gchar *stock_id); | 145 void pref_toolbar_button_set_icon(GtkWidget *button, GtkWidget *widget, const gchar *stock_id); |
146 GtkWidget *pref_toolbar_spacer(GtkWidget *toolbar); | 146 GtkWidget *pref_toolbar_spacer(GtkWidget *toolbar); |
147 | 147 |
169 gint hsize_min, gint hsize_max, | 169 gint hsize_min, gint hsize_max, |
170 gint vsize_min, gint vsize_max); | 170 gint vsize_min, gint vsize_max); |
171 | 171 |
172 | 172 |
173 void pref_list_int_set(const gchar *group, const gchar *key, gint value); | 173 void pref_list_int_set(const gchar *group, const gchar *key, gint value); |
174 gint pref_list_int_get(const gchar *group, const gchar *key, gint *result); | 174 gboolean pref_list_int_get(const gchar *group, const gchar *key, gint *result); |
175 | 175 |
176 void pref_list_double_set(const gchar *group, const gchar *key, gdouble value); | 176 void pref_list_double_set(const gchar *group, const gchar *key, gdouble value); |
177 gint pref_list_double_get(const gchar *group, const gchar *key, gdouble *result); | 177 gboolean pref_list_double_get(const gchar *group, const gchar *key, gdouble *result); |
178 | 178 |
179 void pref_list_string_set(const gchar *group, const gchar *key, const gchar *value); | 179 void pref_list_string_set(const gchar *group, const gchar *key, const gchar *value); |
180 gint pref_list_string_get(const gchar *group, const gchar *key, const gchar **result); | 180 gboolean pref_list_string_get(const gchar *group, const gchar *key, const gchar **result); |
181 | 181 |
182 | 182 |
183 void pref_color_button_set_cb(GtkWidget *widget, gpointer data); | 183 void pref_color_button_set_cb(GtkWidget *widget, gpointer data); |
184 GtkWidget *pref_color_button_new(GtkWidget *parent_box, | 184 GtkWidget *pref_color_button_new(GtkWidget *parent_box, |
185 const gchar *title, const GdkColor *color, | 185 const gchar *title, const GdkColor *color, |