summaryrefslogtreecommitdiff
path: root/src/dlg-add-folder.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-04-21 13:21:16 +0200
committerraveit65 <[email protected]>2017-04-22 08:32:26 +0200
commit6912dc1f958585c39df14e92f5e1ac6090d73910 (patch)
tree43a4be4ab8987cb9d7f15e8be52040189ca0710e /src/dlg-add-folder.c
parent04779796e8007d9c025e5463a8ebb2591b9f2369 (diff)
downloadengrampa-6912dc1f958585c39df14e92f5e1ac6090d73910.tar.bz2
engrampa-6912dc1f958585c39df14e92f5e1ac6090d73910.tar.xz
dlg-add-folder: avoid deprecated gtk_alignment_new ()
Diffstat (limited to 'src/dlg-add-folder.c')
-rw-r--r--src/dlg-add-folder.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/dlg-add-folder.c b/src/dlg-add-folder.c
index 8ad65d2..158703f 100644
--- a/src/dlg-add-folder.c
+++ b/src/dlg-add-folder.c
@@ -214,7 +214,6 @@ add_folder_cb (GtkWidget *widget,
GtkWidget *main_box;
GtkWidget *vbox;
GtkWidget *grid;
- GtkWidget *align;
data = g_new0 (DialogData, 1);
data->settings = g_settings_new (ENGRAMPA_SCHEMA_ADD);
@@ -238,6 +237,9 @@ add_folder_cb (GtkWidget *widget,
data->add_if_newer_checkbutton = gtk_check_button_new_with_mnemonic (_("Add only if _newer"));
data->include_subfold_checkbutton = gtk_check_button_new_with_mnemonic (_("_Include subfolders"));
data->exclude_symlinks = gtk_check_button_new_with_mnemonic (_("Exclude folders that are symbolic lin_ks"));
+ gtk_widget_set_halign (data->exclude_symlinks, GTK_ALIGN_START);
+ gtk_widget_set_valign (data->exclude_symlinks, GTK_ALIGN_START);
+ gtk_widget_set_margin_start (data->exclude_symlinks, 12);
data->include_files_entry = gtk_entry_new ();
gtk_widget_set_tooltip_text (data->include_files_entry, _("example: *.o; *.bak"));
@@ -284,10 +286,7 @@ add_folder_cb (GtkWidget *widget,
gtk_box_pack_start (GTK_BOX (vbox), data->include_subfold_checkbutton,
TRUE, TRUE, 0);
- align = gtk_alignment_new (0, 0, 0, 0);
- gtk_alignment_set_padding (GTK_ALIGNMENT (align), 0, 0, 12, 0);
- gtk_container_add (GTK_CONTAINER (align), data->exclude_symlinks);
- gtk_box_pack_start (GTK_BOX (vbox), align, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), data->exclude_symlinks, TRUE, TRUE, 0);
gtk_box_pack_start (GTK_BOX (vbox), data->add_if_newer_checkbutton,
TRUE, TRUE, 0);