[gtksourceview] assistant: fix compilation warning
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] assistant: fix compilation warning
- Date: Thu, 1 Sep 2022 20:29:24 +0000 (UTC)
commit 02926e9e8f52ca438fc8d2af4281830224cc1daa
Author: Christian Hergert <chergert redhat com>
Date: Thu Sep 1 13:29:17 2022 -0700
assistant: fix compilation warning
gtksourceview/gtksourceassistant.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/gtksourceview/gtksourceassistant.c b/gtksourceview/gtksourceassistant.c
index 0ef889b7..df5890f8 100644
--- a/gtksourceview/gtksourceassistant.c
+++ b/gtksourceview/gtksourceassistant.c
@@ -167,11 +167,10 @@ gtk_source_assistant_reposition_tick_cb (GtkWidget *widget,
GdkFrameClock *frame_clock,
gpointer user_data)
{
- GtkSourceView *view = (GtkSourceView *)widget;
GtkSourceAssistant *self = user_data;
GtkSourceAssistantPrivate *priv = _gtk_source_assistant_get_instance_private (self);
- g_assert (GTK_SOURCE_IS_VIEW (view));
+ g_assert (GTK_SOURCE_IS_VIEW (widget));
g_assert (GDK_IS_FRAME_CLOCK (frame_clock));
g_assert (GTK_SOURCE_IS_ASSISTANT (self));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]