menu-windowlist

menu-windowlist — Option menu of data windows.

Synopsis




GtkWidget*  gwy_option_menu_data_window     (GCallback callback,
                                             gpointer cbdata,
                                             const gchar *none_label,
                                             GtkWidget *current);
gboolean    gwy_option_menu_data_window_set_history
                                            (GtkWidget *option_menu,
                                             GtkWidget *current);
GtkWidget*  gwy_option_menu_data_window_get_history
                                            (GtkWidget *option_menu);

Description

Details

gwy_option_menu_data_window ()

GtkWidget*  gwy_option_menu_data_window     (GCallback callback,
                                             gpointer cbdata,
                                             const gchar *none_label,
                                             GtkWidget *current);

Creates an option menu of existing data windows, with thumbnails.

It sets object data "data-window" to data window pointer for each menu item.

Note the menu is currently only safe to use in modal dialogs only because it is static and does NOT react to creation or closing of data windows. However, it probably will react to it in the future, so make no assupmtions.

callback : A callback called when a menu item is activated (or NULL for no callback).
cbdata : User data passed to the callback.
none_label : Label to use for `none' menu item. If it is NULL, no `none' item is created, if it is empty, a default label is used.
current : Data window to be shown as currently selected.
Returns : The newly created option menu as a GtkWidget.

gwy_option_menu_data_window_set_history ()

gboolean    gwy_option_menu_data_window_set_history
                                            (GtkWidget *option_menu,
                                             GtkWidget *current);

Sets data window option menu history to a specific data window.

option_menu : An option menu created by gwy_option_menu_data_window().
current : Data window to be shown as currently selected.
Returns : TRUE if the history was set, FALSE if current was not found.

gwy_option_menu_data_window_get_history ()

GtkWidget*  gwy_option_menu_data_window_get_history
                                            (GtkWidget *option_menu);

Gets the currently selected data window in a data window option menu.

option_menu : An option menu created by gwy_option_menu_data_window().
Returns : The currently selected data window (may be NULL if `none' is selected).