forked from AuroraMiddleware/gtk
Make gtk_menu_shell_select_first() public. (#70374)
Mon Sep 23 17:50:23 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkmenushell.[ch] gtk/gtkentry.c gtk/gtkmenubar.c gtk/gtkmenuitem.c gtk/gtktextview.c: Make gtk_menu_shell_select_first() public. (#70374)
This commit is contained in:
parent
a16b63eb35
commit
4d7d94f633
@ -3950,7 +3950,7 @@ popup_targets_received (GtkClipboard *clipboard,
|
||||
gtk_menu_popup (GTK_MENU (entry->popup_menu), NULL, NULL,
|
||||
popup_position_func, entry,
|
||||
info->button, info->time);
|
||||
_gtk_menu_shell_select_first (GTK_MENU_SHELL (entry->popup_menu), FALSE);
|
||||
gtk_menu_shell_select_first (GTK_MENU_SHELL (entry->popup_menu), FALSE);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -450,7 +450,7 @@ window_key_press_handler (GtkWidget *widget,
|
||||
GtkMenuShell *menu_shell = GTK_MENU_SHELL (menubars->data);
|
||||
|
||||
_gtk_menu_shell_activate (menu_shell);
|
||||
_gtk_menu_shell_select_first (menu_shell, FALSE);
|
||||
gtk_menu_shell_select_first (menu_shell, FALSE);
|
||||
|
||||
g_list_free (menubars);
|
||||
|
||||
|
@ -804,7 +804,7 @@ gtk_real_menu_item_activate_item (GtkMenuItem *menu_item)
|
||||
gtk_menu_shell_select_item (GTK_MENU_SHELL (widget->parent), widget);
|
||||
gtk_menu_item_popup_submenu (widget);
|
||||
|
||||
_gtk_menu_shell_select_first (GTK_MENU_SHELL (menu_item->submenu), FALSE);
|
||||
gtk_menu_shell_select_first (GTK_MENU_SHELL (menu_item->submenu), FALSE);
|
||||
submenu = GTK_MENU_SHELL (menu_item->submenu);
|
||||
}
|
||||
}
|
||||
|
@ -987,7 +987,7 @@ gtk_menu_shell_move_selected (GtkMenuShell *menu_shell,
|
||||
}
|
||||
|
||||
/**
|
||||
* _gtk_menu_shell_select_first:
|
||||
* gtk_menu_shell_select_first:
|
||||
* @menu_shell: a #GtkMenuShell
|
||||
* @search_sensitive: if %TRUE, search for the first selectable
|
||||
* menu item, otherwise select nothing if
|
||||
@ -1000,7 +1000,7 @@ gtk_menu_shell_move_selected (GtkMenuShell *menu_shell,
|
||||
* item.
|
||||
**/
|
||||
void
|
||||
_gtk_menu_shell_select_first (GtkMenuShell *menu_shell,
|
||||
gtk_menu_shell_select_first (GtkMenuShell *menu_shell,
|
||||
gboolean search_sensitive)
|
||||
{
|
||||
GtkWidget *to_select = NULL;
|
||||
@ -1061,7 +1061,7 @@ gtk_menu_shell_select_submenu_first (GtkMenuShell *menu_shell)
|
||||
menu_item = GTK_MENU_ITEM (menu_shell->active_menu_item);
|
||||
|
||||
if (menu_item->submenu)
|
||||
_gtk_menu_shell_select_first (GTK_MENU_SHELL (menu_item->submenu), TRUE);
|
||||
gtk_menu_shell_select_first (GTK_MENU_SHELL (menu_item->submenu), TRUE);
|
||||
}
|
||||
|
||||
static void
|
||||
@ -1134,7 +1134,7 @@ gtk_real_menu_shell_move_current (GtkMenuShell *menu_shell,
|
||||
if (!had_selection &&
|
||||
!menu_shell->active_menu_item &&
|
||||
menu_shell->children)
|
||||
_gtk_menu_shell_select_first (menu_shell, TRUE);
|
||||
gtk_menu_shell_select_first (menu_shell, TRUE);
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -6478,7 +6478,7 @@ popup_targets_received (GtkClipboard *clipboard,
|
||||
gtk_menu_popup (GTK_MENU (text_view->popup_menu), NULL, NULL,
|
||||
popup_position_func, text_view,
|
||||
0, gtk_get_current_event_time ());
|
||||
_gtk_menu_shell_select_first (GTK_MENU_SHELL (text_view->popup_menu), FALSE);
|
||||
gtk_menu_shell_select_first (GTK_MENU_SHELL (text_view->popup_menu), FALSE);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user