summaryrefslogtreecommitdiff
path: root/mate-panel/panel-run-dialog.c
diff options
context:
space:
mode:
authorWilliam Wold <[email protected]>2019-06-19 19:00:12 +0000
committerraveit65 <[email protected]>2019-06-21 18:47:54 +0200
commit3cd3758a35cb0027bee8bda80e89864eaa24c2a8 (patch)
treea4c4568d365a12036b1a48e7dd17e033ab33c3af /mate-panel/panel-run-dialog.c
parent0a818dee94ddee0a510973e482def9945c0c267e (diff)
downloadmate-panel-3cd3758a35cb0027bee8bda80e89864eaa24c2a8.tar.bz2
mate-panel-3cd3758a35cb0027bee8bda80e89864eaa24c2a8.tar.xz
Update to the new panel_multimonitor functions
Diffstat (limited to 'mate-panel/panel-run-dialog.c')
-rw-r--r--mate-panel/panel-run-dialog.c5
1 files changed, 1 insertions, 4 deletions
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);