diff options
author | bill-auger <mr.j.spam.me@gmail.com> | 2021-06-13 15:34:32 -0400 |
---|---|---|
committer | bill-auger <mr.j.spam.me@gmail.com> | 2021-06-13 15:59:11 -0400 |
commit | a70f459f695ea5ee7e8535b4abf77b991788d119 (patch) | |
tree | 5e771168bf1a961c2dcb90824577a894217f2334 /pcr/tootle/handle-unknown-message-types.patch | |
parent | efe2ecce11ed214a93796e2a0526f385be4d3259 (diff) | |
download | abslibre-a70f459f695ea5ee7e8535b4abf77b991788d119.tar.gz abslibre-a70f459f695ea5ee7e8535b4abf77b991788d119.tar.bz2 abslibre-a70f459f695ea5ee7e8535b4abf77b991788d119.zip |
[tootle]: upgrade to v1.0
Diffstat (limited to 'pcr/tootle/handle-unknown-message-types.patch')
-rw-r--r-- | pcr/tootle/handle-unknown-message-types.patch | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/pcr/tootle/handle-unknown-message-types.patch b/pcr/tootle/handle-unknown-message-types.patch deleted file mode 100644 index 4653b2675..000000000 --- a/pcr/tootle/handle-unknown-message-types.patch +++ /dev/null @@ -1,56 +0,0 @@ -diff --git a/src/API/NotificationType.vala b/src/API/NotificationType.vala -index 53598b5..25c2b2c 100644 ---- a/src/API/NotificationType.vala -+++ b/src/API/NotificationType.vala -@@ -4,7 +4,8 @@ public enum Tootle.NotificationType { - FAVORITE, - FOLLOW, - FOLLOW_REQUEST, // Internal -- WATCHLIST; // Internal -+ WATCHLIST, // Internal -+ UNKNOWN; // Fallback - - public string to_string() { - switch (this) { -@@ -20,8 +21,9 @@ public enum Tootle.NotificationType { - return "follow_request"; - case WATCHLIST: - return "watchlist"; -+ case UNKNOWN: - default: -- assert_not_reached(); -+ return "unknown"; - } - } - -@@ -39,8 +41,9 @@ public enum Tootle.NotificationType { - return FOLLOW_REQUEST; - case "watchlist": - return WATCHLIST; -+ case "unknown": - default: -- assert_not_reached(); -+ return UNKNOWN; - } - } - -@@ -58,6 +61,8 @@ public enum Tootle.NotificationType { - return _("<a href=\"%s\"><b>%s</b></a> wants to follow you").printf (account.url, account.display_name); - case WATCHLIST: - return _("<a href=\"%s\"><b>%s</b></a> posted a toot").printf (account.url, account.display_name); -+ case UNKNOWN: -+ return _("<a href=\"%s\"><b>%s</b></a> posted an unrecognized type of message").printf (account.url, account.display_name); - default: - assert_not_reached(); - } -@@ -75,8 +80,9 @@ public enum Tootle.NotificationType { - case FOLLOW: - case FOLLOW_REQUEST: - return "contact-new-symbolic"; -+ case UNKNOWN: - default: -- assert_not_reached(); -+ return "dialog-warning"; - } - } - |