From 993ffed6a3f12a2efdc71bc8ffe2ac2b63cdc512 Mon Sep 17 00:00:00 2001 From: Brandon Wright Date: Sat, 20 Apr 2019 15:55:43 -0500 Subject: [PATCH] GTK: Tweak spin button widths. --- gtk/src/gtk_shader_parameters.cpp | 1 + gtk/src/snes9x.ui | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/gtk/src/gtk_shader_parameters.cpp b/gtk/src/gtk_shader_parameters.cpp index 75405363..3c2cf7dd 100644 --- a/gtk/src/gtk_shader_parameters.cpp +++ b/gtk/src/gtk_shader_parameters.cpp @@ -231,6 +231,7 @@ bool gtk_shader_parameters_dialog(GtkWindow *parent) else { GtkWidget *spin = gtk_spin_button_new_with_range(p->min, p->max, p->step); + gtk_entry_set_width_chars(GTK_ENTRY(spin), 5); gtk_grid_attach(GTK_GRID(grid), spin, 1, i, 1, 1); gtk_size_group_add_widget(sizegroup, spin); int digits = gtk_spin_button_get_digits(GTK_SPIN_BUTTON(spin)); diff --git a/gtk/src/snes9x.ui b/gtk/src/snes9x.ui index faeb37dc..4c1c9efb 100644 --- a/gtk/src/snes9x.ui +++ b/gtk/src/snes9x.ui @@ -2397,6 +2397,7 @@ True adjustment3 True + 6 True @@ -2524,6 +2525,7 @@ True adjustment2 True + 6 True @@ -4229,6 +4231,7 @@ True adjustment6 True + 6 True @@ -4300,6 +4303,7 @@ True True 3 + 6 dynamic_rate_adjustment @@ -4807,6 +4811,7 @@ True superfx_multiplier_adjustment True + 6 True