summaryrefslogtreecommitdiff
path: root/src/dlg-add-files.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-04-02 15:59:02 +0200
committerraveit65 <[email protected]>2020-06-05 14:38:12 +0200
commitc60e1cfb6c4296bcc9c4f05da3484f22e7f15770 (patch)
tree7eb0b2d21b9c589fa29fa6b30d6e9c41d7340352 /src/dlg-add-files.c
parent1cbdb4442b82a58576f16b664e647755ff964037 (diff)
downloadengrampa-c60e1cfb6c4296bcc9c4f05da3484f22e7f15770.tar.bz2
engrampa-c60e1cfb6c4296bcc9c4f05da3484f22e7f15770.tar.xz
gtk-utils: Remove _gtk_builder_get_widget
Diffstat (limited to 'src/dlg-add-files.c')
-rw-r--r--src/dlg-add-files.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/dlg-add-files.c b/src/dlg-add-files.c
index 6842811..c8430b3 100644
--- a/src/dlg-add-files.c
+++ b/src/dlg-add-files.c
@@ -31,6 +31,8 @@
#include "preferences.h"
#include "dlg-add-files.h"
+#define GET_WIDGET(x) (GTK_WIDGET (gtk_builder_get_object (builder, (x))))
+
typedef struct {
FrWindow *window;
GSettings *settings;
@@ -145,8 +147,8 @@ add_files_cb (GtkWidget *widget,
data = g_new0 (DialogData, 1);
data->window = callback_data;
data->settings = g_settings_new (ENGRAMPA_SCHEMA_ADD);
- data->dialog = _gtk_builder_get_widget (builder, "dialog_add_files");
- data->add_if_newer_checkbutton = _gtk_builder_get_widget (builder, "add_if_newer_checkbutton");
+ data->dialog = GET_WIDGET ("dialog_add_files");
+ data->add_if_newer_checkbutton = GET_WIDGET ("add_if_newer_checkbutton");
/* set data */
folder = g_settings_get_string (data->settings, PREF_ADD_CURRENT_FOLDER);