summaryrefslogtreecommitdiffstats
path: root/src/widgets/ink-tool-menu-action.cpp
diff options
context:
space:
mode:
authorAlexander Valavanis <valavanisalex@gmail.com>2019-02-04 23:17:44 +0000
committerAlexander Valavanis <valavanisalex@gmail.com>2019-02-04 23:17:44 +0000
commita04d9b7aa050920b7d98beac013e94e54fc2414a (patch)
tree1f871112bc6ac0b179c0a0fa4447907b0da67414 /src/widgets/ink-tool-menu-action.cpp
parentrm unused InkRadioAction (diff)
downloadinkscape-a04d9b7aa050920b7d98beac013e94e54fc2414a.tar.gz
inkscape-a04d9b7aa050920b7d98beac013e94e54fc2414a.zip
NodeToolbar: GtkAction migration
Diffstat (limited to 'src/widgets/ink-tool-menu-action.cpp')
-rw-r--r--src/widgets/ink-tool-menu-action.cpp58
1 files changed, 0 insertions, 58 deletions
diff --git a/src/widgets/ink-tool-menu-action.cpp b/src/widgets/ink-tool-menu-action.cpp
deleted file mode 100644
index 667f074cc..000000000
--- a/src/widgets/ink-tool-menu-action.cpp
+++ /dev/null
@@ -1,58 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0-or-later
-/** @file
- * TODO: insert short description here
- *//*
- * Authors: see git history
- *
- * Copyright (C) 2018 Authors
- * Released under GNU GPL v2+, read the file 'COPYING' for more information.
- */
-#include "ink-tool-menu-action.h"
-
-// ToolMenu Action is happily derived from http://www.gtkforums.com/viewtopic.php?t=4215
-
-G_DEFINE_TYPE(InkToolMenuAction, ink_tool_menu_action, INK_ACTION_TYPE);
-
-static void
-ink_tool_menu_action_class_init (InkToolMenuActionClass *klass)
-{
- GtkActionClass *action_class = GTK_ACTION_CLASS (klass);
- action_class->toolbar_item_type = GTK_TYPE_MENU_TOOL_BUTTON;
-}
-
-static void
-ink_tool_menu_action_init (InkToolMenuAction* /*tma*/)
-{
-}
-
-InkToolMenuAction *
-ink_tool_menu_action_new (const gchar *name,
- const gchar *label,
- const gchar *tooltip,
- const gchar *inkId,
- GtkIconSize size )
-{
- g_return_val_if_fail (name != nullptr, NULL);
-
- GObject* obj = (GObject*)g_object_new( INK_TOOL_MENU_ACTION_TYPE,
- "name", name,
- "label", label,
- "tooltip", tooltip,
- "iconId", inkId,
- "iconSize", size,
- NULL );
-
- InkToolMenuAction* action = INK_TOOL_MENU_ACTION( obj );
-
- return action;
-}
-/*
- Local Variables:
- mode:c++
- c-file-style:"stroustrup"
- c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
- indent-tabs-mode:nil
- fill-column:99
- End:
-*/
-// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :