[epiphany/wip/snwh/symbolic-icon-replace: 5/5] Replace deprecated symbolic icon
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/wip/snwh/symbolic-icon-replace: 5/5] Replace deprecated symbolic icon
- Date: Mon, 7 Feb 2022 21:48:50 +0000 (UTC)
commit 9faaa6059d9b279acfcc427f1507e87547b670c2
Author: Sam Hewitt <sam snwh org>
Date: Mon Feb 7 16:56:10 2022 -0330
Replace deprecated symbolic icon
- add new private-use icon for webpages
- change references to deprecated app icon to new icon
Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1069>
lib/ephy-suggestion.c | 6 +++---
src/ephy-desktop-utils.c | 2 +-
src/resources/ephy-webpage-symbolic.svg | 1 +
src/resources/epiphany.gresource.xml | 1 +
4 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/lib/ephy-suggestion.c b/lib/ephy-suggestion.c
index 7ab80dcf7..c647688ad 100644
--- a/lib/ephy-suggestion.c
+++ b/lib/ephy-suggestion.c
@@ -135,7 +135,7 @@ ephy_suggestion_new (const char *title_markup,
char *escaped_uri = g_markup_escape_text (decoded_uri, -1);
suggestion = g_object_new (EPHY_TYPE_SUGGESTION,
- "icon-name", "web-browser-symbolic",
+ "icon-name", "ephy-webpage-symbolic",
"id", uri,
"subtitle", escaped_uri,
"title", title_markup,
@@ -159,7 +159,7 @@ ephy_suggestion_new_with_custom_subtitle (const char *title_markup,
char *escaped_uri = g_markup_escape_text (decoded_uri, -1);
suggestion = g_object_new (EPHY_TYPE_SUGGESTION,
- "icon-name", "web-browser-symbolic",
+ "icon-name", "ephy-webpage-symbolic",
"id", uri,
"subtitle", subtitle,
"title", title_markup,
@@ -180,7 +180,7 @@ ephy_suggestion_new_without_subtitle (const char *title_markup,
EphySuggestion *suggestion;
suggestion = g_object_new (EPHY_TYPE_SUGGESTION,
- "icon-name", "web-browser-symbolic",
+ "icon-name", "ephy-webpage-symbolic",
"id", uri,
"title", title_markup,
"unescaped-title", unescaped_title,
diff --git a/src/ephy-desktop-utils.c b/src/ephy-desktop-utils.c
index 732f72ac2..ec45135fa 100644
--- a/src/ephy-desktop-utils.c
+++ b/src/ephy-desktop-utils.c
@@ -65,7 +65,7 @@ ephy_get_fallback_favicon_name (const char *uri,
else if (g_str_has_prefix (uri, "ephy-about:newtab") || g_str_has_prefix (uri, "about:newtab"))
return NULL;
else if (g_str_has_prefix (uri, "ephy-about:") || g_str_has_prefix (uri, "about:"))
- return "web-browser-symbolic";
+ return "ephy-webpage-symbolic";
}
return NULL;
diff --git a/src/resources/ephy-webpage-symbolic.svg b/src/resources/ephy-webpage-symbolic.svg
new file mode 100644
index 000000000..8415de5a5
--- /dev/null
+++ b/src/resources/ephy-webpage-symbolic.svg
@@ -0,0 +1 @@
+<svg height="16" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M7.5 0C3.37 0 0 3.37 0 7.5S3.37 15
7.5 15 15 11.63 15 7.5 11.63 0 7.5 0zm0 2c.183 0 .382.084.617.322.235.239.48.626.69 1.127.373.897.632
2.151.683 3.551H5.51c.05-1.4.31-2.654.683-3.55.21-.502.455-.889.69-1.128C7.118 2.084 7.317 2 7.5
2zm-1.857.318a5.85 5.85 0 0 0-.372.746c-.439 1.054-.71 2.422-.76 3.936H2.024a5.481 5.481 0 0 1
3.62-4.682zm3.714 0A5.481 5.481 0 0 1 12.977 7h-2.489c-.05-1.514-.32-2.882-.76-3.936a5.85 5.85 0 0
0-.37-.746zM2.023 8h2.489c.05 1.514.32 2.882.76 3.936.112.27.235.519.37.746A5.481 5.481 0 0 1 2.024 8zM5.51
8h3.98c-.05 1.4-.31 2.654-.683 3.55-.21.502-.455.889-.69
1.128-.235.238-.434.322-.617.322s-.382-.084-.617-.322c-.235-.239-.48-.626-.69-1.127C5.82 10.654 5.561 9.4
5.51 8zm4.978 0h2.489a5.481 5.481 0 0 1-3.62 4.682 5.85 5.85 0 0 0 .372-.746c.439-1.054.71-2.422.76-3.936z"
style="fill:#3d3846"/></svg>
\ No newline at end of file
diff --git a/src/resources/epiphany.gresource.xml b/src/resources/epiphany.gresource.xml
index 2d8c7f69b..d72cdcc7b 100644
--- a/src/resources/epiphany.gresource.xml
+++ b/src/resources/epiphany.gresource.xml
@@ -58,6 +58,7 @@
<file compressed="true"
alias="scalable/status/ephy-tab-counter-symbolic.svg">ephy-tab-counter-symbolic.svg</file>
<file compressed="true"
alias="scalable/status/ephy-tab-overflow-symbolic.svg">ephy-tab-overflow-symbolic.svg</file>
<file compressed="true"
alias="scalable/status/ephy-library-symbolic.svg">ephy-library-symbolic.svg</file>
+ <file compressed="true"
alias="scalable/status/ephy-webpage-symbolic.svg">ephy-webpage-symbolic.svg</file>
</gresource>
<gresource prefix="/org/gnome/Epiphany">
<file compressed="true">themes/shared.css</file>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]