summaryrefslogtreecommitdiff
path: root/mate-panel/panel-run-dialog.c
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2018-02-24 11:02:15 -0500
committerraveit65 <[email protected]>2018-03-13 08:55:39 +0100
commit3d153082f28d08a8e84eff597ebdd24bac10a0e1 (patch)
tree2ceb9860c12fbd11ee6f08b000f4a1467781230a /mate-panel/panel-run-dialog.c
parent13940c6221d0eb062352d238a45b879e65116fc6 (diff)
downloadmate-panel-3d153082f28d08a8e84eff597ebdd24bac10a0e1.tar.bz2
mate-panel-3d153082f28d08a8e84eff597ebdd24bac10a0e1.tar.xz
Scale monitor geometries down to device pixels to support multiple monitors in HiDPI
Diffstat (limited to 'mate-panel/panel-run-dialog.c')
-rw-r--r--mate-panel/panel-run-dialog.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/mate-panel/panel-run-dialog.c b/mate-panel/panel-run-dialog.c
index 50098cb1..38edf5e0 100644
--- a/mate-panel/panel-run-dialog.c
+++ b/mate-panel/panel-run-dialog.c
@@ -1708,7 +1708,6 @@ panel_run_dialog_setup_entry (PanelRunDialog *dialog,
GdkScreen *screen;
int width_request;
GtkWidget *entry;
- gint scale;
dialog->combobox = PANEL_GTK_BUILDER_GET (gui, "comboboxentry");
@@ -1721,10 +1720,9 @@ panel_run_dialog_setup_entry (PanelRunDialog *dialog,
(GTK_COMBO_BOX (dialog->combobox), 0);
screen = gtk_window_get_screen (GTK_WINDOW (dialog->run_dialog));
- scale = gtk_widget_get_scale_factor (GTK_WIDGET (dialog->run_dialog));
/* 1/4 the width of the first monitor should be a good value */
- width_request = panel_multiscreen_width (screen, 0) / (4 * scale);
+ width_request = panel_multiscreen_width (screen, 0) / 4;
g_object_set (G_OBJECT (dialog->combobox),
"width_request", width_request,
NULL);