[gtk+] toolpalette: Remove
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] toolpalette: Remove
- Date: Sat, 3 Feb 2018 10:54:07 +0000 (UTC)
commit dfc131c7ecf93287caef22ddac9b37b4825b2cf5
Author: Benjamin Otte <otte redhat com>
Date: Sat Feb 3 11:52:37 2018 +0100
toolpalette: Remove
The widget was basically unmaintained since GTK 3.0 and the only known
user was Glade.
demos/gtk-demo/demo.gresource.xml | 1 -
demos/gtk-demo/meson.build | 1 -
demos/gtk-demo/toolpalette.c | 795 ------------
docs/reference/gtk/gtk4-docs.xml | 2 -
docs/reference/gtk/gtk4-sections.txt | 72 --
docs/reference/gtk/meson.build | 1 -
docs/reference/gtk/visual_index.xml | 3 -
docs/tools/widgets.c | 35 -
gtk/gtk-autocleanups.h | 2 -
gtk/gtk.h | 2 -
gtk/gtktoolitemgroup.c | 2333 ----------------------------------
gtk/gtktoolitemgroup.h | 128 --
gtk/gtktoolpalette.c | 1712 -------------------------
gtk/gtktoolpalette.h | 154 ---
gtk/gtktoolpaletteprivate.h | 56 -
gtk/meson.build | 4 -
po/POTFILES.in | 2 -
17 files changed, 0 insertions(+), 5303 deletions(-)
---
diff --git a/demos/gtk-demo/demo.gresource.xml b/demos/gtk-demo/demo.gresource.xml
index 2d69cda..d28d7e4 100644
--- a/demos/gtk-demo/demo.gresource.xml
+++ b/demos/gtk-demo/demo.gresource.xml
@@ -201,7 +201,6 @@
<file>textview.c</file>
<file>textscroll.c</file>
<file>theming_style_classes.c</file>
- <file>toolpalette.c</file>
<file>transparent.c</file>
<file>tree_store.c</file>
<file>textmask.c</file>
diff --git a/demos/gtk-demo/meson.build b/demos/gtk-demo/meson.build
index ed2e58c..0364c84 100644
--- a/demos/gtk-demo/meson.build
+++ b/demos/gtk-demo/meson.build
@@ -66,7 +66,6 @@ demos = files([
'textview.c',
'textscroll.c',
'theming_style_classes.c',
- 'toolpalette.c',
'transparent.c',
'tree_store.c',
])
diff --git a/docs/reference/gtk/gtk4-docs.xml b/docs/reference/gtk/gtk4-docs.xml
index fa4417a..29914f7 100644
--- a/docs/reference/gtk/gtk4-docs.xml
+++ b/docs/reference/gtk/gtk4-docs.xml
@@ -183,8 +183,6 @@
<xi:include href="xml/gtktoolshell.xml" />
<xi:include href="xml/gtktoolbar.xml" />
<xi:include href="xml/gtktoolitem.xml" />
- <xi:include href="xml/gtktoolpalette.xml" />
- <xi:include href="xml/gtktoolitemgroup.xml" />
<xi:include href="xml/gtkseparatortoolitem.xml" />
<xi:include href="xml/gtktoolbutton.xml" />
<xi:include href="xml/gtkmenutoolbutton.xml" />
diff --git a/docs/reference/gtk/gtk4-sections.txt b/docs/reference/gtk/gtk4-sections.txt
index fd0c322..f519d32 100644
--- a/docs/reference/gtk/gtk4-sections.txt
+++ b/docs/reference/gtk/gtk4-sections.txt
@@ -3228,78 +3228,6 @@ GtkToggleToolButtonPrivate
</SECTION>
<SECTION>
-<FILE>gtktoolitemgroup</FILE>
-<TITLE>GtkToolItemGroup</TITLE>
-GtkToolItemGroup
-GtkToolItemGroupClass
-gtk_tool_item_group_get_collapsed
-gtk_tool_item_group_get_drop_item
-gtk_tool_item_group_get_ellipsize
-gtk_tool_item_group_get_item_position
-gtk_tool_item_group_get_n_items
-gtk_tool_item_group_get_label
-gtk_tool_item_group_get_label_widget
-gtk_tool_item_group_get_nth_item
-gtk_tool_item_group_get_header_relief
-gtk_tool_item_group_insert
-gtk_tool_item_group_new
-gtk_tool_item_group_set_collapsed
-gtk_tool_item_group_set_ellipsize
-gtk_tool_item_group_set_item_position
-gtk_tool_item_group_set_label
-gtk_tool_item_group_set_label_widget
-gtk_tool_item_group_set_header_relief
-
-<SUBSECTION Standard>
-GTK_TOOL_ITEM_GROUP
-GTK_IS_TOOL_ITEM_GROUP
-GTK_TYPE_TOOL_ITEM_GROUP
-GTK_TOOL_ITEM_GROUP_CLASS
-GTK_IS_TOOL_ITEM_GROUP_CLASS
-GTK_TOOL_ITEM_GROUP_GET_CLASS
-
-<SUBSECTION Private>
-GtkToolItemGroupPrivate
-gtk_tool_item_group_get_type
-</SECTION>
-
-<SECTION>
-<FILE>gtktoolpalette</FILE>
-<TITLE>GtkToolPalette</TITLE>
-GtkToolPalette
-GtkToolPaletteClass
-gtk_tool_palette_new
-gtk_tool_palette_get_exclusive
-gtk_tool_palette_set_exclusive
-gtk_tool_palette_get_expand
-gtk_tool_palette_set_expand
-gtk_tool_palette_get_group_position
-gtk_tool_palette_set_group_position
-gtk_tool_palette_get_style
-gtk_tool_palette_set_style
-gtk_tool_palette_unset_style
-gtk_tool_palette_add_drag_dest
-gtk_tool_palette_get_drag_item
-gtk_tool_palette_get_drag_target_group
-gtk_tool_palette_get_drag_target_item
-gtk_tool_palette_get_drop_group
-gtk_tool_palette_get_drop_item
-GtkToolPaletteDragTargets
-gtk_tool_palette_set_drag_source
-
-<SUBSECTION Standard>
-GTK_TOOL_PALETTE
-GTK_IS_TOOL_PALETTE
-GTK_TYPE_TOOL_PALETTE
-GTK_TOOL_PALETTE_CLASS
-GTK_IS_TOOL_PALETTE_CLASS
-GTK_TOOL_PALETTE_GET_CLASS
-<SUBSECTION Private>
-gtk_tool_palette_get_type
-GtkToolPalettePrivate
-</SECTION>
-
-<SECTION>
<FILE>gtktooltip</FILE>
<TITLE>GtkTooltip</TITLE>
GtkTooltip
diff --git a/docs/reference/gtk/meson.build b/docs/reference/gtk/meson.build
index f94454f..dbcd77e 100644
--- a/docs/reference/gtk/meson.build
+++ b/docs/reference/gtk/meson.build
@@ -132,7 +132,6 @@ images = [
'images/switch.png',
'images/toggle-button.png',
'images/toolbar.png',
- 'images/toolpalette.png',
'images/tree-view-coordinates.png',
'images/up-center.png',
'images/up-end.png',
diff --git a/docs/reference/gtk/visual_index.xml b/docs/reference/gtk/visual_index.xml
index 2eadeae..b75e192 100644
--- a/docs/reference/gtk/visual_index.xml
+++ b/docs/reference/gtk/visual_index.xml
@@ -168,9 +168,6 @@
<link linkend="GtkToolbar">
<inlinegraphic fileref="toolbar.png" format="PNG"></inlinegraphic>
</link>
- <link linkend="GtkToolPalette">
- <inlinegraphic fileref="toolpalette.png" format="PNG"></inlinegraphic>
- </link>
<link linkend="GtkPlacesSidebar">
<inlinegraphic fileref="placessidebar.png" format="PNG"></inlinegraphic>
</link>
diff --git a/docs/tools/widgets.c b/docs/tools/widgets.c
index 6feaf98..d74f5fb 100644
--- a/docs/tools/widgets.c
+++ b/docs/tools/widgets.c
@@ -801,40 +801,6 @@ create_toolbar (void)
}
static WidgetInfo *
-create_toolpalette (void)
-{
- GtkWidget *widget, *group;
- GtkToolItem *item;
-
- widget = gtk_tool_palette_new ();
- group = gtk_tool_item_group_new ("Tools");
- gtk_container_add (GTK_CONTAINER (widget), group);
- item = gtk_tool_button_new (NULL, NULL);
- gtk_tool_button_set_icon_name (GTK_TOOL_BUTTON (item), "help-about");
- gtk_tool_item_group_insert (GTK_TOOL_ITEM_GROUP (group), item, -1);
- item = gtk_tool_button_new (NULL, NULL);
- gtk_tool_button_set_icon_name (GTK_TOOL_BUTTON (item), "document-new");
- gtk_tool_item_group_insert (GTK_TOOL_ITEM_GROUP (group), item, -1);
- item = gtk_tool_button_new (NULL, NULL);
- gtk_tool_button_set_icon_name (GTK_TOOL_BUTTON (item), "folder");
- gtk_tool_item_group_insert (GTK_TOOL_ITEM_GROUP (group), item, -1);
-
- group = gtk_tool_item_group_new ("More tools");
- gtk_container_add (GTK_CONTAINER (widget), group);
- item = gtk_tool_button_new (NULL, NULL);
- gtk_tool_button_set_icon_name (GTK_TOOL_BUTTON (item), "edit-cut");
- gtk_tool_item_group_insert (GTK_TOOL_ITEM_GROUP (group), item, -1);
- item = gtk_tool_button_new (NULL, NULL);
- gtk_tool_button_set_icon_name (GTK_TOOL_BUTTON (item), "edit-find");
- gtk_tool_item_group_insert (GTK_TOOL_ITEM_GROUP (group), item, -1);
- item = gtk_tool_button_new (NULL, NULL);
- gtk_tool_button_set_icon_name (GTK_TOOL_BUTTON (item), "document-properties");
- gtk_tool_item_group_insert (GTK_TOOL_ITEM_GROUP (group), item, -1);
-
- return new_widget_info ("toolpalette", widget, MEDIUM);
-}
-
-static WidgetInfo *
create_menubar (void)
{
GtkWidget *widget, *vbox, *item;
@@ -1455,7 +1421,6 @@ get_all_widgets (void)
retval = g_list_prepend (retval, create_headerbar ());
retval = g_list_prepend (retval, create_stack ());
retval = g_list_prepend (retval, create_stack_switcher ());
- retval = g_list_prepend (retval, create_toolpalette ());
retval = g_list_prepend (retval, create_spinner ());
retval = g_list_prepend (retval, create_about_dialog ());
retval = g_list_prepend (retval, create_accel_label ());
diff --git a/gtk/gtk-autocleanups.h b/gtk/gtk-autocleanups.h
index a4bd936..1bd8664 100644
--- a/gtk/gtk-autocleanups.h
+++ b/gtk/gtk-autocleanups.h
@@ -163,8 +163,6 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkToggleButton, g_object_unref)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkToggleToolButton, g_object_unref)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkToolButton, g_object_unref)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkToolItem, g_object_unref)
-G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkToolItemGroup, g_object_unref)
-G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkToolPalette, g_object_unref)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkToolShell, g_object_unref)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkToolbar, g_object_unref)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkTooltip, g_object_unref)
diff --git a/gtk/gtk.h b/gtk/gtk.h
index 1d23fc1..3143f3f 100644
--- a/gtk/gtk.h
+++ b/gtk/gtk.h
@@ -212,8 +212,6 @@
#include <gtk/gtktoolbar.h>
#include <gtk/gtktoolbutton.h>
#include <gtk/gtktoolitem.h>
-#include <gtk/gtktoolitemgroup.h>
-#include <gtk/gtktoolpalette.h>
#include <gtk/gtktoolshell.h>
#include <gtk/gtktooltip.h>
#include <gtk/gtktestutils.h>
diff --git a/gtk/meson.build b/gtk/meson.build
index b80ec6a..e3e5c7d 100644
--- a/gtk/meson.build
+++ b/gtk/meson.build
@@ -337,8 +337,6 @@ gtk_public_sources = files([
'gtktoolbar.c',
'gtktoolbutton.c',
'gtktoolitem.c',
- 'gtktoolitemgroup.c',
- 'gtktoolpalette.c',
'gtktoolshell.c',
'gtktooltip.c',
'gtktooltipwindow.c',
@@ -559,8 +557,6 @@ gtk_public_headers = files([
'gtktoolbar.h',
'gtktoolbutton.h',
'gtktoolitem.h',
- 'gtktoolitemgroup.h',
- 'gtktoolpalette.h',
'gtktoolshell.h',
'gtktooltip.h',
'gtktreednd.h',
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 2c22455..b65fafd 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -280,8 +280,6 @@ gtk/gtktoggletoolbutton.c
gtk/gtktoolbar.c
gtk/gtktoolbutton.c
gtk/gtktoolitem.c
-gtk/gtktoolitemgroup.c
-gtk/gtktoolpalette.c
gtk/gtktoolshell.c
gtk/gtktooltipwindow.c
gtk/gtktrashmonitor.c
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]