[network-manager-vpnc] auth-dialog: use gtk_box_new() instead of gtk_(h/v)box_new()
- From: JiÅÃ KlimeÅ <jklimes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-vpnc] auth-dialog: use gtk_box_new() instead of gtk_(h/v)box_new()
- Date: Mon, 20 Jun 2011 12:21:23 +0000 (UTC)
commit 630c0b68f8277912d5582272781951bb4491f737
Author: JiÅÃ KlimeÅ <jklimes redhat com>
Date: Mon Jun 20 14:17:30 2011 +0200
auth-dialog: use gtk_box_new() instead of gtk_(h/v)box_new()
These functions have been deprecated in GTK+ 3.1.6.
auth-dialog/gnome-two-password-dialog.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/auth-dialog/gnome-two-password-dialog.c b/auth-dialog/gnome-two-password-dialog.c
index 0446cfc..5ef26f4 100644
--- a/auth-dialog/gnome-two-password-dialog.c
+++ b/auth-dialog/gnome-two-password-dialog.c
@@ -266,14 +266,22 @@ vpn_password_dialog_new (const char *title,
add_table_rows (VPN_PASSWORD_DIALOG (dialog));
/* Adds some eye-candy to the dialog */
+#if GTK_CHECK_VERSION (3,1,6)
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
+#else
hbox = gtk_hbox_new (FALSE, 12);
+#endif
gtk_container_set_border_width (GTK_CONTAINER (hbox), 5);
dialog_icon = gtk_image_new_from_stock (GTK_STOCK_DIALOG_AUTHENTICATION, GTK_ICON_SIZE_DIALOG);
gtk_misc_set_alignment (GTK_MISC (dialog_icon), 0.5, 0.0);
gtk_box_pack_start (GTK_BOX (hbox), dialog_icon, FALSE, FALSE, 0);
/* Fills the vbox */
+#if GTK_CHECK_VERSION (3,1,6)
+ main_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 18);
+#else
main_vbox = gtk_vbox_new (FALSE, 18);
+#endif
if (message) {
message_label = GTK_LABEL (gtk_label_new (message));
@@ -284,7 +292,11 @@ vpn_password_dialog_new (const char *title,
gtk_size_group_add_widget (priv->group, priv->table_alignment);
}
+#if GTK_CHECK_VERSION (3,1,6)
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
+#else
vbox = gtk_vbox_new (FALSE, 6);
+#endif
gtk_box_pack_start (GTK_BOX (main_vbox), vbox, FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (vbox), priv->table_alignment, FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (hbox), main_vbox, FALSE, FALSE, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]