[gnome-applets] stickynotes: remove BUILDER_PATH define



commit 9cc36cb889f2a68212d5a9927092483b7281bf73
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Thu Mar 26 13:38:15 2015 +0200

    stickynotes: remove BUILDER_PATH define

 stickynotes/stickynotes.c                  |    4 ++--
 stickynotes/stickynotes_applet.h           |    1 -
 stickynotes/stickynotes_applet_callbacks.c |    2 +-
 3 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/stickynotes/stickynotes.c b/stickynotes/stickynotes.c
index 6c72184..42f6541 100644
--- a/stickynotes/stickynotes.c
+++ b/stickynotes/stickynotes.c
@@ -139,7 +139,7 @@ stickynote_new_aux (GdkScreen *screen, gint x, gint y, gint w, gint h)
        note = g_new (StickyNote, 1);
 
        builder = gtk_builder_new ();
-       gtk_builder_add_from_file (builder, BUILDER_PATH, NULL);
+       gtk_builder_add_from_file (builder, GTK_BUILDERDIR "/stickynotes.ui", NULL);
        gtk_builder_add_from_file (builder, GTK_BUILDERDIR "/stickynotes-properties.ui", NULL);
 
        note->w_window = GTK_WIDGET (gtk_builder_get_object (builder, "stickynote_window"));
@@ -714,7 +714,7 @@ void stickynotes_remove(StickyNote *note)
        GtkWidget *dialog;
 
        builder = gtk_builder_new ();
-       gtk_builder_add_from_file (builder, BUILDER_PATH, NULL);
+       gtk_builder_add_from_file (builder, GTK_BUILDERDIR "/stickynotes.ui", NULL);
 
        dialog = GTK_WIDGET (gtk_builder_get_object (builder, "delete_dialog"));
 
diff --git a/stickynotes/stickynotes_applet.h b/stickynotes/stickynotes_applet.h
index cd9def7..fd9e519 100644
--- a/stickynotes/stickynotes_applet.h
+++ b/stickynotes/stickynotes_applet.h
@@ -26,7 +26,6 @@
 
 #define IS_STRING_EMPTY(x) ((x) == NULL || (x)[0] == '\0')
 
-#define BUILDER_PATH   GTK_BUILDERDIR "/stickynotes.ui"
 #define XML_PATH       "/.config/gnome-applets/stickynotes"
 #define ICON_PATH      STICKYNOTES_ICONDIR
 
diff --git a/stickynotes/stickynotes_applet_callbacks.c b/stickynotes/stickynotes_applet_callbacks.c
index 004dde2..688ee8b 100644
--- a/stickynotes/stickynotes_applet_callbacks.c
+++ b/stickynotes/stickynotes_applet_callbacks.c
@@ -295,7 +295,7 @@ void menu_destroy_all_cb(GSimpleAction *action, GVariant *parameter, gpointer us
        GtkBuilder *builder;
 
        builder = gtk_builder_new ();
-       gtk_builder_add_from_file (builder, BUILDER_PATH, NULL);
+       gtk_builder_add_from_file (builder, GTK_BUILDERDIR "/stickynotes.ui", NULL);
 
        if (applet->destroy_all_dialog != NULL) {
                gtk_window_set_screen (GTK_WINDOW (applet->destroy_all_dialog),


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