diff options
author | raveit65 <[email protected]> | 2016-09-04 16:24:58 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2016-09-14 06:04:59 +0200 |
commit | 701085ca2e9ffea9a9042e174f76c70038a85b33 (patch) | |
tree | 52ca86054965cec134cd3df1fa4d515e9aafe70f /src/dlg-add-folder.c | |
parent | 43ff5a233282bcd00ed36088c16cabe5255d10db (diff) | |
download | engrampa-701085ca2e9ffea9a9042e174f76c70038a85b33.tar.bz2 engrampa-701085ca2e9ffea9a9042e174f76c70038a85b33.tar.xz |
Avoid deprecated GtkMisc
Diffstat (limited to 'src/dlg-add-folder.c')
-rw-r--r-- | src/dlg-add-folder.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/dlg-add-folder.c b/src/dlg-add-folder.c index c5b0f04..8ad65d2 100644 --- a/src/dlg-add-folder.c +++ b/src/dlg-add-folder.c @@ -242,19 +242,31 @@ add_folder_cb (GtkWidget *widget, data->include_files_entry = gtk_entry_new (); gtk_widget_set_tooltip_text (data->include_files_entry, _("example: *.o; *.bak")); data->include_files_label = gtk_label_new_with_mnemonic (_("Include _files:")); +#if GTK_CHECK_VERSION (3, 16, 0) + gtk_label_set_xalign (GTK_LABEL (data->include_files_label), 0.0); +#else gtk_misc_set_alignment (GTK_MISC (data->include_files_label), 0.0, 0.5); +#endif gtk_label_set_mnemonic_widget (GTK_LABEL (data->include_files_label), data->include_files_entry); data->exclude_files_entry = gtk_entry_new (); gtk_widget_set_tooltip_text (data->exclude_files_entry, _("example: *.o; *.bak")); data->exclude_files_label = gtk_label_new_with_mnemonic (_("E_xclude files:")); +#if GTK_CHECK_VERSION (3, 16, 0) + gtk_label_set_xalign (GTK_LABEL (data->exclude_files_label), 0.0); +#else gtk_misc_set_alignment (GTK_MISC (data->exclude_files_label), 0.0, 0.5); +#endif gtk_label_set_mnemonic_widget (GTK_LABEL (data->exclude_files_label), data->exclude_files_entry); data->exclude_folders_entry = gtk_entry_new (); gtk_widget_set_tooltip_text (data->exclude_folders_entry, _("example: *.o; *.bak")); data->exclude_folders_label = gtk_label_new_with_mnemonic (_("_Exclude folders:")); +#if GTK_CHECK_VERSION (3, 16, 0) + gtk_label_set_xalign (GTK_LABEL (data->exclude_folders_label), 0.0); +#else gtk_misc_set_alignment (GTK_MISC (data->exclude_folders_label), 0.0, 0.5); +#endif gtk_label_set_mnemonic_widget (GTK_LABEL (data->exclude_folders_label), data->exclude_folders_entry); data->load_button = gtk_button_new_with_mnemonic (_("_Load Options")); |