Commit c49cc977 authored by Timm Bäder's avatar Timm Bäder 🤔
Browse files

gizmo: return void from snapshot func

This boolean return was from the old gadget code and we weren't using it
in the new gizmo code.
parent 3ca688a6
......@@ -25,7 +25,7 @@ typedef void (* GtkGizmoAllocateFunc) (GtkGizmo *gizmo,
int width,
int height,
int baseline);
typedef gboolean (* GtkGizmoSnapshotFunc) (GtkGizmo *gizmo,
typedef void (* GtkGizmoSnapshotFunc) (GtkGizmo *gizmo,
GtkSnapshot *snapshot);
......
......@@ -337,7 +337,7 @@ gtk_level_bar_get_real_inverted (GtkLevelBar *self)
return priv->inverted;
}
static gboolean
static void
gtk_level_bar_render_trough (GtkGizmo *gizmo,
GtkSnapshot *snapshot)
{
......@@ -367,8 +367,6 @@ gtk_level_bar_render_trough (GtkGizmo *gizmo,
for (i = 0; i < num_blocks; i++)
gtk_widget_snapshot_child (widget, priv->block_widget[i], snapshot);
}
return FALSE;
}
static void
......
......@@ -452,7 +452,7 @@ static void gtk_notebook_allocate_tabs (GtkGizmo *gizmo,
int width,
int height,
int baseline);
static gboolean gtk_notebook_snapshot_tabs (GtkGizmo *gizmo,
static void gtk_notebook_snapshot_tabs (GtkGizmo *gizmo,
GtkSnapshot *snapshot);
/*** GtkNotebook Private Functions ***/
......@@ -4335,7 +4335,7 @@ gtk_notebook_search_page (GtkNotebook *notebook,
return NULL;
}
static gboolean
static void
gtk_notebook_snapshot_tabs (GtkGizmo *gizmo,
GtkSnapshot *snapshot)
{
......@@ -4355,7 +4355,7 @@ gtk_notebook_snapshot_tabs (GtkGizmo *gizmo,
showarrow = FALSE;
if (!gtk_notebook_has_current_page (notebook))
return FALSE;
return;
if (!priv->first_tab)
priv->first_tab = priv->children;
......@@ -4453,8 +4453,6 @@ gtk_notebook_snapshot_tabs (GtkGizmo *gizmo,
if (priv->operation != DRAG_OPERATION_DETACH)
gtk_widget_snapshot_child (GTK_WIDGET (gizmo), priv->cur_page->tab_widget, snapshot);
return FALSE;
}
/* Private GtkNotebook Size Allocate Functions:
......
......@@ -1384,7 +1384,7 @@ gtk_paned_snapshot (GtkWidget *widget,
gtk_snapshot_pop (snapshot);
}
static gboolean
static void
gtk_paned_render_handle (GtkGizmo *gizmo,
GtkSnapshot *snapshot)
{
......@@ -1400,8 +1400,6 @@ gtk_paned_render_handle (GtkGizmo *gizmo,
snapshot,
width, height,
GTK_CSS_IMAGE_BUILTIN_PANE_SEPARATOR);
return FALSE;
}
static void
......
......@@ -446,7 +446,7 @@ allocate_trough (GtkGizmo *gizmo,
}
static gboolean
static void
snapshot_trough (GtkGizmo *gizmo,
GtkSnapshot *snapshot)
......@@ -455,8 +455,6 @@ snapshot_trough (GtkGizmo *gizmo,
GtkProgressBarPrivate *priv = gtk_progress_bar_get_instance_private (pbar);
gtk_widget_snapshot_child (GTK_WIDGET (gizmo), priv->progress_widget, snapshot);
return FALSE;
}
static void
......
......@@ -234,7 +234,7 @@ static void gtk_range_allocate_trough (GtkGizmo *gi
int width,
int height,
int baseline);
static gboolean gtk_range_render_trough (GtkGizmo *gizmo,
static void gtk_range_render_trough (GtkGizmo *gizmo,
GtkSnapshot *snapshot);
static gboolean gtk_range_scroll_controller_scroll (GtkEventControllerScroll *scroll,
......@@ -1656,7 +1656,7 @@ gtk_range_direction_changed (GtkWidget *widget,
GTK_WIDGET_CLASS (gtk_range_parent_class)->direction_changed (widget, previous_direction);
}
static gboolean
static void
gtk_range_render_trough (GtkGizmo *gizmo,
GtkSnapshot *snapshot)
{
......@@ -1681,8 +1681,6 @@ gtk_range_render_trough (GtkGizmo *gizmo,
gtk_widget_snapshot_child (GTK_WIDGET (gizmo), priv->highlight_widget, snapshot);
gtk_widget_snapshot_child (GTK_WIDGET (gizmo), priv->slider_widget, snapshot);
return gtk_widget_has_visible_focus (widget);
}
static void
......
......@@ -205,7 +205,7 @@ handle_drag_end (GtkGestureDrag *gesture,
gtk_text_handle_unset_state (handle, pos, GTK_STATE_FLAG_ACTIVE);
}
static gboolean
static void
snapshot_func (GtkGizmo *gizmo,
GtkSnapshot *snapshot)
{
......@@ -216,7 +216,6 @@ snapshot_func (GtkGizmo *gizmo,
gtk_widget_get_width (GTK_WIDGET (gizmo)),
gtk_widget_get_height (GTK_WIDGET (gizmo)),
GTK_CSS_IMAGE_BUILTIN_HANDLE);
return TRUE;
}
static GtkWidget *
......
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