Commit 8cd4278b9ef7908314a7baad7e16eae677df5bf9
1 parent
8074e037
Exists in
master
and in
4 other branches
Using the new dialog section element who adapts to windows UI.
Showing
3 changed files
with
6 additions
and
3 deletions
Show diff stats
src/include/pw3270.h
... | ... | @@ -53,7 +53,7 @@ |
53 | 53 | |
54 | 54 | |
55 | 55 | void pw3270_load_placeholders(GtkBuilder * builder); |
56 | - GtkWidget * pw3270_frame_new(GtkWidget * child, const gchar *title); | |
56 | +// GtkWidget * pw3270_frame_new(GtkWidget * child, const gchar *title); | |
57 | 57 | |
58 | 58 | // Application settings widget |
59 | 59 | typedef struct _Pw3270SettingsPage Pw3270SettingsPage; | ... | ... |
src/main/tools.c
... | ... | @@ -64,6 +64,7 @@ |
64 | 64 | |
65 | 65 | } |
66 | 66 | |
67 | + /* | |
67 | 68 | GtkWidget * pw3270_frame_new(GtkWidget * child, const gchar *title) { |
68 | 69 | |
69 | 70 | GtkFrame * frame = GTK_FRAME(gtk_frame_new("")); |
... | ... | @@ -82,6 +83,7 @@ |
82 | 83 | return GTK_WIDGET(frame); |
83 | 84 | |
84 | 85 | } |
86 | + */ | |
85 | 87 | |
86 | 88 | void gtk_file_chooser_set_pw3270_filters(GtkFileChooser *chooser) { |
87 | 89 | ... | ... |
src/objects/toolbar/settings.c
... | ... | @@ -33,6 +33,7 @@ |
33 | 33 | #include <pw3270/toolbar.h> |
34 | 34 | #include <pw3270/actions.h> |
35 | 35 | #include <pw3270/window.h> |
36 | + #include <v3270/dialogs.h> | |
36 | 37 | |
37 | 38 | static void load(GtkWidget *widget, PW3270SettingsPrivate *settings); |
38 | 39 | static void apply(GtkWidget *widget, PW3270SettingsPrivate *settings); |
... | ... | @@ -104,7 +105,7 @@ |
104 | 105 | |
105 | 106 | gtk_grid_attach( |
106 | 107 | GTK_GRID(settings), |
107 | - pw3270_frame_new(GTK_WIDGET(grid), _("Actions")), | |
108 | + v3270_dialog_section_new(_("Itens"), _("Select the toolbar itens"), GTK_WIDGET(grid)), | |
108 | 109 | 0,0,4,3 |
109 | 110 | ); |
110 | 111 | |
... | ... | @@ -203,7 +204,7 @@ |
203 | 204 | |
204 | 205 | gtk_grid_attach( |
205 | 206 | GTK_GRID(settings), |
206 | - pw3270_frame_new(GTK_WIDGET(grid), _("Options")), | |
207 | + v3270_dialog_section_new(_("Layout"), _("Setup the toolbar layout"), GTK_WIDGET(grid)), | |
207 | 208 | 0,5,4,1 |
208 | 209 | ); |
209 | 210 | ... | ... |