summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrbuj <[email protected]>2019-08-28 12:30:08 +0200
committerRobert Antoni Buj Gelonch <[email protected]>2019-08-30 13:32:27 +0200
commit9f10fa5b87f469b7b6bcc8146e4997452e09a299 (patch)
tree846c7ef015669509dc6ce394b2a5d1605d059ca9 /src
parent9e3840c356a630f508b2e799f33c2a8b6242f764 (diff)
downloadengrampa-9f10fa5b87f469b7b6bcc8146e4997452e09a299.tar.bz2
engrampa-9f10fa5b87f469b7b6bcc8146e4997452e09a299.tar.xz
gtk-utils: Remove unused wrapper for gtk_builder_new_from_file
Unused since https://github.com/mate-desktop/engrampa/commit/0d3a5b087f4bb6c118abe34a14ea27b86583f812
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am3
-rw-r--r--src/gtk-utils.c18
-rw-r--r--src/gtk-utils.h2
3 files changed, 0 insertions, 23 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 383a4c2..ff381fe 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -12,12 +12,10 @@ endif
if RUN_IN_PLACE
privdatadir = $(top_srcdir)/data/
-uidir = $(top_srcdir)/data/ui
privexecdir = $(abs_top_builddir)/src/commands/
shdir = $(top_srcdir)/src/sh/
else
privdatadir = $(datadir)/engrampa/
-uidir = $(datadir)/engrampa/ui
privexecdir = $(libexecdir)/engrampa/
shdir = $(libexecdir)/engrampa/
endif
@@ -31,7 +29,6 @@ AM_CPPFLAGS = \
-DFR_SYSCONFDIR=\"$(sysconfdir)\" \
-DFR_DATADIR=\"$(datadir)\" \
-DPRIVDATADIR=\"$(privdatadir)\" \
- -DUI_DIR=\"$(uidir)\" \
-DFR_LIBDIR=\"$(libdir)\" \
-DPKG_DATA_DIR=\"$(pkgdatadir)\" \
-DPIXMAPSDIR=\""$(datadir)/pixmaps"\" \
diff --git a/src/gtk-utils.c b/src/gtk-utils.c
index 9aeed3b..45fe9bb 100644
--- a/src/gtk-utils.c
+++ b/src/gtk-utils.c
@@ -758,24 +758,6 @@ show_help_dialog (GtkWindow *parent,
GtkBuilder *
-_gtk_builder_new_from_file (const char *ui_file)
-{
- char *filename;
- GtkBuilder *builder;
- GError *error = NULL;
-
- filename = g_build_filename (UI_DIR, ui_file, NULL);
- builder = gtk_builder_new ();
- if (! gtk_builder_add_from_file (builder, filename, &error)) {
- g_warning ("%s\n", error->message);
- g_clear_error (&error);
- }
- g_free (filename);
-
- return builder;
-}
-
-GtkBuilder *
_gtk_builder_new_from_resource (const char *resource_path)
{
GtkBuilder *builder;
diff --git a/src/gtk-utils.h b/src/gtk-utils.h
index 2612702..f75e274 100644
--- a/src/gtk-utils.h
+++ b/src/gtk-utils.h
@@ -80,8 +80,6 @@ int get_folder_pixbuf_size_for_list (GtkWidget *widget);
void show_help_dialog (GtkWindow *parent,
const char *section);
GtkBuilder *
- _gtk_builder_new_from_file (const char *filename);
-GtkBuilder *
_gtk_builder_new_from_resource (const char *resource_path);
GtkWidget *
_gtk_builder_get_widget (GtkBuilder *builder,