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>
This commit is contained in:
Caolán McNamara 2020-12-20 19:49:36 +00:00
parent d7bfa244a8
commit 1b3589bb4a
2 changed files with 4 additions and 3 deletions

View file

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

View file

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