From 80cfd8ed384fdb6642c7bb931d9ee038d4d7b548 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 20 Feb 2010 20:11:30 +0100 Subject: props: set a couple of additional properties by default, and ensure clients may override them --- src/canberra-gtk.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/canberra-gtk.c') diff --git a/src/canberra-gtk.c b/src/canberra-gtk.c index 9f8a31d..c6581a2 100644 --- a/src/canberra-gtk.c +++ b/src/canberra-gtk.c @@ -130,6 +130,14 @@ ca_context *ca_gtk_context_get_for_screen(GdkScreen *screen) { if ((name = g_get_application_name())) ca_proplist_sets(p, CA_PROP_APPLICATION_NAME, name); + else { + ca_proplist_sets(p, CA_PROP_APPLICATION_NAME, "libcanberra-gtk"); + ca_proplist_sets(p, CA_PROP_APPLICATION_VERSION, PACKAGE_VERSION); + ca_proplist_sets(p, CA_PROP_APPLICATION_ID, "org.freedesktop.libcanberra.gtk"); + } + + if ((name = gtk_window_get_default_icon_name())) + ca_proplist_sets(p, CA_PROP_APPLICATION_ICON_NAME, name); if ((name = gdk_display_get_name(gdk_screen_get_display(screen)))) ca_proplist_sets(p, CA_PROP_WINDOW_X11_DISPLAY, name); -- cgit v1.2.3