diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-02-20 20:11:30 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-02-20 20:11:30 +0100 |
commit | 80cfd8ed384fdb6642c7bb931d9ee038d4d7b548 (patch) | |
tree | ff0766788c9cfabc0aa40ec299c389f8a48041d1 /src/canberra-gtk.c | |
parent | 2a3af2cba1836ef4043876e97dd5ffcc6dcdb1e5 (diff) |
props: set a couple of additional properties by default, and ensure clients may override them
Diffstat (limited to 'src/canberra-gtk.c')
-rw-r--r-- | src/canberra-gtk.c | 8 |
1 files changed, 8 insertions, 0 deletions
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); |