Commit dd995776 authored by Benjamin Otte's avatar Benjamin Otte

gtk: Put private functions in headers and include those

This is part of a bunch of fixes for gcc complaining about
-Wmissing-declarations.

It puts functions into headers and includes those headers both where the
functions are defined and where they function are used.
parent 101c6a05
......@@ -28,6 +28,9 @@
*/
#include "config.h"
#include "gtkprivate.h"
#include <string.h>
#include <glib.h>
......
......@@ -58,6 +58,7 @@ GtkWidget * _gtk_custom_paper_unix_dialog_new (GtkWindow
GtkUnit _gtk_print_get_default_user_units (void);
void _gtk_print_load_custom_papers (GtkListStore *store);
void _gtk_print_save_custom_papers (GtkListStore *store);
GList * _gtk_load_custom_papers (void);
G_END_DECLS
......
......@@ -33,6 +33,8 @@ typedef struct _GtkFileChooserDefault GtkFileChooserDefault;
GType _gtk_file_chooser_default_get_type (void) G_GNUC_CONST;
GtkWidget *_gtk_file_chooser_default_new (void);
gchar * _gtk_file_chooser_label_for_file (GFile *file);
G_END_DECLS
#endif /* __GTK_FILE_CHOOSER_DEFAULT_H__ */
......@@ -41,6 +41,7 @@
#include <config.h>
#include "gtknumerableicon.h"
#include "gtknumerableiconprivate.h"
#include "gtkicontheme.h"
#include "gtkintl.h"
......
......@@ -30,6 +30,10 @@
#include "gtkprintoperation.h" /* for GtkPrintError */
#include "gtkintl.h"
#ifdef G_OS_UNIX /* _gtk_load_custom_papers() only on Unix so far */
#include "gtkcustompaperunixdialog.h"
#endif
#include "paper_names_offsets.c"
......@@ -454,8 +458,6 @@ gtk_paper_size_is_equal (GtkPaperSize *size1,
gtk_paper_size_get_name (size2)) == 0;
}
GList * _gtk_load_custom_papers (void);
/**
* gtk_paper_size_get_paper_sizes:
* @include_custom: whether to include custom paper sizes
......
/*** BEGIN file-header ***/
#include "gtk.h"
#include "gtkprivate.h"
#include "gtkprivatetypebuiltins.h"
/*** END file-header ***/
......
......@@ -152,6 +152,7 @@ gtk_css_border_radius_grow (GtkRoundedBoxCorner *corner,
corner->vertical = 0;
}
}
void
_gtk_rounded_box_grow (GtkRoundedBox *box,
double top,
......
......@@ -54,6 +54,11 @@ void _gtk_rounded_box_apply_border_radius_for_context (GtkRoundedBox
GtkStyleContext *context,
GtkJunctionSides junction);
void _gtk_rounded_box_grow (GtkRoundedBox *box,
double top,
double right,
double bottom,
double left);
void _gtk_rounded_box_shrink (GtkRoundedBox *box,
double top,
double right,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment