[gnome-settings-daemon] media-keys: Add test for OSD GIcon support
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] media-keys: Add test for OSD GIcon support
- Date: Sat, 12 Jan 2013 21:13:05 +0000 (UTC)
commit 92147b2e53a4082902180a85eab466fb02ccac42
Author: Bastien Nocera <hadess hadess net>
Date: Sat Jan 12 21:54:50 2013 +0100
media-keys: Add test for OSD GIcon support
plugins/media-keys/test-media-window.c | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/plugins/media-keys/test-media-window.c b/plugins/media-keys/test-media-window.c
index 9dde669..10456f5 100644
--- a/plugins/media-keys/test-media-window.c
+++ b/plugins/media-keys/test-media-window.c
@@ -96,6 +96,22 @@ update_state (GtkWidget *window)
gtk_widget_show (window);
break;
+
+ case 9: {
+ GIcon *icon;
+
+ icon = g_icon_new_for_string (". GThemedIcon battery-full-charging-symbolic gpm-battery-100-charging battery-full-charging ",
+ NULL);
+
+ gsd_osd_window_set_action_custom_gicon (GSD_OSD_WINDOW (window),
+ icon,
+ FALSE);
+
+ g_object_unref (icon);
+
+ gtk_widget_show (window);
+ break;
+ }
default:
gtk_main_quit ();
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]