use c++ for some more sources
Do a (superficial) port to c++ of some of the c sources. Update deps. Fix a few compiler warnings.
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
## Copyright (C) 2008-2019 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
||||
## Copyright (C) 2008-2020 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
||||
##
|
||||
## This program is free software; you can redistribute it and/or modify
|
||||
## it under the terms of the GNU General Public License as published by
|
||||
@ -35,7 +35,7 @@ AM_CFLAGS= \
|
||||
-Wno-deprecated-declarations \
|
||||
-Wno-switch-enum
|
||||
|
||||
AM_CXXFLAGS=$(AM_CFLAGS) $(WARN_CXXFLAGS)
|
||||
AM_CXXFLAGS=$(WARN_CXXFLAGS)
|
||||
|
||||
#
|
||||
# Distributors: this is a _toy_, not for distribution. the "noinst_" says enough
|
||||
@ -44,17 +44,15 @@ noinst_PROGRAMS= \
|
||||
mug
|
||||
|
||||
mug_SOURCES= \
|
||||
mug.c \
|
||||
mug.cc \
|
||||
mug-msg-list-view.cc \
|
||||
mug-msg-list-view.h \
|
||||
mug-msg-view.h \
|
||||
mug-msg-view.c \
|
||||
mug-query-bar.h \
|
||||
mug-query-bar.c \
|
||||
mug-shortcuts.c \
|
||||
mug-shortcuts.h \
|
||||
dummy.cc
|
||||
|
||||
mug-shortcuts.cc \
|
||||
mug-shortcuts.h
|
||||
|
||||
DISTCLEANFILES= \
|
||||
$(BUILT_SOURCES)
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
** Copyright (C) 2010 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
||||
** Copyright (C) 2010-2020 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
||||
**
|
||||
** This program is free software; you can redistribute it and/or modify it
|
||||
** under the terms of the GNU General Public License as published by the
|
||||
@ -18,7 +18,7 @@
|
||||
*/
|
||||
|
||||
#include "mug-shortcuts.h"
|
||||
#include "mu-bookmarks.h"
|
||||
#include "mu-bookmarks.hh"
|
||||
|
||||
/* include other impl specific header files */
|
||||
|
||||
@ -58,7 +58,7 @@ mug_shortcuts_class_init (MugShortcutsClass * klass)
|
||||
GObjectClass *gobject_class;
|
||||
gobject_class = (GObjectClass *) klass;
|
||||
|
||||
parent_class = g_type_class_peek_parent (klass);
|
||||
parent_class = (GtkBoxClass*)g_type_class_peek_parent (klass);
|
||||
gobject_class->finalize = mug_shortcuts_finalize;
|
||||
|
||||
g_type_class_add_private (gobject_class, sizeof (MugShortcutsPrivate));
|
||||
@ -25,7 +25,7 @@
|
||||
|
||||
#include <utils/mu-util.h>
|
||||
#include <mu-store.hh>
|
||||
#include <mu-runtime.h>
|
||||
#include <mu-runtime.hh>
|
||||
|
||||
#include "mug-msg-list-view.h"
|
||||
#include "mug-query-bar.h"
|
||||
Reference in New Issue
Block a user