[nautilus/wip/antoniof/other-types-filter: 3/3] search-popover: Set default action for other types dialog




commit be1f8ede3e27fc6ba697f815604d33521143a887
Author: António Fernandes <antoniof gnome org>
Date:   Wed Jul 20 20:56:35 2022 +0200

    search-popover: Set default action for other types dialog
    
    This gives the button a suggested-action style.

 src/nautilus-search-popover.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/nautilus-search-popover.c b/src/nautilus-search-popover.c
index a5f2f12cc..0b546592a 100644
--- a/src/nautilus-search-popover.c
+++ b/src/nautilus-search-popover.c
@@ -626,6 +626,7 @@ show_other_types_dialog (NautilusSearchPopover *popover)
                                           _("_Cancel"), GTK_RESPONSE_CANCEL,
                                           _("Select"), GTK_RESPONSE_OK,
                                           NULL);
+    gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
     gtk_window_set_default_size (GTK_WINDOW (dialog), 400, 600);
 
     search_entry = gtk_search_entry_new ();


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