Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Thu, 25 Apr 2024 20:38:08 UTC Commit: 9f420e09447cc2f8a57e4880dfa99bebc67734e7 https://github.com/geany/geany-plugins/commit/9f420e09447cc2f8a57e4880dfa99b...
Log Message: ----------- webhelper: Replace use of deprecated GtkVBox with GtkBox
Modified Paths: -------------- webhelper/src/gwh-browser.c webhelper/src/gwh-plugin.c
Modified: webhelper/src/gwh-browser.c 4 lines changed, 3 insertions(+), 1 deletions(-) =================================================================== @@ -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 @@ -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 ();
Modified: webhelper/src/gwh-plugin.c 6 lines changed, 3 insertions(+), 3 deletions(-) =================================================================== @@ -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"); @@ -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,
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).