[file-roller/wip/gtk4: 27/54] password dialog: fixed errors
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller/wip/gtk4: 27/54] password dialog: fixed errors
- Date: Sun, 2 Oct 2022 17:56:49 +0000 (UTC)
commit 3c82092db18cddf36ba8d910ae7e63627611d449
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sat Oct 1 17:13:24 2022 +0200
password dialog: fixed errors
src/dlg-password.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/dlg-password.c b/src/dlg-password.c
index 08a22327..a9d18332 100644
--- a/src/dlg-password.c
+++ b/src/dlg-password.c
@@ -59,7 +59,7 @@ response_cb (GtkDialog *dialog,
gboolean encrypt_header;
password = _gtk_entry_get_locale_text (GTK_ENTRY (GET_WIDGET ("password_entry")));
- encrypt_header = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (GET_WIDGET
("encrypt_header_checkbutton")));
+ encrypt_header = gtk_check_button_get_active (GTK_CHECK_BUTTON (GET_WIDGET
("encrypt_header_checkbutton")));
fr_window_archive_encrypt (data->window, password, encrypt_header);
g_free (password);
@@ -89,8 +89,10 @@ dlg_password (GtkWidget *widget,
"transient-for", GTK_WINDOW (window),
"modal", TRUE,
"use-header-bar", _gtk_settings_get_dialogs_use_header (),
+ "title", _("Password"),
NULL);
content_area = gtk_dialog_get_content_area (GTK_DIALOG (data->dialog));
+ _gtk_widget_set_margin (content_area, 20);
gtk_box_append (GTK_BOX (content_area), GET_WIDGET ("password_vbox"));
gtk_dialog_add_buttons (GTK_DIALOG (data->dialog),
_GTK_LABEL_CANCEL, GTK_RESPONSE_CANCEL,
@@ -110,8 +112,8 @@ dlg_password (GtkWidget *widget,
_gtk_entry_use_as_password_entry (GTK_ENTRY (GET_WIDGET ("password_entry")));
_gtk_entry_set_locale_text (GTK_ENTRY (GET_WIDGET ("password_entry")),
fr_window_get_password (window));
- gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (GET_WIDGET ("encrypt_header_checkbutton")),
- fr_window_get_encrypt_header (window));
+ gtk_check_button_set_active (GTK_CHECK_BUTTON (GET_WIDGET ("encrypt_header_checkbutton")),
+ fr_window_get_encrypt_header (window));
if (! fr_archive_is_capable_of (window->archive, FR_ARCHIVE_CAN_ENCRYPT_HEADER)) {
gtk_check_button_set_inconsistent (GTK_CHECK_BUTTON (GET_WIDGET
("encrypt_header_checkbutton")), TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]