[shotwell: 1/2] Fix "Edit Comment" Dialog title when launched from Events Directory page




commit 469c50b55d49810061010a392b0757168b7979e1
Author: Eric <eric daigle zaclys net>
Date:   Mon Jun 14 17:48:06 2021 -0400

    Fix "Edit Comment" Dialog title when launched from Events Directory page
    
    As described in #4930, editing an event comment from the Events Directory page
    currently brings up a dialog titled "Edit photo/video comment".
    
    This MR passes is_event=true to the corresponding call to the EditCommentDialog
    constructor, changing the dialog's title to "Edit event comment" as expected.
    
    Fixes #4930

 src/events/EventsDirectoryPage.vala | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/events/EventsDirectoryPage.vala b/src/events/EventsDirectoryPage.vala
index e88b1a70..7ead1a05 100644
--- a/src/events/EventsDirectoryPage.vala
+++ b/src/events/EventsDirectoryPage.vala
@@ -190,7 +190,8 @@ public abstract class EventsDirectoryPage : CheckerboardPage {
         
         EventDirectoryItem item = (EventDirectoryItem) get_view().get_selected_at(0);
         
-        EditCommentDialog edit_comment_dialog = new EditCommentDialog(item.event.get_comment());
+        EditCommentDialog edit_comment_dialog = new EditCommentDialog(item.event.get_comment(),
+        true);
         string? new_comment = edit_comment_dialog.execute();
         if (new_comment == null)
             return;


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