[libadwaita] Use header capitalization for (short) toasts



commit c113f7abd666324c1ea97b08da9e88fb3123194e
Author: Maximiliano Sandoval R <msandova gnome org>
Date:   Tue Dec 7 13:52:35 2021 +0100

    Use header capitalization for (short) toasts

 demo/adw-demo-preferences-window.c | 2 +-
 demo/adw-demo-window.c             | 4 ++--
 tests/test-preferences-window.c    | 2 +-
 tests/test-toast-overlay.c         | 2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/demo/adw-demo-preferences-window.c b/demo/adw-demo-preferences-window.c
index 7d219d0a..71e71aee 100644
--- a/demo/adw-demo-preferences-window.c
+++ b/demo/adw-demo-preferences-window.c
@@ -37,7 +37,7 @@ subpage2_activated_cb (AdwDemoPreferencesWindow *self)
 static void
 toast_show_cb (AdwPreferencesWindow *window)
 {
-  adw_preferences_window_add_toast (window, adw_toast_new ("Example toast"));
+  adw_preferences_window_add_toast (window, adw_toast_new ("Example Toast"));
 }
 
 static void
diff --git a/demo/adw-demo-window.c b/demo/adw-demo-window.c
index df7a49f2..d5ae183c 100644
--- a/demo/adw-demo-window.c
+++ b/demo/adw-demo-window.c
@@ -692,7 +692,7 @@ static void
 add_toast_cb (AdwDemoWindow *self)
 {
   adw_toast_overlay_add_toast (self->toast_overlay,
-                               adw_toast_new (_("Simple toast")));
+                               adw_toast_new (_("Simple Toast")));
 }
 
 static void
@@ -712,7 +712,7 @@ add_toast_with_button_cb (AdwDemoWindow *self)
   self->toast_undo_items++;
 
   if (!self->undo_toast) {
-    title = g_strdup_printf (_("ā€˜%sā€™ deleted"), "Lorem ipsum");
+    title = g_strdup_printf (_("ā€˜%sā€™ deleted"), "Lorem Ipsum");
 
     self->undo_toast = adw_toast_new (title);
 
diff --git a/tests/test-preferences-window.c b/tests/test-preferences-window.c
index b6a44974..106178f4 100644
--- a/tests/test-preferences-window.c
+++ b/tests/test-preferences-window.c
@@ -27,7 +27,7 @@ static void
 test_adw_preferences_window_add_toast (void)
 {
   AdwPreferencesWindow *window = ADW_PREFERENCES_WINDOW (adw_preferences_window_new ());
-  AdwToast *toast = adw_toast_new ("Test notification");
+  AdwToast *toast = adw_toast_new ("Test Notification");
 
   g_assert_nonnull (window);
   g_assert_nonnull (toast);
diff --git a/tests/test-toast-overlay.c b/tests/test-toast-overlay.c
index 1ea5c5fc..45b92047 100644
--- a/tests/test-toast-overlay.c
+++ b/tests/test-toast-overlay.c
@@ -47,7 +47,7 @@ static void
 test_adw_toast_overlay_add_toast (void)
 {
   AdwToastOverlay *toast_overlay = g_object_ref_sink (ADW_TOAST_OVERLAY (adw_toast_overlay_new ()));
-  AdwToast *toast = adw_toast_new ("Test notification");
+  AdwToast *toast = adw_toast_new ("Test Notification");
 
   g_assert_nonnull (toast_overlay);
   g_assert_nonnull (toast);


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