diff options
author | Matthias Clasen <mclasen@redhat.com> | 2014-10-19 22:51:21 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2014-10-19 22:51:21 -0400 |
commit | e3ef5d6fd2df64614ca9e4ce7183bcfb48e4e0eb (patch) | |
tree | 99c9df7f6f901eb4d9eedf975f19881241c039a0 /gtk | |
parent | 3f5d4623051e8c499730880ab6c80d120aec9f44 (diff) | |
download | gtk+-e3ef5d6fd2df64614ca9e4ce7183bcfb48e4e0eb.tar.gz |
GtkTooltip: Move nonexported API to a private header
This is our standard practice nowadays.
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/Makefile.am | 1 | ||||
-rw-r--r-- | gtk/gtkdnd.c | 2 | ||||
-rw-r--r-- | gtk/gtkmain.c | 2 | ||||
-rw-r--r-- | gtk/gtktooltip.c | 1 | ||||
-rw-r--r-- | gtk/gtktooltip.h | 12 | ||||
-rw-r--r-- | gtk/gtktooltipprivate.h | 49 | ||||
-rw-r--r-- | gtk/gtkwidget.c | 2 |
7 files changed, 54 insertions, 15 deletions
diff --git a/gtk/Makefile.am b/gtk/Makefile.am index 8f986091a5..ee3293274a 100644 --- a/gtk/Makefile.am +++ b/gtk/Makefile.am @@ -672,6 +672,7 @@ gtk_private_h_sources = \ gtktogglebuttonprivate.h \ gtktoolbarprivate.h \ gtktoolpaletteprivate.h \ + gtktooltipprivate.h \ gtktreedatalist.h \ gtktreeprivate.h \ gtkwidgetprivate.h \ diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c index 6d2ad0e83d..50914e276e 100644 --- a/gtk/gtkdnd.c +++ b/gtk/gtkdnd.c @@ -48,7 +48,7 @@ #include "gtkicontheme.h" #include "gtkmain.h" #include "gtkplug.h" -#include "gtktooltip.h" +#include "gtktooltipprivate.h" #include "gtkwindow.h" #include "gtkintl.h" #include "gtkselectionprivate.h" diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c index d8c344f750..e19691c0c5 100644 --- a/gtk/gtkmain.c +++ b/gtk/gtkmain.c @@ -123,7 +123,7 @@ #include "gtkrecentmanager.h" #include "gtkselectionprivate.h" #include "gtksettingsprivate.h" -#include "gtktooltip.h" +#include "gtktooltipprivate.h" #include "gtkversion.h" #include "gtkwidgetprivate.h" #include "gtkwindowprivate.h" diff --git a/gtk/gtktooltip.c b/gtk/gtktooltip.c index 103944f2f0..8c3f2dfb28 100644 --- a/gtk/gtktooltip.c +++ b/gtk/gtktooltip.c @@ -20,6 +20,7 @@ #include "config.h" #include "gtktooltip.h" +#include "gtktooltipprivate.h" #include <math.h> #include <string.h> diff --git a/gtk/gtktooltip.h b/gtk/gtktooltip.h index 7af3c42a45..87a105f585 100644 --- a/gtk/gtktooltip.h +++ b/gtk/gtktooltip.h @@ -68,18 +68,6 @@ GDK_AVAILABLE_IN_ALL void gtk_tooltip_trigger_tooltip_query (GdkDisplay *display); -void _gtk_tooltip_focus_in (GtkWidget *widget); -void _gtk_tooltip_focus_out (GtkWidget *widget); -void _gtk_tooltip_toggle_keyboard_mode (GtkWidget *widget); -void _gtk_tooltip_handle_event (GdkEvent *event); -void _gtk_tooltip_hide (GtkWidget *widget); - -GtkWidget * _gtk_widget_find_at_coords (GdkWindow *window, - gint window_x, - gint window_y, - gint *widget_x, - gint *widget_y); - G_END_DECLS #endif /* __GTK_TOOLTIP_H__ */ diff --git a/gtk/gtktooltipprivate.h b/gtk/gtktooltipprivate.h new file mode 100644 index 0000000000..427015e007 --- /dev/null +++ b/gtk/gtktooltipprivate.h @@ -0,0 +1,49 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2014 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see <http://www.gnu.org/licenses/>. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_TOOLTIP_PRIVATE_H__ +#define __GTK_TOOLTIP_PRIVATE_H__ + + +#include <gtk/gtktooltip.h> + + +G_BEGIN_DECLS + +void _gtk_tooltip_focus_in (GtkWidget *widget); +void _gtk_tooltip_focus_out (GtkWidget *widget); +void _gtk_tooltip_toggle_keyboard_mode (GtkWidget *widget); +void _gtk_tooltip_handle_event (GdkEvent *event); +void _gtk_tooltip_hide (GtkWidget *widget); + +GtkWidget * _gtk_widget_find_at_coords (GdkWindow *window, + gint window_x, + gint window_y, + gint *widget_x, + gint *widget_y); + +G_END_DECLS + + +#endif /* __GTK_TOOLTIP_PRIVATE_H__ */ diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index 0008519282..a993db3f4d 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -53,7 +53,7 @@ #include "gtkbindings.h" #include "gtkprivate.h" #include "gtkaccessible.h" -#include "gtktooltip.h" +#include "gtktooltipprivate.h" #include "gtkinvisible.h" #include "gtkbuildable.h" #include "gtkbuilderprivate.h" |