forked from AuroraMiddleware/gtk
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>
This commit is contained in:
parent
06348a8517
commit
eff53c023a
@ -204,6 +204,9 @@ static void
|
|||||||
gdk_x11_display_init (GdkX11Display *self)
|
gdk_x11_display_init (GdkX11Display *self)
|
||||||
{
|
{
|
||||||
self->monitors = g_list_store_new (GDK_TYPE_MONITOR);
|
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
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user