summaryrefslogtreecommitdiff
path: root/gtk/gtkfilechoosernativequartz.c
diff options
context:
space:
mode:
authorChristian Hergert <christian@hergert.me>2022-02-17 12:39:21 -0800
committerChristian Hergert <christian@hergert.me>2022-02-22 11:53:33 -0800
commitb4b282dc81641de12fdd276e6dc9bb4dedb5b114 (patch)
tree908ab43e23e80d3e8873129a22d3c3e7414f4f2e /gtk/gtkfilechoosernativequartz.c
parentd4d328f96f5ffcc7083d6d705bd234af691259d4 (diff)
downloadgtk+-b4b282dc81641de12fdd276e6dc9bb4dedb5b114.tar.gz
macos: fix allocation for filechoosernative filter
The GtkFileCHooserNativeQuartz injects a NSComboBox into the NSSavePanel (which is displayed in a remote process since 10.15 whether or not you are a sandboxed application). The style has changed and we need more space here to not clip part of the combobox out of view. I tried every size from 22 to 30 and this seemed to look the most natural without skewing the location of the text within the combobox.
Diffstat (limited to 'gtk/gtkfilechoosernativequartz.c')
-rw-r--r--gtk/gtkfilechoosernativequartz.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkfilechoosernativequartz.c b/gtk/gtkfilechoosernativequartz.c
index c004167a23..3854937c0d 100644
--- a/gtk/gtkfilechoosernativequartz.c
+++ b/gtk/gtkfilechoosernativequartz.c
@@ -300,7 +300,7 @@ filechooser_quartz_launch (FileChooserQuartzData *data)
if (data->filters)
{
// when filters have been provided, a combobox needs to be added
- data->filter_combo_box = [[NSComboBox alloc] initWithFrame:NSMakeRect(0.0, 0.0, 200, 20)];
+ data->filter_combo_box = [[NSComboBox alloc] initWithFrame:NSMakeRect(0, 0, 200, 24)];
[data->filter_combo_box addItemsWithObjectValues:data->filter_names];
[data->filter_combo_box setEditable:NO];
[data->filter_combo_box setDelegate:[[FilterComboBox alloc] initWithData:data]];