From 3cd3758a35cb0027bee8bda80e89864eaa24c2a8 Mon Sep 17 00:00:00 2001 From: William Wold Date: Wed, 19 Jun 2019 19:00:12 +0000 Subject: Update to the new panel_multimonitor functions --- mate-panel/panel-run-dialog.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'mate-panel/panel-run-dialog.c') diff --git a/mate-panel/panel-run-dialog.c b/mate-panel/panel-run-dialog.c index 71dac005..77e17a4f 100644 --- a/mate-panel/panel-run-dialog.c +++ b/mate-panel/panel-run-dialog.c @@ -1742,7 +1742,6 @@ static void panel_run_dialog_setup_entry (PanelRunDialog *dialog, GtkBuilder *gui) { - GdkScreen *screen; int width_request; GtkWidget *entry; @@ -1756,10 +1755,8 @@ panel_run_dialog_setup_entry (PanelRunDialog *dialog, gtk_combo_box_set_entry_text_column (GTK_COMBO_BOX (dialog->combobox), 0); - screen = gtk_window_get_screen (GTK_WINDOW (dialog->run_dialog)); - /* 1/4 the width of the first monitor should be a good value */ - width_request = panel_multiscreen_width (screen, 0) / 4; + width_request = panel_multimonitor_width (0) / 4; g_object_set (G_OBJECT (dialog->combobox), "width_request", width_request, NULL); -- cgit v1.2.1