[libepc/gtk4: 8/13] gtk4: Adapt to changed gtk_box_pack_start().
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libepc/gtk4: 8/13] gtk4: Adapt to changed gtk_box_pack_start().
- Date: Fri, 18 Nov 2016 08:54:24 +0000 (UTC)
commit 4b37b23f2dd561675570e98b2a4e2ec1b39b4ce4
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Nov 18 08:35:59 2016 +0100
gtk4: Adapt to changed gtk_box_pack_start().
examples/consumer-ui.c | 10 +++++-----
libepc-ui/password-dialog.c | 6 +-----
libepc-ui/progress-window.c | 6 +++---
3 files changed, 9 insertions(+), 13 deletions(-)
---
diff --git a/examples/consumer-ui.c b/examples/consumer-ui.c
index d1573bf..fd520d9 100644
--- a/examples/consumer-ui.c
+++ b/examples/consumer-ui.c
@@ -156,10 +156,10 @@ create_lookup_dialog (EpcConsumer *consumer,
/* Attach the widgets to some vertical box. */
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
- gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, TRUE, 0);
- gtk_box_pack_start (GTK_BOX (vbox), keys_combo, FALSE, TRUE, 0);
- gtk_box_pack_start (GTK_BOX (vbox), scroller, TRUE, TRUE, 0);
- gtk_box_pack_start (GTK_BOX (vbox), stats, FALSE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), keys_combo, FALSE, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), scroller, TRUE, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), stats, FALSE, TRUE);
gtk_widget_set_margin_top (vbox, 6);
gtk_widget_set_margin_bottom (vbox, 6);
gtk_widget_set_margin_start (vbox, 6);
@@ -174,7 +174,7 @@ create_lookup_dialog (EpcConsumer *consumer,
NULL);
gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))),
- vbox, TRUE, TRUE, 0);
+ vbox, TRUE, TRUE);
gtk_window_set_default_size (GTK_WINDOW (dialog), 500, 350);
return dialog;
diff --git a/libepc-ui/password-dialog.c b/libepc-ui/password-dialog.c
index 0fada83..24f8b88 100644
--- a/libepc-ui/password-dialog.c
+++ b/libepc-ui/password-dialog.c
@@ -168,12 +168,8 @@ epc_password_dialog_init (EpcPasswordDialog *self)
gtk_widget_show_all (table);
-#if GTK_CHECK_VERSION (2, 14, 0)
gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (self))),
- table, TRUE, TRUE, 0);
-#else
- gtk_box_pack_start (GTK_BOX (GTK_DIALOG (self)->vbox), table, TRUE, TRUE, 0);
-#endif
+ table, TRUE, TRUE);
}
static void
diff --git a/libepc-ui/progress-window.c b/libepc-ui/progress-window.c
index d8c228d..9b5894e 100644
--- a/libepc-ui/progress-window.c
+++ b/libepc-ui/progress-window.c
@@ -96,9 +96,9 @@ epc_progress_window_init (EpcProgressWindow *self)
gtk_widget_set_valign (self->priv->message, 0.5);
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
- gtk_box_pack_start (GTK_BOX (vbox), self->priv->title, FALSE, TRUE, 0);
- gtk_box_pack_start (GTK_BOX (vbox), self->priv->progress, FALSE, TRUE, 0);
- gtk_box_pack_start (GTK_BOX (vbox), self->priv->message, FALSE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), self->priv->title, FALSE, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), self->priv->progress, FALSE, TRUE);
+ gtk_box_pack_start (GTK_BOX (vbox), self->priv->message, FALSE, TRUE);
gtk_widget_show_all (vbox);
gtk_window_set_position (GTK_WINDOW (self), GTK_WIN_POS_CENTER_ALWAYS);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]