[gtk+] eventbox: Remove
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] eventbox: Remove
- Date: Wed, 2 Aug 2017 16:01:06 +0000 (UTC)
commit 47fe08528d8d483aaef5e91f1a8646e066febf06
Author: Benjamin Otte <otte redhat com>
Date: Wed Aug 2 16:59:09 2017 +0100
eventbox: Remove
docs/reference/gtk/drawing-model.xml | 75 -------
docs/reference/gtk/gtk4-sections.txt | 20 --
docs/reference/gtk/input-handling.xml | 8 -
docs/reference/gtk/question_index.sgml | 5 -
gtk/Makefile.am | 2 -
gtk/gtk-autocleanups.h | 1 -
gtk/gtk.h | 1 -
gtk/gtkcombobox.c | 1 -
gtk/gtkeventbox.c | 355 --------------------------------
gtk/gtkeventbox.h | 86 --------
gtk/gtkplacesviewrow.c | 1 -
gtk/gtkprintunixdialog.c | 1 -
gtk/gtkrecentchooserdefault.c | 1 -
gtk/makefile.msc.in | 2 -
gtk/meson.build | 2 -
15 files changed, 0 insertions(+), 561 deletions(-)
---
diff --git a/docs/reference/gtk/drawing-model.xml b/docs/reference/gtk/drawing-model.xml
index a6a5285..a608e75 100644
--- a/docs/reference/gtk/drawing-model.xml
+++ b/docs/reference/gtk/drawing-model.xml
@@ -342,81 +342,6 @@ my_widget_init (MyWidget *widget)
</refsect2>
</refsect1>
- <refsect1 id="app-paintable-widgets">
- <title>App-paintable widgets</title>
-
- <para>
- Generally, applications use the pre-defined widgets in GTK+ and
- they do not draw extra things on top of them (the exception
- being <classname>GtkDrawingArea</classname>). However,
- applications may sometimes find it convenient to draw directly
- on certain widgets like toplevel windows or event boxes. When
- this is the case, GTK+ needs to be told not to overwrite your
- drawing afterwards, when the window gets to drawing its default
- contents.
- </para>
-
- <para>
- <classname>GtkWindow</classname> and
- <classname>GtkEventBox</classname> are the two widgets that allow
- turning off drawing of default contents by calling
- <function>gtk_widget_set_app_paintable()</function>. If you call
- this function, they will not draw their contents and let you do
- it instead.
- </para>
-
- <para>
- Since the #GtkWidget::draw signal runs user-connected handlers
- <emphasis>before</emphasis> the widget's default handler, what
- usually happens is this:
- </para>
-
- <orderedlist>
- <listitem>
- <para>
- Your own draw handler gets run. It paints something
- on the window or the event box.
- </para>
- </listitem>
-
- <listitem>
- <para>
- The widget's default draw handler gets run. If
- <function>gtk_widget_set_app_paintable()</function> has not
- been called to turn off widget drawing (this
- is the default), <emphasis>your drawing will be
- overwritten</emphasis>. An app paintable widget will not
- draw its default contents however and preserve your drawing
- instead.
- </para>
- </listitem>
-
- <listitem>
- <para>
- The draw handler for the parent class gets run.
- Since both <classname>GtkWindow</classname> and
- <classname>GtkEventBox</classname> are descendants of
- <classname>GtkContainer</classname>, their no-window
- children will be asked to draw themselves recursively, as
- described in <xref linkend="hierarchical-drawing"/>.
- </para>
- </listitem>
- </orderedlist>
-
- <formalpara>
- <title>Summary of app-paintable widgets</title>
-
- <para>
- Call <function>gtk_widget_set_app_paintable()</function> if you
- intend to draw your own content directly on a
- <classname>GtkWindow</classname> and
- <classname>GtkEventBox</classname>. You seldom need to draw
- on top of other widgets, and
- <classname>GtkDrawingArea</classname> ignores this flag, as it
- <emphasis>is</emphasis> intended to be drawn on.
- </para>
- </formalpara>
- </refsect1>
</refentry>
<!--
diff --git a/docs/reference/gtk/gtk4-sections.txt b/docs/reference/gtk/gtk4-sections.txt
index a268adf..7f21939 100644
--- a/docs/reference/gtk/gtk4-sections.txt
+++ b/docs/reference/gtk/gtk4-sections.txt
@@ -1031,26 +1031,6 @@ gtk_entry_completion_get_type
</SECTION>
<SECTION>
-<FILE>gtkeventbox</FILE>
-<TITLE>GtkEventBox</TITLE>
-GtkEventBox
-GtkEventBoxClass
-gtk_event_box_new
-gtk_event_box_set_above_child
-gtk_event_box_get_above_child
-<SUBSECTION Standard>
-GTK_EVENT_BOX
-GTK_IS_EVENT_BOX
-GTK_TYPE_EVENT_BOX
-GTK_EVENT_BOX_CLASS
-GTK_IS_EVENT_BOX_CLASS
-GTK_EVENT_BOX_GET_CLASS
-<SUBSECTION Private>
-GtkEventBoxPrivate
-gtk_event_box_get_type
-</SECTION>
-
-<SECTION>
<FILE>gtkexpander</FILE>
<TITLE>GtkExpander</TITLE>
GtkExpander
diff --git a/docs/reference/gtk/input-handling.xml b/docs/reference/gtk/input-handling.xml
index 0b33eb9..d907d67 100644
--- a/docs/reference/gtk/input-handling.xml
+++ b/docs/reference/gtk/input-handling.xml
@@ -192,14 +192,6 @@
</para>
<para>
- If a widget is windowless (gtk_widget_get_has_window() returns %FALSE) and
- an application wants to receive custom events on it, it must be placed
- inside a #GtkEventBox to receive the events, and an appropriate event mask
- must be set on the box. When implementing a widget, use a %GDK_INPUT_ONLY
- #GdkWindow to receive the events instead.
- </para>
-
- <para>
Filtering events against event masks happens inside #GdkWindow, which
exposes event masks to the windowing system to reduce the number of events
GDK receives from it. On receiving an event, it is filtered against the
diff --git a/docs/reference/gtk/question_index.sgml b/docs/reference/gtk/question_index.sgml
index 0d862ae..c1093ec 100644
--- a/docs/reference/gtk/question_index.sgml
+++ b/docs/reference/gtk/question_index.sgml
@@ -656,11 +656,6 @@ How do I change the color of a widget?
See gtk_widget_override_color() and gtk_widget_override_background_color().
You can also change the appearance of a widget by installing a
custom style provider, see gtk_style_context_add_provider().
-</para>
-
-<para>To change the background color for widgets such as #GtkLabel that
-have no background, place them in a #GtkEventBox and set the background
-of the event box.
</para></answer>
</qandaentry>
diff --git a/gtk/Makefile.am b/gtk/Makefile.am
index 15e697e..eca8907 100644
--- a/gtk/Makefile.am
+++ b/gtk/Makefile.am
@@ -189,7 +189,6 @@ gtk_public_h_sources = \
gtkentrybuffer.h \
gtkentrycompletion.h \
gtkenums.h \
- gtkeventbox.h \
gtkeventcontroller.h \
gtkexpander.h \
gtkfilechooser.h \
@@ -726,7 +725,6 @@ gtk_base_c_sources = \
gtkentry.c \
gtkentrybuffer.c \
gtkentrycompletion.c \
- gtkeventbox.c \
gtkeventcontroller.c \
gtkexpander.c \
gtkfilechooser.c \
diff --git a/gtk/gtk-autocleanups.h b/gtk/gtk-autocleanups.h
index a46e35a..ecddaf9 100644
--- a/gtk/gtk-autocleanups.h
+++ b/gtk/gtk-autocleanups.h
@@ -68,7 +68,6 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkEditable, g_object_unref)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkEntry, g_object_unref)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkEntryBuffer, g_object_unref)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkEntryCompletion, g_object_unref)
-G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkEventBox, g_object_unref)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkEventController, g_object_unref)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkExpander, g_object_unref)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkFileChooserButton, g_object_unref)
diff --git a/gtk/gtk.h b/gtk/gtk.h
index 0e8b26f..eb31ee2 100644
--- a/gtk/gtk.h
+++ b/gtk/gtk.h
@@ -93,7 +93,6 @@
#include <gtk/gtkentrybuffer.h>
#include <gtk/gtkentrycompletion.h>
#include <gtk/gtkenums.h>
-#include <gtk/gtkeventbox.h>
#include <gtk/gtkeventcontroller.h>
#include <gtk/gtkexpander.h>
#include <gtk/gtkfixed.h>
diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c
index ce4097b..167124e 100644
--- a/gtk/gtkcombobox.c
+++ b/gtk/gtkcombobox.c
@@ -26,7 +26,6 @@
#include "gtkcellrenderertext.h"
#include "gtkcellview.h"
#include "gtkcontainerprivate.h"
-#include "gtkeventbox.h"
#include "gtkframe.h"
#include "gtkiconprivate.h"
#include "gtkbox.h"
diff --git a/gtk/gtkplacesviewrow.c b/gtk/gtkplacesviewrow.c
index eb00df7..70d8e8d 100644
--- a/gtk/gtkplacesviewrow.c
+++ b/gtk/gtkplacesviewrow.c
@@ -28,7 +28,6 @@
*/
#ifdef GTK_COMPILATION
#include "gtkbutton.h"
-#include "gtkeventbox.h"
#include "gtkimage.h"
#include "gtkintl.h"
#include "gtklabel.h"
diff --git a/gtk/gtkprintunixdialog.c b/gtk/gtkprintunixdialog.c
index e630ad8..5a31fd5 100644
--- a/gtk/gtkprintunixdialog.c
+++ b/gtk/gtkprintunixdialog.c
@@ -48,7 +48,6 @@
#include "gtkgrid.h"
#include "gtkframe.h"
#include "gtklabel.h"
-#include "gtkeventbox.h"
#include "gtkbuildable.h"
#include "gtkmessagedialog.h"
#include "gtkbutton.h"
diff --git a/gtk/gtkrecentchooserdefault.c b/gtk/gtkrecentchooserdefault.c
index 6d85951..f65c568 100644
--- a/gtk/gtkrecentchooserdefault.c
+++ b/gtk/gtkrecentchooserdefault.c
@@ -41,7 +41,6 @@
#include "gtkcssiconthemevalueprivate.h"
#include "gtkdragsource.h"
#include "gtkentry.h"
-#include "gtkeventbox.h"
#include "gtkexpander.h"
#include "gtkframe.h"
#include "gtkbox.h"
diff --git a/gtk/makefile.msc.in b/gtk/makefile.msc.in
index 01515e8..416d920 100644
--- a/gtk/makefile.msc.in
+++ b/gtk/makefile.msc.in
@@ -203,7 +203,6 @@ gtk_OBJECTS = \
gtkentry.obj \
gtkentrybuffer.obj \
gtkentrycompletion.obj \
- gtkeventbox.obj \
gtkexpander.obj \
gtkfixed.obj \
gtkfontsel.obj \
@@ -392,7 +391,6 @@ gtk_public_h_sources = \
gtkentrybuffer.h \
gtkentrycompletion.h \
gtkenums.h \
- gtkeventbox.h \
gtkexpander.h \
gtkfilechooser.h \
gtkfilechooserbutton.h \
diff --git a/gtk/meson.build b/gtk/meson.build
index 0444bf2..393a5cd 100644
--- a/gtk/meson.build
+++ b/gtk/meson.build
@@ -144,7 +144,6 @@ gtk_public_sources = files([
'gtkentry.c',
'gtkentrybuffer.c',
'gtkentrycompletion.c',
- 'gtkeventbox.c',
'gtkeventcontroller.c',
'gtkexpander.c',
'gtkfilechooser.c',
@@ -435,7 +434,6 @@ gtk_public_headers = files([
'gtkentrybuffer.h',
'gtkentrycompletion.h',
'gtkenums.h',
- 'gtkeventbox.h',
'gtkeventcontroller.h',
'gtkexpander.h',
'gtkfilechooser.h',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]