Keep around an "active_display" member in GimpImageWindow

And add gimp_image_window_set_active_display(). Call the new function
when creating a shell. Will all be done by the means of a GimpContext
later, but is a step to get rid of FIXME hacks.
This commit is contained in:
Michael Natterer
2009-09-23 18:22:50 +02:00
parent 03fcc99bbf
commit a82169ee13
3 changed files with 26 additions and 1 deletions

View File

@ -36,6 +36,8 @@ struct _GimpImageWindow
{
GimpWindow parent_instance;
GimpDisplay *active_display;
GimpUIManager *menubar_manager;
GtkWidget *main_vbox;
@ -53,6 +55,8 @@ struct _GimpImageWindowClass
GType gimp_image_window_get_type (void) G_GNUC_CONST;
void gimp_image_window_set_active_display (GimpImageWindow *window,
GimpDisplay *display);
GimpDisplay * gimp_image_window_get_active_display (GimpImageWindow *window);
void gimp_image_window_set_fullscreen (GimpImageWindow *window,