summaryrefslogtreecommitdiff
path: root/src/dlg-add-folder.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-09-04 14:33:35 +0200
committerraveit65 <[email protected]>2016-09-14 06:04:59 +0200
commit0ac35b0a6a21f62d8fbdfdcb7358a8d088b3c92b (patch)
tree13bea2792283c397c89597686fcff78437e160b1 /src/dlg-add-folder.c
parent2797019b5e872d7cd9ad368d0188ee42f228caa8 (diff)
downloadengrampa-0ac35b0a6a21f62d8fbdfdcb7358a8d088b3c92b.tar.bz2
engrampa-0ac35b0a6a21f62d8fbdfdcb7358a8d088b3c92b.tar.xz
port deprecated GtkTable to GtkGrid
Diffstat (limited to 'src/dlg-add-folder.c')
-rw-r--r--src/dlg-add-folder.c56
1 files changed, 22 insertions, 34 deletions
diff --git a/src/dlg-add-folder.c b/src/dlg-add-folder.c
index 9d74d50..c5b0f04 100644
--- a/src/dlg-add-folder.c
+++ b/src/dlg-add-folder.c
@@ -213,7 +213,7 @@ add_folder_cb (GtkWidget *widget,
DialogData *data;
GtkWidget *main_box;
GtkWidget *vbox;
- GtkWidget *table;
+ GtkWidget *grid;
GtkWidget *align;
data = g_new0 (DialogData, 1);
@@ -280,48 +280,36 @@ add_folder_cb (GtkWidget *widget,
gtk_box_pack_start (GTK_BOX (vbox), data->add_if_newer_checkbutton,
TRUE, TRUE, 0);
- table = gtk_table_new (2, 4, FALSE);
- gtk_table_set_row_spacings (GTK_TABLE (table), 6);
- gtk_table_set_col_spacings (GTK_TABLE (table), 6);
- gtk_box_pack_start (GTK_BOX (vbox), table,
+ grid = gtk_grid_new ();
+ gtk_grid_set_row_spacing (GTK_GRID (grid), 6);
+ gtk_grid_set_column_spacing (GTK_GRID (grid), 6);
+ gtk_box_pack_start (GTK_BOX (vbox), grid,
TRUE, TRUE, 0);
- gtk_table_attach (GTK_TABLE (table),
+ gtk_grid_attach (GTK_GRID (grid),
data->include_files_label,
- 0, 1,
- 0, 1,
- GTK_FILL, 0,
- 0, 0);
- gtk_table_attach (GTK_TABLE (table),
+ 0, 0,
+ 1, 1);
+ gtk_grid_attach (GTK_GRID (grid),
data->include_files_entry,
- 1, 4,
- 0, 1,
- GTK_FILL|GTK_EXPAND, 0,
- 0, 0);
- gtk_table_attach (GTK_TABLE (table),
+ 1, 0,
+ 3, 1);
+ gtk_grid_attach (GTK_GRID (grid),
data->exclude_files_label,
0, 1,
- 1, 2,
- GTK_FILL, 0,
- 0, 0);
- gtk_table_attach (GTK_TABLE (table),
+ 1, 1);
+ gtk_grid_attach (GTK_GRID (grid),
data->exclude_files_entry,
- 1, 2,
- 1, 2,
- GTK_FILL|GTK_EXPAND, 0,
- 0, 0);
- gtk_table_attach (GTK_TABLE (table),
+ 1, 1,
+ 1, 1);
+ gtk_grid_attach (GTK_GRID (grid),
data->exclude_folders_label,
- 2, 3,
- 1, 2,
- GTK_FILL, 0,
- 0, 0);
- gtk_table_attach (GTK_TABLE (table),
+ 2, 1,
+ 1, 1);
+ gtk_grid_attach (GTK_GRID (grid),
data->exclude_folders_entry,
- 3, 4,
- 1, 2,
- GTK_FILL|GTK_EXPAND, 0,
- 0, 0);
+ 3, 1,
+ 1, 1);
/**/