From 599361b3fcc99de373ef30d0709916ac5570dc34 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Tue, 9 Aug 2016 09:46:07 +0300 Subject: [PATCH] (dlg_set_bottom_widget): rename to widget_set_bottom. Signed-off-by: Andrew Borodin --- lib/widget/dialog.c | 7 +++---- lib/widget/dialog.h | 2 +- lib/widget/menu.c | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/widget/dialog.c b/lib/widget/dialog.c index 4a0e143bf..fe0d6b85e 100644 --- a/lib/widget/dialog.c +++ b/lib/widget/dialog.c @@ -1132,12 +1132,11 @@ widget_select (Widget * w) */ void -dlg_set_bottom_widget (void *w) +widget_set_bottom (Widget * w) { - Widget *widget = WIDGET (w); - WDialog *h = widget->owner; + WDialog *h = w->owner; - dlg_reorder_widgets (g_list_find (h->widgets, widget), FALSE); + dlg_reorder_widgets (g_list_find (h->widgets, w), FALSE); } /* --------------------------------------------------------------------------------------------- */ diff --git a/lib/widget/dialog.h b/lib/widget/dialog.h index 69e24c525..9c5854057 100644 --- a/lib/widget/dialog.h +++ b/lib/widget/dialog.h @@ -148,7 +148,7 @@ void dlg_stop (WDialog * h); /* Widget selection */ void widget_select (Widget * w); -void dlg_set_bottom_widget (void *w); +void widget_set_bottom (void *w); void dlg_select_prev_widget (WDialog * h); void dlg_select_next_widget (WDialog * h); gboolean dlg_focus (WDialog * h); diff --git a/lib/widget/menu.c b/lib/widget/menu.c index 00be15d43..c8d9bb8ae 100644 --- a/lib/widget/menu.c +++ b/lib/widget/menu.c @@ -312,7 +312,7 @@ menubar_finish (WMenuBar * menubar) /* Move the menubar to the bottom so that widgets displayed on top of * an "invisible" menubar get the first chance to respond to mouse events. */ - dlg_set_bottom_widget (w); + widget_set_bottom (w); dlg_select_by_id (w->owner, menubar->previous_widget); do_refresh (); -- 2.11.4.GIT