From b0f265ceb7a00a2921942b96e5dc0674853a4f27 Mon Sep 17 00:00:00 2001 From: David Härdeman Date: Wed, 15 Jul 2015 16:08:30 +0200 Subject: Add label for remote and make it themeable --- rcm-client-receive.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rcm-client-receive.c b/rcm-client-receive.c index 4ce3056..6663f66 100644 --- a/rcm-client-receive.c +++ b/rcm-client-receive.c @@ -346,7 +346,6 @@ void rcng_client_receive_init_ui(GDBusObject *new_hw) rcdevice_call_get_keymap_sync(object, keymaps[0], &km_width, &km_height, &km_entries, NULL, NULL); - g_free(keymaps); remote = g_malloc0(sizeof(*remote)); remote->width = km_width; remote->height = km_height; @@ -379,7 +378,9 @@ void rcng_client_receive_init_ui(GDBusObject *new_hw) gtk_grid_attach(GTK_GRID(rgrid), fixed, 1, 1, 1, 1); GtkWidget *frame; - frame = gtk_frame_new(NULL); + frame = gtk_frame_new(keymaps[0]); + g_free(keymaps); + gtk_widget_set_name(gtk_frame_get_label_widget(GTK_FRAME(frame)), "RemoteControlClientRemoteLabel"); gtk_widget_set_name(frame, "RemoteControlClientRemoteFrame"); gtk_fixed_put(GTK_FIXED(fixed), frame, 0, 0); -- cgit v1.2.3