diff options
author | Vincent Bernat <vincent@bernat.ch> | 2021-07-30 23:21:19 +0200 |
---|---|---|
committer | Vincent Bernat <vincent@bernat.ch> | 2021-07-30 23:22:32 +0200 |
commit | eff53c023a26d605cce7c87da361f6184260eca2 (patch) | |
tree | 2eb4932234203f51e6f097bae73c81388faca714 /gdk/x11/gdkdisplay-x11.c | |
parent | 06348a85179f138255b448e9968cbbda14f34886 (diff) | |
download | gtk+-eff53c023a26d605cce7c87da361f6184260eca2.tar.gz |
x11: set a default value for program_class
This was also the behaviour with GTK 3. We use the capitalized program
name.
Fixes #4138
Signed-off-by: Vincent Bernat <vincent@bernat.ch>
Diffstat (limited to 'gdk/x11/gdkdisplay-x11.c')
-rw-r--r-- | gdk/x11/gdkdisplay-x11.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdk/x11/gdkdisplay-x11.c b/gdk/x11/gdkdisplay-x11.c index 33a3648f4e..30d040a132 100644 --- a/gdk/x11/gdkdisplay-x11.c +++ b/gdk/x11/gdkdisplay-x11.c @@ -204,6 +204,9 @@ static void gdk_x11_display_init (GdkX11Display *self) { self->monitors = g_list_store_new (GDK_TYPE_MONITOR); + self->program_class = g_strdup (g_get_prgname ()); + if (self->program_class && self->program_class[0]) + self->program_class[0] = g_ascii_toupper (self->program_class[0]); } static void |