[gnome-builder/wip/gtk4-port] libide/webkit: move gobject functions near each other
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port] libide/webkit: move gobject functions near each other
- Date: Fri, 3 Jun 2022 22:26:15 +0000 (UTC)
commit 6abb572bebd282777428fb6b14b1f41a340d4cb8
Author: Christian Hergert <chergert redhat com>
Date: Fri Jun 3 14:35:35 2022 -0700
libide/webkit: move gobject functions near each other
src/libide/webkit/ide-webkit-page.c | 30 +++++++++++++++---------------
1 file changed, 15 insertions(+), 15 deletions(-)
---
diff --git a/src/libide/webkit/ide-webkit-page.c b/src/libide/webkit/ide-webkit-page.c
index 140225500..4bdbd7234 100644
--- a/src/libide/webkit/ide-webkit-page.c
+++ b/src/libide/webkit/ide-webkit-page.c
@@ -125,21 +125,6 @@ toolbar_notify_visible_cb (IdeWebkitPage *self,
g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_SHOW_TOOLBAR]);
}
-static void
-ide_webkit_page_constructed (GObject *object)
-{
- IdeWebkitPage *self = (IdeWebkitPage *)object;
- IdeWebkitPagePrivate *priv = ide_webkit_page_get_instance_private (self);
- GtkStyleContext *context;
- GdkRGBA color;
-
- G_OBJECT_CLASS (ide_webkit_page_parent_class)->constructed (object);
-
- context = gtk_widget_get_style_context (GTK_WIDGET (priv->web_view));
- if (gtk_style_context_lookup_color (context, "theme_base_color", &color))
- webkit_web_view_set_background_color (WEBKIT_WEB_VIEW (priv->web_view), &color);
-}
-
static gboolean
ide_webkit_page_grab_focus (GtkWidget *widget)
{
@@ -157,6 +142,21 @@ ide_webkit_page_grab_focus (GtkWidget *widget)
return gtk_widget_grab_focus (GTK_WIDGET (priv->web_view));
}
+static void
+ide_webkit_page_constructed (GObject *object)
+{
+ IdeWebkitPage *self = (IdeWebkitPage *)object;
+ IdeWebkitPagePrivate *priv = ide_webkit_page_get_instance_private (self);
+ GtkStyleContext *context;
+ GdkRGBA color;
+
+ G_OBJECT_CLASS (ide_webkit_page_parent_class)->constructed (object);
+
+ context = gtk_widget_get_style_context (GTK_WIDGET (priv->web_view));
+ if (gtk_style_context_lookup_color (context, "theme_base_color", &color))
+ webkit_web_view_set_background_color (WEBKIT_WEB_VIEW (priv->web_view), &color);
+}
+
static void
ide_webkit_page_get_property (GObject *object,
guint prop_id,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]