mirror of https://github.com/djcb/mu.git
toys/mug: Fix some compiler warnings
This commit is contained in:
parent
7f244ee454
commit
00645d854b
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
** Copyright (C) 2011-2020 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
** Copyright (C) 2011-2021 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
||||||
**
|
**
|
||||||
** This program is free software; you can redistribute it and/or modify it
|
** 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
|
** under the terms of the GNU General Public License as published by the
|
||||||
|
@ -173,8 +173,7 @@ on_drag_data_get (MuMsgAttachView *self, GdkDragContext *drag_context,
|
||||||
gtk_selection_data_set_uris (data, uris);
|
gtk_selection_data_set_uris (data, uris);
|
||||||
|
|
||||||
g_free (uris);
|
g_free (uris);
|
||||||
g_slist_foreach (lst, (GFunc)g_free, NULL);
|
g_slist_free_full (lst, g_free);
|
||||||
g_slist_free (lst);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
** Copyright (C) 2011-2020 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
** Copyright (C) 2011-2021 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
||||||
**
|
**
|
||||||
** This program is free software; you can redistribute it and/or modify it
|
** 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
|
** under the terms of the GNU General Public License as published by the
|
||||||
|
@ -18,8 +18,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#ifndef __MU_MSG_ATTACH_VIEW_H__
|
#ifndef MU_MSG_ATTACH_VIEW_HH__
|
||||||
#define __MU_MSG_ATTACH_VIEW_H__
|
#define MU_MSG_ATTACH_VIEW_HH__
|
||||||
|
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
#include <mu-msg.hh>
|
#include <mu-msg.hh>
|
||||||
|
@ -64,4 +64,4 @@ int mu_msg_attach_view_set_message (MuMsgAttachView *self, Mu::MuMsg *msg);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __MU_MSG_ATTACH_VIEW_H__ */
|
#endif /*MU_MSG_ATTACH_VIEW_HH__*/
|
||||||
|
|
|
@ -134,47 +134,6 @@ save_file_for_cid (MuMsg *msg, const char* cid)
|
||||||
return filepath;
|
return filepath;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static gboolean
|
|
||||||
on_navigation_policy_decision_requested (MuMsgBodyView *self,
|
|
||||||
WebKitPolicyDecision *decision,
|
|
||||||
WebKitPolicyDecisionType decision_type,
|
|
||||||
gpointer data)
|
|
||||||
{
|
|
||||||
/* const char* uri; */
|
|
||||||
|
|
||||||
/* uri = webkit_network_request_get_uri (request); */
|
|
||||||
|
|
||||||
/* XXX if it wasn't a user click, don't navigate */
|
|
||||||
if (decision_type != WEBKIT_POLICY_DECISION_TYPE_NAVIGATION_ACTION) {
|
|
||||||
webkit_policy_decision_ignore (decision);
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* /\* if there are 'cmd:<action>" links in the body text of */
|
|
||||||
/* * mu-internal messages (ie., notification from mu, not real */
|
|
||||||
/* * e-mail messages), we emit the 'action requested' */
|
|
||||||
/* * signal. this allows e.g triggering a database refresh from */
|
|
||||||
/* * a <a href="cmd:refresh">Refresh</a> link */
|
|
||||||
/* *\/ */
|
|
||||||
/* if (g_ascii_strncasecmp (uri, "cmd:", 4) == 0) { */
|
|
||||||
/* if (self->_priv->_view_mode == VIEW_MODE_NOTE) { */
|
|
||||||
/* g_signal_emit (G_OBJECT(self), */
|
|
||||||
/* signals[ACTION_REQUESTED], 0, */
|
|
||||||
/* uri + 4); */
|
|
||||||
/* } */
|
|
||||||
/* return TRUE; */
|
|
||||||
/* } */
|
|
||||||
|
|
||||||
/* /\* don't try to play files on our local file system, this is not something */
|
|
||||||
/* * external content should do.*\/ */
|
|
||||||
/* if (!mu_util_is_local_file(uri)) */
|
|
||||||
/* mu_util_play (uri, FALSE, TRUE, NULL); */
|
|
||||||
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
on_resource_load_started (MuMsgBodyView *self, WebKitWebResource *resource,
|
on_resource_load_started (MuMsgBodyView *self, WebKitWebResource *resource,
|
||||||
WebKitURIRequest *request, gpointer data)
|
WebKitURIRequest *request, gpointer data)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
** Copyright (C) 2011-2013 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
** Copyright (C) 2011-2021 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
||||||
**
|
**
|
||||||
** This program is free software; you can redistribute it and/or modify it
|
** 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
|
** under the terms of the GNU General Public License as published by the
|
||||||
|
@ -17,8 +17,8 @@
|
||||||
**
|
**
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __MU_MSG_BODY_VIEW_H__
|
#ifndef MU_MSG_BODY_VIEW_HH__
|
||||||
#define __MU_MSG_BODY_VIEW_H__
|
#define MU_MSG_BODY_VIEW_HH__
|
||||||
|
|
||||||
#include <webkit2/webkit2.h>
|
#include <webkit2/webkit2.h>
|
||||||
#include <mu-msg.hh>
|
#include <mu-msg.hh>
|
||||||
|
@ -66,4 +66,4 @@ void mu_msg_body_view_set_message_source (MuMsgBodyView *self, Mu::MuMsg *msg);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __MU_MSG_BODY_VIEW_H__ */
|
#endif /* MU_MSG_BODY_VIEW_HH__ */
|
||||||
|
|
Loading…
Reference in New Issue