[file-roller/wip/jtojnar/engrampa-backports: 10/21] gtk-utils: Remove unused wrapper for gtk_builder_new_from_file




commit 25ecd359ca56640656f7e9733a43ae97047c7859
Author: rbuj <robert buj gmail com>
Date:   Wed Aug 28 12:30:08 2019 +0200

    gtk-utils: Remove unused wrapper for gtk_builder_new_from_file
    
    Unused since https://gitlab.gnome.org/GNOME/file-roller/-/commit/47619b987b77bdc258af9a554ba022c1f8834774
    
    Cherry picked from 
https://github.com/mate-desktop/engrampa/commit/9f10fa5b87f469b7b6bcc8146e4997452e09a299

 src/gtk-utils.c | 19 -------------------
 src/gtk-utils.h |  1 -
 2 files changed, 20 deletions(-)
---
diff --git a/src/gtk-utils.c b/src/gtk-utils.c
index d2e54022..dbe392a3 100644
--- a/src/gtk-utils.c
+++ b/src/gtk-utils.c
@@ -526,25 +526,6 @@ _gtk_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 (UIDIR, 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;
-}
-
-
 GtkWidget *
 _gtk_builder_get_widget (GtkBuilder *builder,
                         const char *name)
diff --git a/src/gtk-utils.h b/src/gtk-utils.h
index e3f923c5..837abd63 100644
--- a/src/gtk-utils.h
+++ b/src/gtk-utils.h
@@ -86,7 +86,6 @@ GdkPixbuf *   _g_mime_type_get_icon                (const char       *mime_type,
                                                    GtkIconTheme     *icon_theme);
 void          _gtk_show_help_dialog                (GtkWindow        *parent,
                                                    const char       *section);
-GtkBuilder *  _gtk_builder_new_from_file           (const char       *filename);
 GtkWidget *   _gtk_builder_get_widget              (GtkBuilder       *builder,
                                                    const char       *name);
 int           _gtk_widget_lookup_for_size          (GtkWidget        *widget,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]