Skip to content

Commit

Permalink
A few more small adjustments
Browse files Browse the repository at this point in the history
Add 'plus' key as zoom-in shortcut for non US keyboards.
Dont show error dialog if snd_aloop is not available.
Adjust widget size
  • Loading branch information
aramg committed May 24, 2020
1 parent 552ffef commit 41375e2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion linux/src/decoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ int decoder_init(void) {
memset(&spx_decoder, 0, sizeof(struct spx_decoder_s));
spx_decoder.snd_handle = find_snd_device();
if (!spx_decoder.snd_handle) {
MSG_ERROR("Audio loopback device not found.\n"
errprint("Audio loopback device not found.\n"
"Is snd_aloop loaded?");
}

Expand Down
5 changes: 4 additions & 1 deletion linux/src/droidcam.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,9 @@ int main(int argc, char *argv[])
closure = g_cclosure_new(G_CALLBACK(accel_callback), (gpointer)(CB_CONTROL_ZOUT-10), NULL);
gtk_accel_group_connect(gtk_accel, gdk_keyval_from_name("minus"), 0, GTK_ACCEL_VISIBLE, closure);

closure = g_cclosure_new(G_CALLBACK(accel_callback), (gpointer)(CB_CONTROL_ZIN-10), NULL);
gtk_accel_group_connect(gtk_accel, gdk_keyval_from_name("plus"), 0, GTK_ACCEL_VISIBLE, closure);

closure = g_cclosure_new(G_CALLBACK(accel_callback), (gpointer)(CB_CONTROL_ZIN-10), NULL);
gtk_accel_group_connect(gtk_accel, gdk_keyval_from_name("equal"), 0, GTK_ACCEL_VISIBLE, closure);

Expand Down Expand Up @@ -283,7 +286,7 @@ int main(int argc, char *argv[])

widget = gtk_radio_button_new_with_label(gtk_radio_button_group(GTK_RADIO_BUTTON(widget)), "Wifi Server Mode");
gtk_widget_size_request(widget, &widget_size);
gtk_widget_set_size_request(widget, widget_size.width, widget_size.height + 10);
gtk_widget_set_size_request(widget, widget_size.width + 10, widget_size.height + 10);
g_signal_connect(widget, "toggled", G_CALLBACK(the_callback), (gpointer)CB_WIFI_SRVR);
gtk_box_pack_start(GTK_BOX(vbox), widget, FALSE, FALSE, 0);
radios[CB_WIFI_SRVR] = widget;
Expand Down

0 comments on commit 41375e2

Please sign in to comment.