summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am1
-rw-r--r--src/polkitmateauthenticationdialog.c6
2 files changed, 6 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 58f9507..0ee00b3 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -24,7 +24,6 @@ polkit_mate_authentication_agent_1_CPPFLAGS = \
-DDATADIR=\""$(pkgdatadir)"\" \
-DMATELOCALEDIR=\""$(datadir)/locale"\" \
-DPOLKIT_AGENT_I_KNOW_API_IS_SUBJECT_TO_CHANGE \
- $(DISABLE_DEPRECATED) \
$(AM_CPPFLAGS)
polkit_mate_authentication_agent_1_CFLAGS = \
diff --git a/src/polkitmateauthenticationdialog.c b/src/polkitmateauthenticationdialog.c
index 3f02b19..22c8e51 100644
--- a/src/polkitmateauthenticationdialog.c
+++ b/src/polkitmateauthenticationdialog.c
@@ -536,7 +536,9 @@ 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);
@@ -997,7 +999,11 @@ 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;