diff options
-rw-r--r-- | rcm-client-receive.c | 5 |
1 files 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); |