(dlg_set_bottom_widget): rename to widget_set_bottom.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2016-08-09 09:46:07 +03:00
parent d200893347
commit 599361b3fc
3 changed files with 5 additions and 6 deletions

View File

@ -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);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -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);

View File

@ -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 ();