Added
Link Here
|
1 |
--- src/gui.c.orig 2020-06-11 10:29:04 UTC |
2 |
+++ src/gui.c |
3 |
@@ -1129,40 +1129,40 @@ HildonGtkInputMode input_mode; |
4 |
#ifdef MAEMO |
5 |
gtk_container_add (GTK_CONTAINER (hbuttonbox), appGUI->reverse_button); |
6 |
gtk_container_set_border_width (GTK_CONTAINER (appGUI->reverse_button), 4); |
7 |
- GTK_WIDGET_SET_FLAGS (appGUI->reverse_button, GTK_CAN_DEFAULT); |
8 |
+ gtk_widget_set_can_default (appGUI->reverse_button, TRUE); |
9 |
|
10 |
gtk_container_add (GTK_CONTAINER (hbuttonbox), appGUI->stat_button); |
11 |
gtk_container_set_border_width (GTK_CONTAINER (appGUI->stat_button), 4); |
12 |
- GTK_WIDGET_SET_FLAGS (appGUI->stat_button, GTK_CAN_DEFAULT); |
13 |
+ gtk_widget_set_can_default (appGUI->stat_button, TRUE); |
14 |
|
15 |
appGUI->chart_button = gui_stock_label_button(NULL, KANATEST_STOCK_BUTTON_CHART); |
16 |
- GTK_WIDGET_UNSET_FLAGS (appGUI->chart_button, GTK_CAN_FOCUS); |
17 |
+ gtk_widget_set_can_focus (appGUI->chart_button, FALSE); |
18 |
g_signal_connect (G_OBJECT (appGUI->chart_button), "clicked", |
19 |
G_CALLBACK (show_chart_window_cb), appGUI); |
20 |
gtk_widget_show (appGUI->chart_button); |
21 |
gtk_container_add (GTK_CONTAINER (hbuttonbox), appGUI->chart_button); |
22 |
gtk_container_set_border_width (GTK_CONTAINER (appGUI->chart_button), 4); |
23 |
- GTK_WIDGET_SET_FLAGS (appGUI->chart_button, GTK_CAN_DEFAULT); |
24 |
+ gtk_widget_set_can_default (appGUI->chart_button, TRUE); |
25 |
gtk_widget_set_tooltip_text (appGUI->chart_button, _("Kana chart")); |
26 |
|
27 |
appGUI->prefs_button = gui_stock_label_button(NULL, KANATEST_STOCK_BUTTON_OPTIONS); |
28 |
- GTK_WIDGET_UNSET_FLAGS (appGUI->prefs_button, GTK_CAN_FOCUS); |
29 |
+ gtk_widget_set_can_focus (appGUI->prefs_button, FALSE); |
30 |
g_signal_connect (G_OBJECT (appGUI->prefs_button), "clicked", |
31 |
G_CALLBACK (show_options_window_cb), appGUI); |
32 |
gtk_widget_show (appGUI->prefs_button); |
33 |
gtk_container_add (GTK_CONTAINER (hbuttonbox), appGUI->prefs_button); |
34 |
gtk_container_set_border_width (GTK_CONTAINER (appGUI->prefs_button), 4); |
35 |
- GTK_WIDGET_SET_FLAGS (appGUI->prefs_button, GTK_CAN_DEFAULT); |
36 |
+ gtk_widget_set_can_default (appGUI->prefs_button, TRUE); |
37 |
gtk_widget_set_tooltip_text (appGUI->prefs_button, _("Options")); |
38 |
|
39 |
appGUI->about_button = gui_stock_label_button(NULL, KANATEST_STOCK_BUTTON_ABOUT); |
40 |
- GTK_WIDGET_UNSET_FLAGS (appGUI->about_button, GTK_CAN_FOCUS); |
41 |
+ gtk_widget_set_can_focus (appGUI->about_button, FALSE); |
42 |
g_signal_connect (G_OBJECT (appGUI->about_button), "clicked", |
43 |
G_CALLBACK (show_about_window_cb), appGUI); |
44 |
gtk_widget_show (appGUI->about_button); |
45 |
gtk_container_add (GTK_CONTAINER (hbuttonbox), appGUI->about_button); |
46 |
gtk_container_set_border_width (GTK_CONTAINER (appGUI->about_button), 4); |
47 |
- GTK_WIDGET_SET_FLAGS (appGUI->about_button, GTK_CAN_DEFAULT); |
48 |
+ gtk_widget_set_can_default (appGUI->about_button, TRUE); |
49 |
|
50 |
gtk_widget_set_tooltip_text (appGUI->about_button, _("About")); |
51 |
#endif |