Skip to content

Commit

Permalink
webhelper: Replace use of deprecated GtkVBox with GtkBox
Browse files Browse the repository at this point in the history
  • Loading branch information
b4n committed Apr 25, 2024
1 parent 52ab3eb commit 9f420e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion webhelper/src/gwh-browser.c
Expand Up @@ -78,7 +78,7 @@ static const gdouble zoom_in_factor = 1.2;
static const gdouble zoom_out_factor = 1.0 / 1.2;


G_DEFINE_TYPE_WITH_PRIVATE (GwhBrowser, gwh_browser, GTK_TYPE_VBOX)
G_DEFINE_TYPE_WITH_PRIVATE (GwhBrowser, gwh_browser, GTK_TYPE_BOX)


static void
Expand Down Expand Up @@ -893,6 +893,8 @@ gwh_browser_init (GwhBrowser *self)

self->priv = gwh_browser_get_instance_private (self);

gtk_orientable_set_orientation (GTK_ORIENTABLE (self), GTK_ORIENTATION_VERTICAL);

self->priv->default_icon = NULL;
/* web view need to be created first because we use it in create_toolbar() */
self->priv->web_view = webkit_web_view_new ();
Expand Down
6 changes: 3 additions & 3 deletions webhelper/src/gwh-plugin.c
Expand Up @@ -532,11 +532,11 @@ plugin_configure (GtkDialog *dialog)
cdialog = g_malloc (sizeof *cdialog);

/* Top-level box, containing the different frames */
box1 = gtk_vbox_new (FALSE, 12);
box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 12);

/* Browser */
gtk_box_pack_start (GTK_BOX (box1), ui_frame_new_with_alignment (_("Browser"), &alignment), FALSE, FALSE, 0);
box = gtk_vbox_new (FALSE, 0);
box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_container_add (GTK_CONTAINER (alignment), box);
/* browser position */
cdialog->browser_position = gwh_settings_widget_new (G_settings, "browser-position");
Expand All @@ -548,7 +548,7 @@ plugin_configure (GtkDialog *dialog)

/* Windows */
gtk_box_pack_start (GTK_BOX (box1), ui_frame_new_with_alignment (_("Windows"), &alignment), FALSE, FALSE, 0);
box = gtk_vbox_new (FALSE, 0);
box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_container_add (GTK_CONTAINER (alignment), box);
/* skip taskbar */
cdialog->secondary_windows_skip_taskbar = gwh_settings_widget_new (G_settings,
Expand Down

0 comments on commit 9f420e0

Please sign in to comment.