[gtk+] tests: fix clipboard test by loading correct icon
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] tests: fix clipboard test by loading correct icon
- Date: Fri, 21 Oct 2016 15:37:46 +0000 (UTC)
commit ebbfbc0beaa491ae8f7518bf8c19da2e3baab5e6
Author: Victor Toso <me victortoso com>
Date: Mon Oct 17 18:21:06 2016 +0200
tests: fix clipboard test by loading correct icon
The icon name changed from "terminal" to "utilities-terminal" in
Adwaita-icon-theme.
Signed-off-by: Victor Toso <victortoso redhat com>
https://bugzilla.gnome.org/show_bug.cgi?id=773113
tests/testclipboard.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/tests/testclipboard.c b/tests/testclipboard.c
index 4d6a804..010ee35 100644
--- a/tests/testclipboard.c
+++ b/tests/testclipboard.c
@@ -81,7 +81,8 @@ on_response (GtkDialog *dialog,
GtkIconTheme *theme;
GdkPixbuf *pixbuf;
theme = gtk_icon_theme_get_default ();
- pixbuf = gtk_icon_theme_load_icon (theme, "terminal", 1600, 0, NULL);
+ pixbuf = gtk_icon_theme_load_icon (theme, "utilities-terminal", 1600, 0, NULL);
+ g_assert_nonnull (pixbuf);
gtk_clipboard_set_image (clipboard, pixbuf);
}
break;
@@ -91,7 +92,8 @@ on_response (GtkDialog *dialog,
GtkIconTheme *theme;
GdkPixbuf *pixbuf;
theme = gtk_icon_theme_get_default ();
- pixbuf = gtk_icon_theme_load_icon (theme, "terminal", 48, 0, NULL);
+ pixbuf = gtk_icon_theme_load_icon (theme, "utilities-terminal", 48, 0, NULL);
+ g_assert_nonnull (pixbuf);
gtk_clipboard_set_image (clipboard, pixbuf);
}
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]