[gtkmm] Fix the build due to a typo in the previous commit (suggesting that it was never tested anyway).
- From: Murray Cumming <murrayc src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtkmm] Fix the build due to a typo in the previous commit (suggesting that it was never tested anyway).
- Date: Tue, 16 Jun 2009 13:06:32 -0400 (EDT)
commit 408d43d80b2554cd977bfed21e2aad710336f164
Author: Murray Cumming <murrayc murrayc com>
Date: Tue Jun 16 19:06:23 2009 +0200
Fix the build due to a typo in the previous commit (suggesting that it was never tested anyway).
gtk/src/recentmanager.ccg | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gtk/src/recentmanager.ccg b/gtk/src/recentmanager.ccg
index b39ab07..2933f5a 100644
--- a/gtk/src/recentmanager.ccg
+++ b/gtk/src/recentmanager.ccg
@@ -34,10 +34,12 @@ bool RecentManager::add_item(const Glib::ustring& uri, const Data& data)
c_data.mime_type = const_cast<gchar*>(data.mime_type.c_str());
c_data.app_name = const_cast<gchar*>(data.app_name.c_str());
c_data.app_exec = const_cast<gchar*>(data.app_exec.c_str());
- c_data.groups = static_cast<gchar**>(g_malloc((data.groups.size() + 1) * sizeof(*gchar)));
+
+ c_data.groups = static_cast<gchar**>(g_malloc((data.groups.size() + 1) * sizeof(gchar*)));
for(unsigned int i = 0; i < data.groups.size(); ++ i)
c_data.groups[i] = const_cast<gchar*>(data.groups[i].c_str());
c_data.groups[data.groups.size()] = NULL;
+
c_data.is_private = data.is_private;
result = gtk_recent_manager_add_full(gobj(), uri.c_str(), &c_data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]