Commit 95573642 authored by Emmanuele Bassi's avatar Emmanuele Bassi

gtk: Mark internal functions as static

These functions are only used within their compilation unit.
parent fbf6aa17
......@@ -2252,7 +2252,7 @@ get_focus_chain (GtkContainer *container)
/* same as gtk_container_get_children, except it includes internals
*/
GList *
static GList *
gtk_container_get_all_children (GtkContainer *container)
{
GList *children = NULL;
......
......@@ -76,7 +76,7 @@ gtk_css_animation_get_progress (GtkCssAnimation *animation)
return gtk_progress_tracker_get_progress (&animation->tracker, reverse);
}
GtkStyleAnimation *
static GtkStyleAnimation *
gtk_css_animation_advance (GtkStyleAnimation *style_animation,
gint64 timestamp)
{
......
......@@ -310,7 +310,7 @@ gtk_css_calc_value_new_sum (GtkCssValue *value1,
GtkCssValue * gtk_css_calc_value_parse_sum (GtkCssParser *parser,
GtkCssNumberParseFlags flags);
GtkCssValue *
static GtkCssValue *
gtk_css_calc_value_parse_value (GtkCssParser *parser,
GtkCssNumberParseFlags flags)
{
......@@ -346,7 +346,7 @@ is_number (GtkCssValue *value)
&& !gtk_css_number_value_has_percent (value);
}
GtkCssValue *
static GtkCssValue *
gtk_css_calc_value_parse_product (GtkCssParser *parser,
GtkCssNumberParseFlags flags)
{
......
......@@ -376,7 +376,7 @@ add_path_line (cairo_t *cr,
cairo_line_to (cr, x2, y2);
}
void
static void
gtk_css_image_builtin_draw_grip (GtkCssImage *image,
cairo_t *cr,
double width,
......@@ -627,7 +627,7 @@ gtk_css_image_builtin_draw_grip (GtkCssImage *image,
}
}
void
static void
gtk_css_image_builtin_draw_pane_separator (GtkCssImage *image,
cairo_t *cr,
double width,
......@@ -650,7 +650,7 @@ gtk_css_image_builtin_draw_pane_separator (GtkCssImage *image,
render_dot (cr, &lighter, &darker, width / 2 - 1, yy, 3);
}
void
static void
gtk_css_image_builtin_draw_handle (GtkCssImage *image,
cairo_t *cr,
double width,
......
......@@ -474,7 +474,7 @@ gtk_css_node_real_validate (GtkCssNode *node)
{
}
gboolean
static gboolean
gtk_css_node_real_init_matcher (GtkCssNode *cssnode,
GtkCssMatcher *matcher)
{
......@@ -1338,7 +1338,7 @@ gtk_css_node_invalidate (GtkCssNode *cssnode,
gtk_css_node_invalidate_style (cssnode);
}
void
static void
gtk_css_node_validate_internal (GtkCssNode *cssnode,
gint64 timestamp)
{
......
......@@ -44,7 +44,7 @@ gtk_css_path_node_invalidate (GtkCssNode *node)
gtk_style_context_validate (path_node->context, NULL);
}
gboolean
static gboolean
gtk_css_path_node_real_init_matcher (GtkCssNode *node,
GtkCssMatcher *matcher)
{
......
......@@ -373,18 +373,18 @@ gtk_css_shadow_value_start_drawing (const GtkCssValue *shadow,
return blur_cr;
}
void
static void
mask_surface_repeat (cairo_t *cr,
cairo_surface_t *surface)
{
cairo_pattern_t *pattern;
cairo_pattern_t *pattern;
pattern = cairo_pattern_create_for_surface (surface);
cairo_pattern_set_extend (pattern, CAIRO_EXTEND_REPEAT);
pattern = cairo_pattern_create_for_surface (surface);
cairo_pattern_set_extend (pattern, CAIRO_EXTEND_REPEAT);
cairo_mask (cr, pattern);
cairo_mask (cr, pattern);
cairo_pattern_destroy (pattern);
cairo_pattern_destroy (pattern);
}
static cairo_t *
......@@ -422,6 +422,8 @@ gtk_css_shadow_value_finish_drawing (const GtkCssValue *shadow,
static const cairo_user_data_key_t radius_key;
static const cairo_user_data_key_t layout_serial_key;
GQuark pango_cached_blurred_surface_quark (void);
G_DEFINE_QUARK (GtkCssShadowValue pango_cached_blurred_surface, pango_cached_blurred_surface)
static cairo_surface_t *
......
......@@ -178,7 +178,7 @@ widget_needs_widget_path (GtkWidget *widget)
return TRUE;
}
gboolean
static gboolean
gtk_css_widget_node_init_matcher (GtkCssNode *node,
GtkCssMatcher *matcher)
{
......
......@@ -243,7 +243,7 @@ init_compose_table_thread_cb (GTask *task,
gtk_im_context_simple_init_compose_table (GTK_IM_CONTEXT_SIMPLE (task_data));
}
void
static void
init_compose_table_async (GtkIMContextSimple *im_context_simple,
GCancellable *cancellable,
GAsyncReadyCallback callback,
......
......@@ -467,7 +467,7 @@ prepare_print_called (GObject *source,
g_variant_unref (ret);
}
PortalData *
static PortalData *
create_portal_data (GtkPrintOperation *op,
GtkWindow *parent,
GtkPrintOperationPrintFunc print_cb)
......
......@@ -81,7 +81,7 @@ gtk_css_style_render_icon (GtkCssStyle *style,
cairo_set_matrix (cr, &saved_matrix);
}
gboolean
static gboolean
get_surface_extents (cairo_surface_t *surface,
GdkRectangle *out_extents)
{
......
......@@ -59,7 +59,7 @@ gtk_search_engine_model_dispose (GObject *object)
G_OBJECT_CLASS (_gtk_search_engine_model_parent_class)->dispose (object);
}
gboolean
static gboolean
info_matches_query (GtkQuery *query,
GFileInfo *info)
{
......
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