[balsa/wip/gtk4] Make GResource paths static as well as const



commit 4482236be1d87e41d13c70577d564adbd448e8d9
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Sun Jun 10 17:40:40 2018 -0400

    Make GResource paths static as well as const

 libbalsa/source-viewer.c | 3 ++-
 src/ab-main.c            | 3 ++-
 src/compose-window.c     | 3 ++-
 src/main-window.c        | 3 ++-
 src/message-window.c     | 3 ++-
 5 files changed, 10 insertions(+), 5 deletions(-)
---
diff --git a/libbalsa/source-viewer.c b/libbalsa/source-viewer.c
index f031ff37..6d9ed052 100644
--- a/libbalsa/source-viewer.c
+++ b/libbalsa/source-viewer.c
@@ -229,7 +229,8 @@ libbalsa_show_message_source(GtkApplication  * application,
     GtkCssProvider *css_provider;
     GtkWidget *vbox, *interior;
     GtkWindow *window;
-    const gchar resource_path[] = "/org/desktop/Balsa/source-viewer.ui";
+    static const gchar resource_path[] =
+        "/org/desktop/Balsa/source-viewer.ui";
     GtkWidget *menu_bar;
     GError *err = NULL;
     LibBalsaSourceViewer *source_viewer;
diff --git a/src/ab-main.c b/src/ab-main.c
index 03bce8f4..823a215a 100644
--- a/src/ab-main.c
+++ b/src/ab-main.c
@@ -593,7 +593,8 @@ get_main_menu(GtkApplication * application)
             address_book_change_state},
     };
     GtkBuilder *builder;
-    const gchar resource_path[] = "/org/desktop/BalsaAb/ab-main.ui";
+    static const gchar resource_path[] =
+        "/org/desktop/BalsaAb/ab-main.ui";
     GError *err = NULL;
 
     builder = gtk_builder_new();
diff --git a/src/compose-window.c b/src/compose-window.c
index 708068e1..7f5688da 100644
--- a/src/compose-window.c
+++ b/src/compose-window.c
@@ -7188,7 +7188,8 @@ balsa_compose_window_new()
     GError *error = NULL;
     GtkWidget *menubar;
     GtkWidget *paned;
-    const gchar resource_path[] = "/org/desktop/Balsa/compose-window.ui";
+    static const gchar resource_path[] =
+        "/org/desktop/Balsa/compose-window.ui";
     const gchar *current_locale;
 
     compose_window = g_object_new(BALSA_TYPE_COMPOSE_WINDOW,
diff --git a/src/main-window.c b/src/main-window.c
index 82489f87..2f9bcf5d 100644
--- a/src/main-window.c
+++ b/src/main-window.c
@@ -2100,7 +2100,8 @@ bw_set_menus(BalsaWindow * window)
 {
     BalsaWindowPrivate *priv = balsa_window_get_instance_private(window);
     GtkBuilder *builder;
-    const gchar resource_path[] = "/org/desktop/Balsa/main-window.ui";
+    static const gchar resource_path[] =
+        "/org/desktop/Balsa/main-window.ui";
     GError *err = NULL;
 
     bw_add_app_action_entries(G_ACTION_MAP(balsa_app.application), window);
diff --git a/src/message-window.c b/src/message-window.c
index 17ff28c3..91d269d8 100644
--- a/src/message-window.c
+++ b/src/message-window.c
@@ -846,7 +846,8 @@ message_window_new(LibBalsaMailbox * mailbox, guint msgno)
     GtkWidget *vbox;
     static const gchar *const header_options[] =
         { "none", "selected", "all" };
-    const gchar resource_path[] = "/org/desktop/Balsa/message-window.ui";
+    static const gchar resource_path[] =
+        "/org/desktop/Balsa/message-window.ui";
     GAction *action;
 
     if (!mailbox || !msgno)


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