summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-12-20 19:49:36 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-12-21 09:42:50 +0100
commit1b3589bb4a7da27be9b1ec3573d6dcaa834416b8 (patch)
tree8937f9d25102fc0cc66eac9e5b8546d59089f3d9
parentd7bfa244a8f4f4b2c4fa3eedb5bb804f7542eaef (diff)
Replace more deprecated gtk_hbox_new/gtk_vbox_new with gtk_box_new
Change-Id: I8a0d36150f6436312beccfdf628fec1a26dc4466 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108060 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--onlineupdate/source/update/updater/progressui_gtk.cxx3
-rw-r--r--vcl/unx/gtk3/fpicker/SalGtkFilePicker.cxx4
2 files changed, 4 insertions, 3 deletions
diff --git a/onlineupdate/source/update/updater/progressui_gtk.cxx b/onlineupdate/source/update/updater/progressui_gtk.cxx
index 7c3bcfcd8b2d..961e4cdd92b9 100644
--- a/onlineupdate/source/update/updater/progressui_gtk.cxx
+++ b/onlineupdate/source/update/updater/progressui_gtk.cxx
@@ -107,7 +107,8 @@ ShowProgressUI()
gtk_window_set_icon(GTK_WINDOW(sWin), pixbuf);
g_object_unref(pixbuf);
- GtkWidget *vbox = gtk_vbox_new(TRUE, 6);
+ GtkWidget *vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 6);
+ gtk_box_set_homogeneous(GTK_BOX(vbox), true);
sLabel = gtk_label_new(strings.info);
gtk_misc_set_alignment(GTK_MISC(sLabel), 0.0f, 0.0f);
sProgressBar = gtk_progress_bar_new();
diff --git a/vcl/unx/gtk3/fpicker/SalGtkFilePicker.cxx b/vcl/unx/gtk3/fpicker/SalGtkFilePicker.cxx
index f1395f1e5c7a..20ac52da0c03 100644
--- a/vcl/unx/gtk3/fpicker/SalGtkFilePicker.cxx
+++ b/vcl/unx/gtk3/fpicker/SalGtkFilePicker.cxx
@@ -131,7 +131,7 @@ SalGtkFilePicker::SalGtkFilePicker( const uno::Reference< uno::XComponentContext
#endif
gtk_file_chooser_set_select_multiple( GTK_FILE_CHOOSER( m_pDialog ), false );
- m_pVBox = gtk_vbox_new( false, 0 );
+ m_pVBox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
// We don't want clickable items to have a huge hit-area
GtkWidget *pHBox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0);
@@ -173,7 +173,7 @@ SalGtkFilePicker::SalGtkFilePicker( const uno::Reference< uno::XComponentContext
for( i = 0; i < LIST_LAST; i++ )
{
- m_pHBoxs[i] = gtk_hbox_new( false, 0 );
+ m_pHBoxs[i] = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0);
m_pAligns[i] = gtk_alignment_new(0, 0, 0, 1);