summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/gtk/ContextMenuGtk.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/platform/gtk/ContextMenuGtk.cpp')
-rw-r--r--Source/WebCore/platform/gtk/ContextMenuGtk.cpp17
1 files changed, 12 insertions, 5 deletions
diff --git a/Source/WebCore/platform/gtk/ContextMenuGtk.cpp b/Source/WebCore/platform/gtk/ContextMenuGtk.cpp
index 423959a..b34631d 100644
--- a/Source/WebCore/platform/gtk/ContextMenuGtk.cpp
+++ b/Source/WebCore/platform/gtk/ContextMenuGtk.cpp
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2007 Holger Hans Peter Freyther
+ * Portions Copyright (c) 2010 Motorola Mobility, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -19,6 +20,7 @@
#include "config.h"
#include "ContextMenu.h"
+#include "NotImplemented.h"
#include <gtk/gtk.h>
namespace WebCore {
@@ -26,14 +28,12 @@ namespace WebCore {
ContextMenu::ContextMenu()
{
m_platformDescription = GTK_MENU(gtk_menu_new());
-
- g_object_ref_sink(G_OBJECT(m_platformDescription));
}
ContextMenu::~ContextMenu()
{
if (m_platformDescription)
- g_object_unref(m_platformDescription);
+ gtk_widget_destroy(GTK_WIDGET(m_platformDescription));
}
void ContextMenu::appendItem(ContextMenuItem& item)
@@ -50,10 +50,9 @@ void ContextMenu::setPlatformDescription(PlatformMenuDescription menu)
{
ASSERT(menu);
if (m_platformDescription)
- g_object_unref(m_platformDescription);
+ gtk_widget_destroy(GTK_WIDGET(m_platformDescription));
m_platformDescription = menu;
- g_object_ref(m_platformDescription);
}
PlatformMenuDescription ContextMenu::platformDescription() const
@@ -69,4 +68,12 @@ PlatformMenuDescription ContextMenu::releasePlatformDescription()
return description;
}
+Vector<ContextMenuItem> contextMenuItemVector(const PlatformMenuDescription)
+{
+ notImplemented();
+
+ Vector<ContextMenuItem> menuItemVector;
+ return menuItemVector;
+}
+
}