diff --git a/gtk/Makefile.am b/gtk/Makefile.am index 68b3eeb1a9..c281666dde 100644 --- a/gtk/Makefile.am +++ b/gtk/Makefile.am @@ -530,6 +530,7 @@ gtk_private_h_sources = \ gtkprivate.h \ gtkpixelcacheprivate.h \ gtkquery.h \ + gtkrangeprivate.h \ gtkrbtree.h \ gtkrecentchooserdefault.h \ gtkrecentchooserprivate.h \ @@ -563,6 +564,7 @@ gtk_private_h_sources = \ gtkthemingbackgroundprivate.h \ gtkthemingengineprivate.h \ gtktrashmonitor.h \ + gtktoolbarprivate.h \ gtktoolpaletteprivate.h \ gtktreedatalist.h \ gtktreeprivate.h \ diff --git a/gtk/a11y/gtkimageaccessible.c b/gtk/a11y/gtkimageaccessible.c index 08ab5189d3..57b7e09b34 100644 --- a/gtk/a11y/gtkimageaccessible.c +++ b/gtk/a11y/gtkimageaccessible.c @@ -20,6 +20,7 @@ #include #include #include "gtkimageaccessible.h" +#include "gtktoolbarprivate.h" #include "gtkintl.h" struct _GtkImageAccessiblePrivate diff --git a/gtk/gtkaccelgroup.h b/gtk/gtkaccelgroup.h index 25b85cd1dd..ffc2e7d706 100644 --- a/gtk/gtkaccelgroup.h +++ b/gtk/gtkaccelgroup.h @@ -229,27 +229,12 @@ GDK_AVAILABLE_IN_ALL GdkModifierType gtk_accelerator_get_default_mod_mask (void); - -/* --- internal --- */ GDK_AVAILABLE_IN_ALL GtkAccelGroupEntry* gtk_accel_group_query (GtkAccelGroup *accel_group, guint accel_key, GdkModifierType accel_mods, guint *n_entries); -void _gtk_accel_group_reconnect (GtkAccelGroup *accel_group, - GQuark accel_path_quark); -GSList* _gtk_accel_group_get_accelerables (GtkAccelGroup *accel_group); - -struct _GtkAccelGroupEntry -{ - GtkAccelKey key; - GClosure *closure; - GQuark accel_path_quark; -}; - - G_END_DECLS - #endif /* __GTK_ACCEL_GROUP_H__ */ diff --git a/gtk/gtkaccelgroupprivate.h b/gtk/gtkaccelgroupprivate.h index f1eb28ac42..0537f1f75e 100644 --- a/gtk/gtkaccelgroupprivate.h +++ b/gtk/gtkaccelgroupprivate.h @@ -1,5 +1,6 @@ /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* GTK - The GIMP Toolkit + * Copyright (C) 1998, 2001 Tim Janik * Copyright (C) Javier Jardón * * This library is free software; you can redistribute it and/or @@ -20,6 +21,10 @@ #define __GTK_ACCEL_GROUP_PRIVATE_H__ +#include + +G_BEGIN_DECLS + struct _GtkAccelGroupPrivate { guint lock_count; @@ -29,4 +34,17 @@ struct _GtkAccelGroupPrivate GtkAccelGroupEntry *priv_accels; }; -#endif /* __GTK_ACCEL_GROUP_PRIVATE_H__ */ +void _gtk_accel_group_reconnect (GtkAccelGroup *accel_group, + GQuark accel_path_quark); +GSList* _gtk_accel_group_get_accelerables (GtkAccelGroup *accel_group); + +struct _GtkAccelGroupEntry +{ + GtkAccelKey key; + GClosure *closure; + GQuark accel_path_quark; +}; + +G_END_DECLS + +#endif /* __GTK_ACCEL_GROUP_PRIVATE_H__ */ diff --git a/gtk/gtkaccelmap.c b/gtk/gtkaccelmap.c index 791a593c7c..c3a196d277 100644 --- a/gtk/gtkaccelmap.c +++ b/gtk/gtkaccelmap.c @@ -18,6 +18,7 @@ #include "config.h" #include "gtkaccelmapprivate.h" +#include "gtkaccelgroupprivate.h" #include "gtkmarshalers.h" #include "gtkwindowprivate.h" diff --git a/gtk/gtkaccelmapprivate.h b/gtk/gtkaccelmapprivate.h index e825dd3abe..8be1e5e74a 100644 --- a/gtk/gtkaccelmapprivate.h +++ b/gtk/gtkaccelmapprivate.h @@ -19,10 +19,6 @@ #define __GTK_ACCEL_MAP_PRIVATE_H__ -#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) -#error "Only can be included directly." -#endif - #include G_BEGIN_DECLS diff --git a/gtk/gtkappchooserprivate.h b/gtk/gtkappchooserprivate.h index 609bc18600..b5fe2e9aec 100644 --- a/gtk/gtkappchooserprivate.h +++ b/gtk/gtkappchooserprivate.h @@ -29,6 +29,8 @@ #include "gtkappchooserwidget.h" #include "gtkentry.h" +G_BEGIN_DECLS + typedef struct _GtkAppChooserIface GtkAppChooserIface; typedef GtkAppChooserIface GtkAppChooserInterface; @@ -45,4 +47,7 @@ void _gtk_app_chooser_widget_set_search_entry (GtkAppChooserWidget *self, GtkEntry *entry); + +G_END_DECLS + #endif /* __GTK_APP_CHOOSER_PRIVATE_H__ */ diff --git a/gtk/gtkapplication-quartz-menu.c b/gtk/gtkapplication-quartz-menu.c index 41fbea6a3e..cff1bc948d 100644 --- a/gtk/gtkapplication-quartz-menu.c +++ b/gtk/gtkapplication-quartz-menu.c @@ -23,7 +23,7 @@ #include "gtkapplicationprivate.h" #include "gtkmenutracker.h" #include "gtkicontheme.h" -#include "gtktoolbar.h" +#include "gtktoolbarprivate.h" #include "gtkquartz.h" #include diff --git a/gtk/gtkapplicationprivate.h b/gtk/gtkapplicationprivate.h index 3ba26d5c17..5378c23b17 100644 --- a/gtk/gtkapplicationprivate.h +++ b/gtk/gtkapplicationprivate.h @@ -26,34 +26,27 @@ #include "gtkactionmuxer.h" -G_GNUC_INTERNAL +G_BEGIN_DECLS + void gtk_application_window_set_id (GtkApplicationWindow *window, guint id); -G_GNUC_INTERNAL GActionGroup * gtk_application_window_get_action_group (GtkApplicationWindow *window); -G_GNUC_INTERNAL void gtk_application_handle_window_realize (GtkApplication *application, GtkWindow *window); -G_GNUC_INTERNAL void gtk_application_handle_window_map (GtkApplication *application, GtkWindow *window); -G_GNUC_INTERNAL GtkActionMuxer * gtk_application_get_parent_muxer_for_window (GtkWindow *window); -G_GNUC_INTERNAL gboolean gtk_application_activate_accel (GtkApplication *application, GActionGroup *action_group, guint key, GdkModifierType modifier); -G_GNUC_INTERNAL void gtk_application_foreach_accel_keys (GtkApplication *application, GtkWindow *window, GtkWindowKeysForeachFunc callback, gpointer user_data); -G_GNUC_INTERNAL GtkActionMuxer * gtk_application_get_action_muxer (GtkApplication *application); -G_GNUC_INTERNAL void gtk_application_insert_action_group (GtkApplication *application, const gchar *name, GActionGroup *action_group); @@ -153,67 +146,48 @@ typedef struct GtkWindow *window); } GtkApplicationImplDBusClass; -G_GNUC_INTERNAL GType gtk_application_impl_get_type (void); -G_GNUC_INTERNAL GType gtk_application_impl_dbus_get_type (void); -G_GNUC_INTERNAL GType gtk_application_impl_x11_get_type (void); -G_GNUC_INTERNAL GType gtk_application_impl_wayland_get_type (void); -G_GNUC_INTERNAL GType gtk_application_impl_quartz_get_type (void); -G_GNUC_INTERNAL GtkApplicationImpl * gtk_application_impl_new (GtkApplication *application, GdkDisplay *display); -G_GNUC_INTERNAL void gtk_application_impl_startup (GtkApplicationImpl *impl, gboolean register_sesion); -G_GNUC_INTERNAL void gtk_application_impl_shutdown (GtkApplicationImpl *impl); -G_GNUC_INTERNAL void gtk_application_impl_before_emit (GtkApplicationImpl *impl, GVariant *platform_data); -G_GNUC_INTERNAL void gtk_application_impl_window_added (GtkApplicationImpl *impl, GtkWindow *window); -G_GNUC_INTERNAL void gtk_application_impl_window_removed (GtkApplicationImpl *impl, GtkWindow *window); -G_GNUC_INTERNAL void gtk_application_impl_active_window_changed (GtkApplicationImpl *impl, GtkWindow *window); -G_GNUC_INTERNAL void gtk_application_impl_handle_window_realize (GtkApplicationImpl *impl, GtkWindow *window); -G_GNUC_INTERNAL void gtk_application_impl_handle_window_map (GtkApplicationImpl *impl, GtkWindow *window); -G_GNUC_INTERNAL void gtk_application_impl_set_app_menu (GtkApplicationImpl *impl, GMenuModel *app_menu); -G_GNUC_INTERNAL void gtk_application_impl_set_menubar (GtkApplicationImpl *impl, GMenuModel *menubar); -G_GNUC_INTERNAL guint gtk_application_impl_inhibit (GtkApplicationImpl *impl, GtkWindow *window, GtkApplicationInhibitFlags flags, const gchar *reason); -G_GNUC_INTERNAL void gtk_application_impl_uninhibit (GtkApplicationImpl *impl, guint cookie); -G_GNUC_INTERNAL gboolean gtk_application_impl_is_inhibited (GtkApplicationImpl *impl, GtkApplicationInhibitFlags flags); -G_GNUC_INTERNAL gchar * gtk_application_impl_dbus_get_window_path (GtkApplicationImplDBus *dbus, GtkWindow *window); -G_GNUC_INTERNAL void gtk_application_impl_quartz_setup_menu (GMenuModel *model, GtkActionMuxer *muxer); +G_END_DECLS + #endif /* __GTK_APPLICATION_PRIVATE_H__ */ diff --git a/gtk/gtkclipboard-waylandprivate.h b/gtk/gtkclipboard-waylandprivate.h index d2d1f22535..466d63ef68 100644 --- a/gtk/gtkclipboard-waylandprivate.h +++ b/gtk/gtkclipboard-waylandprivate.h @@ -25,6 +25,8 @@ #include #include +G_BEGIN_DECLS + #define GTK_TYPE_CLIPBOARD_WAYLAND (gtk_clipboard_wayland_get_type ()) #define GTK_CLIPBOARD_WAYLAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CLIPBOARD_WAYLAND, GtkClipboardWayland)) #define GTK_IS_CLIPBOARD_WAYLAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CLIPBOARD_WAYLAND)) @@ -51,6 +53,8 @@ struct _GtkClipboardWaylandClass GType gtk_clipboard_wayland_get_type (void) G_GNUC_CONST; +G_END_DECLS + #endif /* GDK_WINDOWING_WAYLAND */ #endif /* __GTK_CLIPBOARD_WAYLAND_WAYLAND_PRIVATE_H__ */ diff --git a/gtk/gtkclipboardprivate.h b/gtk/gtkclipboardprivate.h index 48e1b05997..2e0127f880 100644 --- a/gtk/gtkclipboardprivate.h +++ b/gtk/gtkclipboardprivate.h @@ -22,6 +22,8 @@ #include +G_BEGIN_DECLS + #define GTK_CLIPBOARD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CLIPBOARD, GtkClipboardClass)) #define GTK_IS_CLIPBOARD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CLIPBOARD)) #define GTK_CLIPBOARD_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CLIPBOARD, GtkClipboardClass)) @@ -82,4 +84,6 @@ struct _GtkClipboardClass GdkEventOwnerChange *event); }; +G_END_DECLS + #endif /* __GTK_CLIPBOARD_PRIVATE_H__ */ diff --git a/gtk/gtkcoloreditorprivate.h b/gtk/gtkcoloreditorprivate.h index 51a31234e1..c0d40b3510 100644 --- a/gtk/gtkcoloreditorprivate.h +++ b/gtk/gtkcoloreditorprivate.h @@ -18,10 +18,6 @@ #ifndef __GTK_COLOR_EDITOR_H__ #define __GTK_COLOR_EDITOR_H__ -#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) -#error "Only can be included directly." -#endif - #include G_BEGIN_DECLS @@ -57,10 +53,7 @@ struct _GtkColorEditorClass }; -G_GNUC_INTERNAL GType gtk_color_editor_get_type (void) G_GNUC_CONST; - -G_GNUC_INTERNAL GtkWidget * gtk_color_editor_new (void); G_END_DECLS diff --git a/gtk/gtkcolorplaneprivate.h b/gtk/gtkcolorplaneprivate.h index 01c1ddb11b..abb1a8184b 100644 --- a/gtk/gtkcolorplaneprivate.h +++ b/gtk/gtkcolorplaneprivate.h @@ -18,10 +18,6 @@ #ifndef __GTK_COLOR_PLANE_H__ #define __GTK_COLOR_PLANE_H__ -#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) -#error "Only can be included directly." -#endif - #include #include @@ -58,10 +54,7 @@ struct _GtkColorPlaneClass }; -G_GNUC_INTERNAL GType gtk_color_plane_get_type (void) G_GNUC_CONST; - -G_GNUC_INTERNAL GtkWidget * gtk_color_plane_new (GtkAdjustment *h_adj, GtkAdjustment *s_adj, GtkAdjustment *v_adj); diff --git a/gtk/gtkcolorscaleprivate.h b/gtk/gtkcolorscaleprivate.h index 1b843f3135..9ce776bb37 100644 --- a/gtk/gtkcolorscaleprivate.h +++ b/gtk/gtkcolorscaleprivate.h @@ -18,10 +18,6 @@ #ifndef __GTK_COLOR_SCALE_H__ #define __GTK_COLOR_SCALE_H__ -#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) -#error "Only can be included directly." -#endif - #include G_BEGIN_DECLS @@ -62,14 +58,9 @@ typedef enum GTK_COLOR_SCALE_ALPHA } GtkColorScaleType; -G_GNUC_INTERNAL GType gtk_color_scale_get_type (void) G_GNUC_CONST; - -G_GNUC_INTERNAL GtkWidget * gtk_color_scale_new (GtkAdjustment *adjustment, GtkColorScaleType type); - -G_GNUC_INTERNAL void gtk_color_scale_set_rgba (GtkColorScale *scale, const GdkRGBA *color); diff --git a/gtk/gtkcolorswatchprivate.h b/gtk/gtkcolorswatchprivate.h index 67ed17525a..f7e80bc9da 100644 --- a/gtk/gtkcolorswatchprivate.h +++ b/gtk/gtkcolorswatchprivate.h @@ -15,12 +15,8 @@ * License along with this library. If not, see . */ -#ifndef __GTK_COLOR_SWATCH_H__ -#define __GTK_COLOR_SWATCH_H__ - -#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) -#error "Only can be included directly." -#endif +#ifndef __GTK_COLOR_SWATCH_PRIVATE_H__ +#define __GTK_COLOR_SWATCH_PRIVATE_H__ #include @@ -61,39 +57,27 @@ struct _GtkColorSwatchClass }; -G_GNUC_INTERNAL GType gtk_color_swatch_get_type (void) G_GNUC_CONST; - -G_GNUC_INTERNAL GtkWidget * gtk_color_swatch_new (void); - -G_GNUC_INTERNAL void gtk_color_swatch_set_rgba (GtkColorSwatch *swatch, const GdkRGBA *color); -G_GNUC_INTERNAL gboolean gtk_color_swatch_get_rgba (GtkColorSwatch *swatch, GdkRGBA *color); -G_GNUC_INTERNAL void gtk_color_swatch_set_hsva (GtkColorSwatch *swatch, gdouble h, gdouble s, gdouble v, gdouble a); -G_GNUC_INTERNAL void gtk_color_swatch_set_can_drop (GtkColorSwatch *swatch, gboolean can_drop); -G_GNUC_INTERNAL void gtk_color_swatch_set_icon (GtkColorSwatch *swatch, const gchar *icon); -G_GNUC_INTERNAL void gtk_color_swatch_set_use_alpha (GtkColorSwatch *swatch, gboolean use_alpha); -G_GNUC_INTERNAL void gtk_color_swatch_set_selectable (GtkColorSwatch *swatch, gboolean selectable); -G_GNUC_INTERNAL gboolean gtk_color_swatch_get_selectable (GtkColorSwatch *swatch); G_END_DECLS -#endif /* __GTK_COLOR_SWATCH_H__ */ +#endif /* __GTK_COLOR_SWATCH_PRIVATE_H__ */ diff --git a/gtk/gtkheaderbarprivate.h b/gtk/gtkheaderbarprivate.h index 66c5433bdf..e11506d344 100644 --- a/gtk/gtkheaderbarprivate.h +++ b/gtk/gtkheaderbarprivate.h @@ -20,9 +20,13 @@ #ifndef __GTK_HEADER_BAR_PRIVATE_H__ #define __GTK_HEADER_BAR_PRIVATE_H__ +G_BEGIN_DECLS + gboolean _gtk_header_bar_shows_app_menu (GtkHeaderBar *bar); void _gtk_header_bar_update_window_buttons (GtkHeaderBar *bar); gboolean _gtk_header_bar_update_window_icon (GtkHeaderBar *bar, GtkWindow *window); +G_END_DECLS + #endif /* __GTK_HEADER_BAR_PRIVATE_H__ */ diff --git a/gtk/gtknumerableiconprivate.h b/gtk/gtknumerableiconprivate.h index aee567a798..cea6d6488f 100644 --- a/gtk/gtknumerableiconprivate.h +++ b/gtk/gtknumerableiconprivate.h @@ -24,7 +24,11 @@ #include "gtknumerableicon.h" +G_BEGIN_DECLS + void _gtk_numerable_icon_set_background_icon_size (GtkNumerableIcon *self, gint icon_size); +G_END_DECLS + #endif /* __GTK_NUMERABLE_ICON_PRIVATE_H__ */ diff --git a/gtk/gtkpressandholdprivate.h b/gtk/gtkpressandholdprivate.h index 4dcc6986f6..5574484d02 100644 --- a/gtk/gtkpressandholdprivate.h +++ b/gtk/gtkpressandholdprivate.h @@ -53,13 +53,8 @@ struct _GtkPressAndHoldClass }; -G_GNUC_INTERNAL GType gtk_press_and_hold_get_type (void) G_GNUC_CONST; - -G_GNUC_INTERNAL GtkPressAndHold * gtk_press_and_hold_new (void); - -G_GNUC_INTERNAL void gtk_press_and_hold_process_event (GtkPressAndHold *pah, GdkEvent *event); diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c index c66d2bddb9..6978674464 100644 --- a/gtk/gtkrange.c +++ b/gtk/gtkrange.c @@ -29,6 +29,7 @@ #include #include "gtkrange.h" +#include "gtkrangeprivate.h" #include "gtkadjustment.h" #include "gtkcolorscaleprivate.h" diff --git a/gtk/gtkrange.h b/gtk/gtkrange.h index 94c809cdda..24a7ea1413 100644 --- a/gtk/gtkrange.h +++ b/gtk/gtkrange.h @@ -173,22 +173,6 @@ void gtk_range_set_round_digits (GtkRange *range GDK_AVAILABLE_IN_ALL gint gtk_range_get_round_digits (GtkRange *range); -/* internal API */ -gdouble _gtk_range_get_wheel_delta (GtkRange *range, - GdkEventScroll *event); -void _gtk_range_set_has_origin (GtkRange *range, - gboolean has_origin); -gboolean _gtk_range_get_has_origin (GtkRange *range); -void _gtk_range_set_stop_values (GtkRange *range, - gdouble *values, - gint n_values); -gint _gtk_range_get_stop_positions (GtkRange *range, - gint **values); -void _gtk_range_set_steppers (GtkRange *range, - gboolean has_a, - gboolean has_b, - gboolean has_c, - gboolean has_d); G_END_DECLS diff --git a/gtk/gtkrangeprivate.h b/gtk/gtkrangeprivate.h new file mode 100644 index 0000000000..52512ef7ac --- /dev/null +++ b/gtk/gtkrangeprivate.h @@ -0,0 +1,53 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * 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 . + */ + +/* + * 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_RANGE_PRIVATE_H__ +#define __GTK_RANGE_PRIVATE_H__ + + +#include + + +G_BEGIN_DECLS + +gdouble _gtk_range_get_wheel_delta (GtkRange *range, + GdkEventScroll *event); +void _gtk_range_set_has_origin (GtkRange *range, + gboolean has_origin); +gboolean _gtk_range_get_has_origin (GtkRange *range); +void _gtk_range_set_stop_values (GtkRange *range, + gdouble *values, + gint n_values); +gint _gtk_range_get_stop_positions (GtkRange *range, + gint **values); +void _gtk_range_set_steppers (GtkRange *range, + gboolean has_a, + gboolean has_b, + gboolean has_c, + gboolean has_d); + +G_END_DECLS + + +#endif /* __GTK_RANGE_PRIVATE_H__ */ diff --git a/gtk/gtkscale.c b/gtk/gtkscale.c index 435f877b18..ace2053474 100644 --- a/gtk/gtkscale.c +++ b/gtk/gtkscale.c @@ -29,6 +29,7 @@ #include #include "gtkscaleprivate.h" +#include "gtkrangeprivate.h" #include "gtkadjustment.h" #include "gtkbindings.h" diff --git a/gtk/gtkscrollbar.c b/gtk/gtkscrollbar.c index 2fbbeba93f..a609045c86 100644 --- a/gtk/gtkscrollbar.c +++ b/gtk/gtkscrollbar.c @@ -26,6 +26,7 @@ #include "config.h" #include "gtkscrollbar.h" +#include "gtkrangeprivate.h" #include "gtkadjustment.h" #include "gtkintl.h" diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c index b93689cb51..8c33e985fb 100644 --- a/gtk/gtkscrolledwindow.c +++ b/gtk/gtkscrolledwindow.c @@ -35,6 +35,7 @@ #include "gtkprivate.h" #include "gtkscrollable.h" #include "gtkscrollbar.h" +#include "gtkrangeprivate.h" #include "gtktypebuiltins.h" #include "gtkviewport.h" #include "gtkwidgetprivate.h" diff --git a/gtk/gtkselectionprivate.h b/gtk/gtkselectionprivate.h index e3a4aa55b1..bd5c634f65 100644 --- a/gtk/gtkselectionprivate.h +++ b/gtk/gtkselectionprivate.h @@ -28,8 +28,8 @@ * sent. */ -#ifndef __GTK_SELECTIONPRIVATE_H__ -#define __GTK_SELECTIONPRIVATE_H__ +#ifndef __GTK_SELECTION_PRIVATE_H__ +#define __GTK_SELECTION_PRIVATE_H__ #include "gtkselection.h" @@ -67,4 +67,4 @@ gboolean _gtk_selection_property_notify (GtkWidget *widget, G_END_DECLS -#endif /* __GTK_SELECTIONPRIVATE_H__ */ +#endif /* __GTK_SELECTION_PRIVATE_H__ */ diff --git a/gtk/gtkseparatortoolitem.c b/gtk/gtkseparatortoolitem.c index c6c2a4f52d..b8ded83fb4 100644 --- a/gtk/gtkseparatortoolitem.c +++ b/gtk/gtkseparatortoolitem.c @@ -21,7 +21,7 @@ #include "gtkseparatormenuitem.h" #include "gtkseparatortoolitem.h" #include "gtkintl.h" -#include "gtktoolbar.h" +#include "gtktoolbarprivate.h" #include "gtkprivate.h" /** diff --git a/gtk/gtksizegroup-private.h b/gtk/gtksizegroup-private.h index 5eab6cf95d..11b6fa8ecd 100644 --- a/gtk/gtksizegroup-private.h +++ b/gtk/gtksizegroup-private.h @@ -21,7 +21,9 @@ #include -/** +G_BEGIN_DECLS + +/* * GtkQueueResizeFlags: * @GTK_QUEUE_RESIZE_INVALIDATE_ONLY: invalidate all cached sizes * as we would normally do when a widget is queued for resize, @@ -42,4 +44,6 @@ GHashTable * _gtk_size_group_get_widget_peers (GtkWidget *for_widget, void _gtk_size_group_queue_resize (GtkWidget *widget, GtkQueueResizeFlags flags); +G_END_DECLS + #endif /* __GTK_SIZE_GROUP_PRIVATE_H__ */ diff --git a/gtk/gtkthemingengineprivate.h b/gtk/gtkthemingengineprivate.h index 53262e152a..1b61eb496a 100644 --- a/gtk/gtkthemingengineprivate.h +++ b/gtk/gtkthemingengineprivate.h @@ -22,6 +22,8 @@ #include "gtk/gtkthemingengine.h" #include "gtk/gtkcssvalueprivate.h" +G_BEGIN_DECLS + void _gtk_theming_engine_paint_spinner (cairo_t *cr, gdouble radius, gdouble progress, @@ -33,4 +35,6 @@ void _gtk_theming_engine_set_context (GtkThemingEngine *engine, GtkStyleContext *context); GtkStyleContext *_gtk_theming_engine_get_context (GtkThemingEngine *engine); +G_END_DECLS + #endif /* __GTK_THEMING_ENGINE_PRIVATE_H__ */ diff --git a/gtk/gtktoolbar.c b/gtk/gtktoolbar.c index c5729248fb..33d91da3b5 100644 --- a/gtk/gtktoolbar.c +++ b/gtk/gtktoolbar.c @@ -34,6 +34,7 @@ #include #include "gtktoolbar.h" +#include "gtktoolbarprivate.h" #include "gtkarrow.h" #include "gtkbindings.h" diff --git a/gtk/gtktoolbar.h b/gtk/gtktoolbar.h index 6cf05322c0..f91ecfbb4f 100644 --- a/gtk/gtktoolbar.h +++ b/gtk/gtktoolbar.h @@ -146,14 +146,6 @@ void gtk_toolbar_set_drop_highlight_item (GtkToolbar *toolbar, gint index_); -/* internal functions */ -gchar * _gtk_toolbar_elide_underscores (const gchar *original); -void _gtk_toolbar_paint_space_line (GtkWidget *widget, - GtkToolbar *toolbar, - cairo_t *cr); -gint _gtk_toolbar_get_default_space_size (void); - - G_END_DECLS #endif /* __GTK_TOOLBAR_H__ */ diff --git a/gtk/gtktoolbarprivate.h b/gtk/gtktoolbarprivate.h new file mode 100644 index 0000000000..c63e90120c --- /dev/null +++ b/gtk/gtktoolbarprivate.h @@ -0,0 +1,46 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * GtkToolbar copyright (C) Federico Mena + * + * Copyright (C) 2002 Anders Carlsson + * Copyright (C) 2002 James Henstridge + * Copyright (C) 2003 Soeren Sandmann + * + * 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 . + */ + +/* + * 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_TOOLBAR_PRIVATE_H__ +#define __GTK_TOOLBAR_PRIVATE_H__ + +#include + +G_BEGIN_DECLS + +gchar * _gtk_toolbar_elide_underscores (const gchar *original); +void _gtk_toolbar_paint_space_line (GtkWidget *widget, + GtkToolbar *toolbar, + cairo_t *cr); +gint _gtk_toolbar_get_default_space_size (void); + + +G_END_DECLS + +#endif /* __GTK_TOOLBAR_PRIVATE_H__ */ diff --git a/gtk/gtktoolbutton.c b/gtk/gtktoolbutton.c index e5ac79272b..c8a51a6810 100644 --- a/gtk/gtktoolbutton.c +++ b/gtk/gtktoolbutton.c @@ -27,7 +27,7 @@ #include "deprecated/gtkstock.h" #include "gtkbox.h" #include "gtkintl.h" -#include "gtktoolbar.h" +#include "gtktoolbarprivate.h" #include "deprecated/gtkactivatable.h" #include "gtkactionable.h" #include "gtkprivate.h" diff --git a/gtk/gtktoolpaletteprivate.h b/gtk/gtktoolpaletteprivate.h index 87e544b716..a2e94e201b 100644 --- a/gtk/gtktoolpaletteprivate.h +++ b/gtk/gtktoolpaletteprivate.h @@ -23,6 +23,8 @@ #include +G_BEGIN_DECLS + void _gtk_tool_palette_get_item_size (GtkToolPalette *palette, GtkRequisition *item_size, gboolean homogeneous_only, @@ -49,4 +51,6 @@ gint _gtk_tool_item_group_get_size_for_limit (GtkToolItemGroup *group, GtkSizeGroup *_gtk_tool_palette_get_size_group (GtkToolPalette *palette); +G_END_DECLS + #endif /* __GTK_TOOL_PALETTE_PRIVATE_H__ */ diff --git a/gtk/gtktreeprivate.h b/gtk/gtktreeprivate.h index 9d0c301576..d813352572 100644 --- a/gtk/gtktreeprivate.h +++ b/gtk/gtktreeprivate.h @@ -19,13 +19,12 @@ #define __GTK_TREE_PRIVATE_H__ -G_BEGIN_DECLS - - #include #include #include +G_BEGIN_DECLS + #define TREE_VIEW_DRAG_WIDTH 6 typedef enum diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index de1a3ef44d..d3d78ddb1f 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -35,6 +35,7 @@ #include "gtkcontainer.h" #include "gtkaccelmapprivate.h" +#include "gtkaccelgroupprivate.h" #include "gtkclipboard.h" #include "gtkcssstylepropertyprivate.h" #include "gtkcssnumbervalueprivate.h"