summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Härdeman <david@hardeman.nu>2015-07-15 16:08:30 +0200
committerDavid Härdeman <david@hardeman.nu>2015-07-15 16:08:30 +0200
commitb0f265ceb7a00a2921942b96e5dc0674853a4f27 (patch)
treed1e0b4d9dd49e710970f3f90f9fddaff58074c1e
parent9c9f384b8e71382b3b5e33a5ffc56b50b70c0d9a (diff)
Add label for remote and make it themeable
-rw-r--r--rcm-client-receive.c5
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);