diff options
author | Monsta <[email protected]> | 2015-08-07 22:22:08 +0300 |
---|---|---|
committer | Monsta <[email protected]> | 2015-08-07 22:26:02 +0300 |
commit | 1198fb592fa9dd0ddfed858f37d2aefd9987fca3 (patch) | |
tree | a97f395fd6614838c3d3796ac46867bce72dad1f | |
parent | 94ea311bd0fea87a61c9487a84309a7311ce28b2 (diff) | |
download | mate-polkit-1198fb592fa9dd0ddfed858f37d2aefd9987fca3.tar.bz2 mate-polkit-1198fb592fa9dd0ddfed858f37d2aefd9987fca3.tar.xz |
drop some stuff that's deprecated even in GTK+2
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | src/polkitmateauthenticationdialog.c | 7 |
2 files changed, 1 insertions, 8 deletions
diff --git a/configure.ac b/configure.ac index 4ca3ba2..0a810bc 100644 --- a/configure.ac +++ b/configure.ac @@ -137,7 +137,7 @@ AC_MSG_RESULT([$with_gtk]) case "$with_gtk" in 2.0) GTK_API_VERSION=2.0 - GTK_REQUIRED=2.17.1 + GTK_REQUIRED=2.24.0 ;; 3.0) GTK_API_VERSION=3.0 GTK_REQUIRED=3.0.0 diff --git a/src/polkitmateauthenticationdialog.c b/src/polkitmateauthenticationdialog.c index 22c8e51..f9f0194 100644 --- a/src/polkitmateauthenticationdialog.c +++ b/src/polkitmateauthenticationdialog.c @@ -536,9 +536,6 @@ polkit_mate_authentication_dialog_constructed (GObject *object) content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog)); action_area = gtk_dialog_get_action_area (GTK_DIALOG (dialog)); - #if !GTK_CHECK_VERSION(3, 0, 0) - gtk_dialog_set_has_separator (GTK_DIALOG (dialog), FALSE); - #endif gtk_container_set_border_width (GTK_CONTAINER (dialog), 5); gtk_box_set_spacing (GTK_BOX (content_area), 2); /* 2 * 5 + 2 = 12 */ gtk_container_set_border_width (GTK_CONTAINER (action_area), 5); @@ -999,11 +996,7 @@ polkit_mate_authentication_dialog_run_until_response_for_prompt (PolkitMateAuthe response = gtk_dialog_run (GTK_DIALOG (dialog)); - #if GTK_CHECK_VERSION(3, 0, 0) gtk_widget_hide (dialog->priv->table_alignment); - #else - gtk_widget_hide_all (dialog->priv->table_alignment); - #endif gtk_widget_set_no_show_all (dialog->priv->table_alignment, TRUE); dialog->priv->is_running = FALSE; |