[dia] [warningectomy] prototype for function 'diagram_tree_show'
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] [warningectomy] prototype for function 'diagram_tree_show'
- Date: Sun, 16 Nov 2014 12:41:23 +0000 (UTC)
commit 8d49deebc4f37e9c03280f92ed094874d0b47bdb
Author: Hans Breuer <hans breuer org>
Date: Sun Nov 16 13:05:22 2014 +0100
[warningectomy] prototype for function 'diagram_tree_show'
diagram_tree_view.c:556:1: warning: no previous prototype for function 'diagram_tree_show'
[-Wmissing-prototypes]
diagram_tree_show (void)
^
app/Makefile.am | 1 +
app/diagram_tree.h | 3 +++
app/diagram_tree_view.c | 1 +
app/menus.c | 3 +--
4 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/app/Makefile.am b/app/Makefile.am
index 52f0b7e..e924a26 100644
--- a/app/Makefile.am
+++ b/app/Makefile.am
@@ -188,6 +188,7 @@ dia_core_files = \
dia-application.h \
dia-application.c \
\
+ diagram_tree.h \
diagram_tree_model.c \
diagram_tree_model.h \
diagram_tree_view.c \
diff --git a/app/diagram_tree.h b/app/diagram_tree.h
new file mode 100644
index 0000000..f211337
--- /dev/null
+++ b/app/diagram_tree.h
@@ -0,0 +1,3 @@
+
+void diagram_tree_show(void);
+
diff --git a/app/diagram_tree_view.c b/app/diagram_tree_view.c
index 166e9f8..cd42a91 100644
--- a/app/diagram_tree_view.c
+++ b/app/diagram_tree_view.c
@@ -32,6 +32,7 @@
#include <lib/object.h>
#include "diagram_tree_model.h"
+#include "diagram_tree.h"
#include "dia-app-icons.h" /* for dia_group_icon */
#include <lib/group.h> /* IS_GROUP */
diff --git a/app/menus.c b/app/menus.c
index 994fada..70c44c6 100644
--- a/app/menus.c
+++ b/app/menus.c
@@ -44,6 +44,7 @@
#include "filter.h"
#include "objchange.h"
#include "toolbox.h"
+#include "diagram_tree.h"
#define DIA_STOCK_GROUP "dia-stock-group"
#define DIA_STOCK_UNGROUP "dia-stock-ungroup"
@@ -96,8 +97,6 @@ static const GtkActionEntry common_entries[] =
{ "HelpAbout", GTK_STOCK_ABOUT, NULL, NULL, N_("Dia version, authors, license"), G_CALLBACK
(help_about_callback) }
};
-extern void diagram_tree_show(void);
-
/* Actions for toolbox menu */
static const GtkActionEntry toolbox_entries[] =
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]