/* * Checks if the window is the topmost window of the program and in * that case forces the window to take the common toolbar. */ static void hildon_program_common_toolbar_topmost_window (gpointer window, gpointer data) { if (HILDON_IS_WINDOW (window) && hildon_window_get_is_topmost (HILDON_WINDOW (window))) hildon_window_take_common_toolbar (HILDON_WINDOW (window)); }
static void parent_window_topmost_notify (HildonWindow *parent_win, GParamSpec *arg1, GtkWidget *menu) { if (!hildon_window_get_is_topmost (parent_win)) gtk_widget_hide (menu); }