[geany/geany] 8f489f: Use static to avoid clashing with plugins' symbols
Matthew Brush
git-noreply at xxxxx
Thu Jul 26 00:02:42 UTC 2012
Branch: refs/heads/document-messages
Author: Matthew Brush <matt at geany.org>
Committer: Matthew Brush <matt at geany.org>
Date: Tue, 03 Jan 2012 16:54:12
Commit: 8f489fc9fbab8a8c197f40536fac8ebd74c430eb
https://github.com/geany/geany/commit/8f489fc9fbab8a8c197f40536fac8ebd74c430eb
Log Message:
-----------
Use static to avoid clashing with plugins' symbols
Modified Paths:
--------------
src/toolbar.c
Modified: src/toolbar.c
6 files changed, 3 insertions(+), 3 deletions(-)
===================================================================
@@ -49,7 +49,7 @@
/* Available toolbar actions
* Fields: name, stock_id, label, accelerator, tooltip, callback */
-const GtkActionEntry ui_entries[] = {
+static const GtkActionEntry ui_entries[] = {
/* custom actions defined in toolbar_init(): "New", "Open", "SearchEntry", "GotoEntry", "Build" */
{ "Save", GTK_STOCK_SAVE, NULL, NULL, N_("Save the current file"), G_CALLBACK(on_toolbutton_save_clicked) },
{ "SaveAs", GTK_STOCK_SAVE_AS, NULL, NULL, N_("Save as"), G_CALLBACK(on_save_as1_activate) },
@@ -79,11 +79,11 @@
{ "Print", GTK_STOCK_PRINT, NULL, NULL, N_("Print document"), G_CALLBACK(on_print1_activate) },
{ "Replace", GTK_STOCK_FIND_AND_REPLACE, NULL, NULL, N_("Replace text in the current document"), G_CALLBACK(on_replace1_activate) }
};
-const guint ui_entries_n = G_N_ELEMENTS(ui_entries);
+static const guint ui_entries_n = G_N_ELEMENTS(ui_entries);
/* fallback UI definition */
-const gchar *toolbar_markup =
+static const gchar *toolbar_markup =
"<ui>"
"<toolbar name='GeanyToolbar'>"
"<toolitem action='New'/>"
@@ Diff output truncated at 100000 characters. @@
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: TBD).
More information about the Commits
mailing list