mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2025-10-29 05:40:25 -04:00
envy24control: fix GtkSpinButton runtime warnings
Change the parameters to gtk_adjustment_new to get rid of this runtime warning from GTK: GtkSpinButton: setting an adjustment with non-zero page size is deprecated The change is also important when envy24control is ported to GTK 3, as the spin buttons will stop working if it's not done. Closes: https://github.com/alsa-project/alsa-tools/pull/31 Signed-off-by: Andreas Persson <andreasp56@outlook.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
65a201fed6
commit
837033a108
1 changed files with 2 additions and 2 deletions
|
|
@ -665,7 +665,7 @@ static void create_volume_change(GtkWidget *box)
|
||||||
gtk_box_pack_start(GTK_BOX(hbox), label, TRUE, FALSE, 0);
|
gtk_box_pack_start(GTK_BOX(hbox), label, TRUE, FALSE, 0);
|
||||||
gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT);
|
gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT);
|
||||||
|
|
||||||
spinbutton_adj = gtk_adjustment_new(16, 0, 255, 1, 10, 10);
|
spinbutton_adj = gtk_adjustment_new(16, 0, 255, 1, 10, 0);
|
||||||
hw_volume_change_adj = spinbutton_adj;
|
hw_volume_change_adj = spinbutton_adj;
|
||||||
spinbutton = gtk_spin_button_new(GTK_ADJUSTMENT(spinbutton_adj), 1, 0);
|
spinbutton = gtk_spin_button_new(GTK_ADJUSTMENT(spinbutton_adj), 1, 0);
|
||||||
gtk_box_pack_start(GTK_BOX(hbox), spinbutton, TRUE, FALSE, 0);
|
gtk_box_pack_start(GTK_BOX(hbox), spinbutton, TRUE, FALSE, 0);
|
||||||
|
|
@ -1677,7 +1677,7 @@ static void create_profiles(GtkWidget *main, GtkWidget *notebook, int page)
|
||||||
gtk_box_pack_start(GTK_BOX(hbox1), label_card_nr, FALSE, FALSE, 20);
|
gtk_box_pack_start(GTK_BOX(hbox1), label_card_nr, FALSE, FALSE, 20);
|
||||||
gtk_label_set_justify(GTK_LABEL(label_card_nr), GTK_JUSTIFY_LEFT);
|
gtk_label_set_justify(GTK_LABEL(label_card_nr), GTK_JUSTIFY_LEFT);
|
||||||
|
|
||||||
card_button_adj = gtk_adjustment_new(16, 0, MAX_CARD_NUMBERS - 1, 1, 10, 10);
|
card_button_adj = gtk_adjustment_new(16, 0, MAX_CARD_NUMBERS - 1, 1, 10, 0);
|
||||||
card_number_adj = card_button_adj;
|
card_number_adj = card_button_adj;
|
||||||
card_button = gtk_spin_button_new(GTK_ADJUSTMENT (card_button_adj), 1, 0);
|
card_button = gtk_spin_button_new(GTK_ADJUSTMENT (card_button_adj), 1, 0);
|
||||||
gtk_box_pack_start(GTK_BOX (hbox1), card_button, TRUE, FALSE, 0);
|
gtk_box_pack_start(GTK_BOX (hbox1), card_button, TRUE, FALSE, 0);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue