ui/gtk/button.c

changeset 1121
f612b342f262
parent 1112
9250601f9d9a
equal deleted inserted replaced
1120:b9a0387038b7 1121:f612b342f262
151 151
152 void ui_button_set_icon(UIWIDGET button, const char *icon) { 152 void ui_button_set_icon(UIWIDGET button, const char *icon) {
153 ui_button_set_icon_name(button, icon); 153 ui_button_set_icon_name(button, icon);
154 } 154 }
155 155
156 void ui_button_set_tooltip(UIWIDGET button, const char *tooltip) {
157 gtk_widget_set_tooltip_text(GTK_WIDGET(button), tooltip);
158 }
159
160 void ui_togglebutton_set_label(UIWIDGET button, const char *label) {
161 ui_button_set_label(button, label);
162 }
163
164 void ui_togglebutton_set_icon(UIWIDGET button, const char *icon) {
165 ui_button_set_icon(button, icon);
166 }
167
168 void ui_togglebutton_set_tooltip(UIWIDGET button, const char *tooltip) {
169 ui_button_set_tooltip(button, tooltip);
170 }
171
172 void ui_checkbox_set_label(UIWIDGET button, const char *label) {
173 ui_button_set_label(button, label);
174 }
175
176 void ui_checkbox_set_icon(UIWIDGET button, const char *icon) {
177 ui_button_set_icon(button, icon);
178 }
179
180 void ui_checkbox_set_tooltip(UIWIDGET button, const char *tooltip) {
181 ui_button_set_tooltip(button, tooltip);
182 }
183
184 void ui_radiobutton_set_label(UIWIDGET button, const char *label) {
185 ui_button_set_label(button, label);
186 }
187
188 void ui_radiobutton_set_icon(UIWIDGET button, const char *icon) {
189 ui_button_set_icon(button, icon);
190 }
191
192 void ui_radiobutton_set_tooltip(UIWIDGET button, const char *tooltip) {
193 ui_button_set_tooltip(button, tooltip);
194 }
195
196
156 int64_t ui_toggle_button_get(UiInteger *integer) { 197 int64_t ui_toggle_button_get(UiInteger *integer) {
157 GtkToggleButton *button = integer->obj; 198 GtkToggleButton *button = integer->obj;
158 integer->value = (int)gtk_toggle_button_get_active(button); 199 integer->value = (int)gtk_toggle_button_get_active(button);
159 return integer->value; 200 return integer->value;
160 } 201 }

mercurial