[Libreoffice-commits] core.git: onlineupdate/source vcl/unx

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Mon Dec 21 08:43:23 UTC 2020


 onlineupdate/source/update/updater/progressui_gtk.cxx |    3 ++-
 vcl/unx/gtk3/fpicker/SalGtkFilePicker.cxx             |    4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)

New commits:
commit 1b3589bb4a7da27be9b1ec3573d6dcaa834416b8
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sun Dec 20 19:49:36 2020 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Dec 21 09:42:50 2020 +0100

    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 at redhat.com>

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);
 


More information about the Libreoffice-commits mailing list