From a9222b1af3b486e12147dc0e0fe7143aa809cdec Mon Sep 17 00:00:00 2001 From: monsta Date: Tue, 17 May 2016 14:17:36 +0300 Subject: require GTK+ >= 3.14, drop GTK+2 code and --with-gtk build option --- src/polkitmateauthenticationdialog.c | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'src') diff --git a/src/polkitmateauthenticationdialog.c b/src/polkitmateauthenticationdialog.c index 0a9c6fe..f1d1399 100644 --- a/src/polkitmateauthenticationdialog.c +++ b/src/polkitmateauthenticationdialog.c @@ -664,28 +664,16 @@ polkit_mate_authentication_dialog_constructed (GObject *object) gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE); gtk_window_set_icon_name (GTK_WINDOW (dialog), GTK_STOCK_DIALOG_AUTHENTICATION); -#if GTK_CHECK_VERSION (3, 0, 0) 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); gtk_box_pack_start (GTK_BOX (content_area), hbox, TRUE, TRUE, 0); image = get_image (dialog); -#if GTK_CHECK_VERSION (3, 0, 0) gtk_widget_set_halign (image, GTK_ALIGN_CENTER); gtk_widget_set_valign (image, GTK_ALIGN_START); -#else - gtk_misc_set_alignment (GTK_MISC (image), 0.5, 0.0); -#endif gtk_box_pack_start (GTK_BOX (hbox), image, FALSE, FALSE, 0); -#if GTK_CHECK_VERSION (3, 0, 0) main_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10); -#else - main_vbox = gtk_vbox_new (FALSE, 10); -#endif gtk_box_pack_start (GTK_BOX (hbox), main_vbox, TRUE, TRUE, 0); /* main message */ @@ -700,9 +688,7 @@ polkit_mate_authentication_dialog_constructed (GObject *object) gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); #endif gtk_label_set_line_wrap (GTK_LABEL (label), TRUE); -#if GTK_CHECK_VERSION (3, 0, 0) gtk_label_set_max_width_chars (GTK_LABEL (label), 50); -#endif gtk_box_pack_start (GTK_BOX (main_vbox), label, FALSE, FALSE, 0); /* secondary message */ @@ -735,9 +721,7 @@ polkit_mate_authentication_dialog_constructed (GObject *object) gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); #endif gtk_label_set_line_wrap (GTK_LABEL (label), TRUE); -#if GTK_CHECK_VERSION (3, 0, 0) gtk_label_set_max_width_chars (GTK_LABEL (label), 50); -#endif gtk_box_pack_start (GTK_BOX (main_vbox), label, FALSE, FALSE, 0); /* user combobox */ @@ -756,11 +740,7 @@ polkit_mate_authentication_dialog_constructed (GObject *object) } /* password entry */ -#if GTK_CHECK_VERSION (3, 0, 0) vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); -#else - vbox = gtk_vbox_new (FALSE, 0); -#endif gtk_box_pack_start (GTK_BOX (main_vbox), vbox, FALSE, FALSE, 0); table_alignment = gtk_alignment_new (0.0, 0.0, 1.0, 1.0); @@ -793,11 +773,7 @@ polkit_mate_authentication_dialog_constructed (GObject *object) gtk_expander_set_use_markup (GTK_EXPANDER (details_expander), TRUE); gtk_box_pack_start (GTK_BOX (content_area), details_expander, FALSE, FALSE, 0); -#if GTK_CHECK_VERSION (3, 0, 0) details_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10); -#else - details_vbox = gtk_vbox_new (FALSE, 10); -#endif gtk_container_add (GTK_CONTAINER (details_expander), details_vbox); table_alignment = gtk_alignment_new (0.0, 0.0, 1.0, 1.0); -- cgit v1.2.1