app/config/gimprc-blurbs.h added separate properties for the fullscreen

2003-07-18  Michael Natterer  <mitch@gimp.org>

	* app/config/gimprc-blurbs.h
	* app/config/gimpdisplayconfig.[ch]: added separate properties for
	the fullscreen appearance of the display (menubar, rulers,
	scrollbars, statusbar and padding). Default to everything
	invisible and black padding.

	* app/display/gimpdisplayshell.[ch]: renamed struct
	GimpDisplayShellVisibility to GimpDisplayShellAppearance and added
	the canvas padding stuff.

	* app/display/gimpdisplayshell-appearance.[ch]: made
	gimp_display_shell_set_padding() fullscreen-aware. Added
	gimp_display_shell_get_padding().

	* app/display/gimpdisplayshell-callbacks.c
	* app/display/gimpdisplayshell-handlers.c
	* app/gui/image-menu.c: changed addordingly.

	* app/gui/preferences-dialog.c: added the new options and moved
	the display appearance stuff to its own page. Minor cleanups.
This commit is contained in:
Michael Natterer
2003-07-17 22:30:13 +00:00
committed by Michael Natterer
parent 7c4d375aa9
commit bc77f1e3ff
16 changed files with 830 additions and 480 deletions

View File

@ -27,19 +27,23 @@
#include "gui/gui-types.h"
typedef struct _GimpDisplayShellVisibility GimpDisplayShellVisibility;
typedef struct _GimpDisplayShellAppearance GimpDisplayShellAppearance;
struct _GimpDisplayShellVisibility
struct _GimpDisplayShellAppearance
{
gboolean selection;
gboolean active_layer;
gboolean guides;
gboolean grid;
gboolean selection;
gboolean active_layer;
gboolean guides;
gboolean grid;
gboolean menubar;
gboolean rulers;
gboolean scrollbars;
gboolean statusbar;
gboolean menubar;
gboolean rulers;
gboolean scrollbars;
gboolean statusbar;
GimpDisplayPaddingMode padding_mode;
GimpRGB padding_color;
gboolean padding_mode_set;
};
@ -147,10 +151,6 @@ struct _GimpDisplayShell
gint cursor_y; /* software cursor Y value */
GtkWidget *padding_button; /* GimpColorPanel in the NE corner */
GimpDisplayPaddingMode padding_mode;
gboolean padding_mode_set;
GimpRGB padding_color; /* color of the empty around the image */
GtkWidget *nav_ebox; /* GtkEventBox on the SE corner */
GtkWidget *warning_dialog; /* close warning dialog */
@ -168,8 +168,8 @@ struct _GimpDisplayShell
GdkWindowState window_state; /* for fullscreen display */
GimpDisplayShellVisibility visibility;
GimpDisplayShellVisibility fullscreen_visibility;
GimpDisplayShellAppearance appearance;
GimpDisplayShellAppearance fullscreen_appearance;
};
struct _GimpDisplayShellClass