diff options
author | root <root@rshg054.dnsready.net> | 2012-11-18 02:17:27 -0800 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-11-18 02:17:27 -0800 |
commit | ab63d8d49f68847a68c2ba0014bf0d3338cb3df6 (patch) | |
tree | 7f0d9cf1b60a9b65a36c3f58ab2164c62cb378f1 /extra/networkmanager-pptp/gtk_table_to_gtk_grid.patch | |
parent | 071ecd58a9b69020ec170e7f89009a603e885371 (diff) |
Sun Nov 18 02:15:18 PST 2012
Diffstat (limited to 'extra/networkmanager-pptp/gtk_table_to_gtk_grid.patch')
-rw-r--r-- | extra/networkmanager-pptp/gtk_table_to_gtk_grid.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/extra/networkmanager-pptp/gtk_table_to_gtk_grid.patch b/extra/networkmanager-pptp/gtk_table_to_gtk_grid.patch new file mode 100644 index 000000000..3483b57cc --- /dev/null +++ b/extra/networkmanager-pptp/gtk_table_to_gtk_grid.patch @@ -0,0 +1,40 @@ +From: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com> +Subject: Port GtkTable uses to GtkGrid. + +Index: network-manager-pptp/auth-dialog/vpn-password-dialog.c +=================================================================== +--- network-manager-pptp.orig/auth-dialog/vpn-password-dialog.c 2012-02-15 11:24:03.803503000 -0500 ++++ network-manager-pptp/auth-dialog/vpn-password-dialog.c 2012-02-15 11:30:20.344710680 -0500 +@@ -124,8 +124,8 @@ + label = gtk_label_new_with_mnemonic (label_text); + gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); + +- gtk_table_attach_defaults (GTK_TABLE (table), label, 0, 1, row, row + 1); +- gtk_table_attach_defaults (GTK_TABLE (table), entry, 1, 2, row, row + 1); ++ gtk_grid_attach (GTK_GRID (table), label, 0, row, 1, 1); ++ gtk_grid_attach (GTK_GRID (table), entry, 1, row, 1, 1); + + gtk_label_set_mnemonic_widget (GTK_LABEL (label), entry); + } +@@ -154,7 +154,7 @@ + if (priv->show_password_secondary) + add_row (priv->table, row++, priv->secondary_password_label, priv->password_entry_secondary); + +- gtk_table_attach_defaults (GTK_TABLE (priv->table), priv->show_passwords_checkbox, 1, 2, row, row + 1); ++ gtk_grid_attach (GTK_GRID (priv->table), priv->show_passwords_checkbox, 1, row, 1, 1); + + gtk_widget_show_all (priv->table); + } +@@ -228,9 +228,9 @@ + + priv->group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL); + +- priv->table = gtk_table_new (4, 2, FALSE); +- gtk_table_set_col_spacings (GTK_TABLE (priv->table), 12); +- gtk_table_set_row_spacings (GTK_TABLE (priv->table), 6); ++ priv->table = gtk_grid_new (); ++ gtk_grid_set_column_spacing (GTK_GRID (priv->table), 12); ++ gtk_grid_set_row_spacing (GTK_GRID (priv->table), 6); + gtk_container_add (GTK_CONTAINER (priv->table_alignment), priv->table); + + priv->password_entry = gtk_entry_new (); |