Add gimp_image_window_add_display() and use it

This API is most likely not final, but enables adding the vbox of
shell widgets to the image window's vbox *after* the shell constructor
returns. Seems to work nicely :-)
This commit is contained in:
Michael Natterer
2009-09-25 18:35:58 +02:00
parent bcef4f275d
commit 5b5e4e039a
5 changed files with 36 additions and 4 deletions

View File

@ -36,6 +36,7 @@ struct _GimpImageWindow
{
GimpWindow parent_instance;
GList *displays;
GimpDisplay *active_display;
GimpUIManager *menubar_manager;
@ -56,6 +57,9 @@ struct _GimpImageWindowClass
GType gimp_image_window_get_type (void) G_GNUC_CONST;
void gimp_image_window_add_display (GimpImageWindow *window,
GimpDisplay *display);
void gimp_image_window_set_active_display (GimpImageWindow *window,
GimpDisplay *display);
GimpDisplay * gimp_image_window_get_active_display (GimpImageWindow *window);