Convert gtk_hscale_new_with_range to gtk_scale_new_with_range
This commit is contained in:
committed by
Stéphane Lesimple
parent
fdc09176d9
commit
b7840d13c1
@@ -815,7 +815,7 @@ static GtkWidget* non_linear_scale(GtkWidget **hbox_out, non_linear_info *nli,
|
||||
nli->pc = pc;
|
||||
|
||||
hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0);
|
||||
scale = gtk_hscale_new_with_range(0,n-1,1);
|
||||
scale = gtk_scale_new_with_range(GTK_ORIENTATION_HORIZONTAL, 0, n-1, 1);
|
||||
gtk_scale_set_value_pos(GTK_SCALE(scale), GTK_POS_RIGHT);
|
||||
gtk_range_set_increments(GTK_RANGE(scale), 1, 1);
|
||||
gtk_range_set_value(GTK_RANGE(scale), index > 0 ? index-1 : index);
|
||||
|
||||
@@ -704,7 +704,7 @@ void CreateRS01PrefsPage(Method *method, GtkWidget *parent)
|
||||
gtk_box_pack_start(GTK_BOX(hbox), lwoh->normalLabel, FALSE, FALSE, 0);
|
||||
}
|
||||
|
||||
scale = gtk_hscale_new_with_range(8,100,1);
|
||||
scale = gtk_scale_new_with_range(GTK_ORIENTATION_HORIZONTAL, 8, 100, 1);
|
||||
gtk_scale_set_value_pos(GTK_SCALE(scale), GTK_POS_RIGHT);
|
||||
gtk_range_set_increments(GTK_RANGE(scale), 1, 1);
|
||||
gtk_range_set_value(GTK_RANGE(scale), 32);
|
||||
@@ -840,7 +840,7 @@ void CreateRS01PrefsPage(Method *method, GtkWidget *parent)
|
||||
if(cache_size[index] > Closure->cacheMiB)
|
||||
break;
|
||||
|
||||
scale = gtk_hscale_new_with_range(0,n_entries-1,1);
|
||||
scale = gtk_scale_new_with_range(GTK_ORIENTATION_HORIZONTAL, 0, n_entries-1, 1);
|
||||
gtk_scale_set_value_pos(GTK_SCALE(scale), GTK_POS_RIGHT);
|
||||
gtk_range_set_increments(GTK_RANGE(scale), 1, 1);
|
||||
gtk_range_set_value(GTK_RANGE(scale), index > 0 ? index-1 : index);
|
||||
|
||||
@@ -1344,7 +1344,7 @@ void CreateRS02PrefsPage(Method *method, GtkWidget *parent)
|
||||
if(cache_size[index] > Closure->cacheMiB)
|
||||
break;
|
||||
|
||||
scale = gtk_hscale_new_with_range(0,n_entries-1,1);
|
||||
scale = gtk_scale_new_with_range(GTK_ORIENTATION_HORIZONTAL, 0, n_entries-1, 1);
|
||||
gtk_scale_set_value_pos(GTK_SCALE(scale), GTK_POS_RIGHT);
|
||||
gtk_range_set_increments(GTK_RANGE(scale), 1, 1);
|
||||
gtk_range_set_value(GTK_RANGE(scale), index > 0 ? index-1 : index);
|
||||
|
||||
@@ -665,7 +665,7 @@ void CreateRS03PrefsPage(Method *method, GtkWidget *parent)
|
||||
gtk_box_pack_start(GTK_BOX(hbox), lwoh->normalLabel, FALSE, FALSE, 0);
|
||||
}
|
||||
|
||||
scale = gtk_hscale_new_with_range(8,170,1);
|
||||
scale = gtk_scale_new_with_range(GTK_ORIENTATION_HORIZONTAL, 8, 170, 1);
|
||||
gtk_scale_set_value_pos(GTK_SCALE(scale), GTK_POS_RIGHT);
|
||||
gtk_range_set_increments(GTK_RANGE(scale), 1, 1);
|
||||
gtk_range_set_value(GTK_RANGE(scale), 32);
|
||||
@@ -807,7 +807,7 @@ void CreateRS03PrefsPage(Method *method, GtkWidget *parent)
|
||||
if(prefetch_size[index] > Closure->prefetchSectors)
|
||||
break;
|
||||
|
||||
scale = gtk_hscale_new_with_range(0,n_entries-1,1);
|
||||
scale = gtk_scale_new_with_range(GTK_ORIENTATION_HORIZONTAL, 0, n_entries-1, 1);
|
||||
gtk_scale_set_value_pos(GTK_SCALE(scale), GTK_POS_RIGHT);
|
||||
gtk_range_set_increments(GTK_RANGE(scale), 1, 1);
|
||||
gtk_range_set_value(GTK_RANGE(scale), index > 0 ? index-1 : index);
|
||||
@@ -923,7 +923,7 @@ void CreateRS03PrefsPage(Method *method, GtkWidget *parent)
|
||||
if(threads_count[index] > Closure->codecThreads)
|
||||
break;
|
||||
|
||||
scale = gtk_hscale_new_with_range(0,n_entries-1,1);
|
||||
scale = gtk_scale_new_with_range(GTK_ORIENTATION_HORIZONTAL, 0, n_entries-1, 1);
|
||||
gtk_scale_set_value_pos(GTK_SCALE(scale), GTK_POS_RIGHT);
|
||||
gtk_range_set_increments(GTK_RANGE(scale), 1, 1);
|
||||
gtk_range_set_value(GTK_RANGE(scale), index > 0 ? index-1 : index);
|
||||
|
||||
Reference in New Issue
Block a user