[evince] shell: Implemented headerbar for Annotation Properties dialog



commit bb347e338404931b5a7d18108def9623811096e8
Author: Chayut Liewlom <ray daroonpat 2020 gmail com>
Date:   Thu Jun 17 09:04:46 2021 +0700

    shell: Implemented headerbar for Annotation Properties dialog
    
    I have implemented this function to make this dialog consistent with the rest
    of GNOME and Evince.
    
    Closes #1570

 shell/ev-annotation-properties-dialog.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/shell/ev-annotation-properties-dialog.c b/shell/ev-annotation-properties-dialog.c
index 99d19553..e7638aa6 100644
--- a/shell/ev-annotation-properties-dialog.c
+++ b/shell/ev-annotation-properties-dialog.c
@@ -138,6 +138,7 @@ ev_annotation_properties_dialog_constructed (GObject *object)
        default:
                break;
        }
+       G_OBJECT_CLASS (ev_annotation_properties_dialog_parent_class)->constructed (object);
 }
 
 static void
@@ -153,7 +154,7 @@ ev_annotation_properties_dialog_init (EvAnnotationPropertiesDialog *annot_dialog
        gtk_window_set_destroy_with_parent (GTK_WINDOW (annot_dialog), TRUE);
        gtk_container_set_border_width (GTK_CONTAINER (annot_dialog), 5);
        gtk_dialog_add_buttons (dialog,
-                               _("_Close"), GTK_RESPONSE_CLOSE,
+                               _("_Close"), GTK_RESPONSE_CANCEL,
                                _("_Apply"), GTK_RESPONSE_APPLY,
                                NULL);
        gtk_dialog_set_default_response (dialog, GTK_RESPONSE_APPLY);
@@ -240,6 +241,7 @@ ev_annotation_properties_dialog_new (EvAnnotationType annot_type)
 {
        return GTK_WIDGET (g_object_new (EV_TYPE_ANNOTATION_PROPERTIES_DIALOG,
                                         "annot-type", annot_type,
+                                        "use-header-bar", TRUE,
                                         NULL));
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]