mirror of https://github.com/GNOME/gimp.git
avoid code duplication by using a #define.
2006-03-23 Sven Neumann <sven@gimp.org> * app/display/gimpdisplayoptions.c: avoid code duplication by using a #define. * app/config/gimpdisplayconfig.c: for fullscreen mode, default to the same settings as we do for normal editing mode.
This commit is contained in:
parent
d6b20db79c
commit
641952231e
|
@ -1,3 +1,11 @@
|
||||||
|
2006-03-23 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
|
* app/display/gimpdisplayoptions.c: avoid code duplication by
|
||||||
|
using a #define.
|
||||||
|
|
||||||
|
* app/config/gimpdisplayconfig.c: for fullscreen mode, default to
|
||||||
|
the same settings as we do for normal editing mode.
|
||||||
|
|
||||||
2006-03-23 Sven Neumann <sven@gimp.org>
|
2006-03-23 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
* plug-ins/common/psd.c
|
* plug-ins/common/psd.c
|
||||||
|
|
|
@ -235,7 +235,7 @@ gimp_display_config_init (GimpDisplayConfig *config)
|
||||||
config);
|
config);
|
||||||
|
|
||||||
config->default_fullscreen_view =
|
config->default_fullscreen_view =
|
||||||
g_object_new (GIMP_TYPE_DISPLAY_OPTIONS_FULLSCREEN, NULL);
|
g_object_new (GIMP_TYPE_DISPLAY_OPTIONS, NULL);
|
||||||
|
|
||||||
g_signal_connect (config->default_fullscreen_view, "notify",
|
g_signal_connect (config->default_fullscreen_view, "notify",
|
||||||
G_CALLBACK (gimp_display_config_fullscreen_notify),
|
G_CALLBACK (gimp_display_config_fullscreen_notify),
|
||||||
|
|
|
@ -73,6 +73,8 @@ G_DEFINE_TYPE_WITH_CODE (GimpDisplayOptions,
|
||||||
typedef struct _GimpDisplayOptions GimpDisplayOptionsFullscreen;
|
typedef struct _GimpDisplayOptions GimpDisplayOptionsFullscreen;
|
||||||
typedef struct _GimpDisplayOptionsClass GimpDisplayOptionsFullscreenClass;
|
typedef struct _GimpDisplayOptionsClass GimpDisplayOptionsFullscreenClass;
|
||||||
|
|
||||||
|
#define gimp_display_options_fullscreen_init gimp_display_options_init
|
||||||
|
|
||||||
G_DEFINE_TYPE_WITH_CODE (GimpDisplayOptionsFullscreen,
|
G_DEFINE_TYPE_WITH_CODE (GimpDisplayOptionsFullscreen,
|
||||||
gimp_display_options_fullscreen,
|
gimp_display_options_fullscreen,
|
||||||
GIMP_TYPE_DISPLAY_OPTIONS,
|
GIMP_TYPE_DISPLAY_OPTIONS,
|
||||||
|
@ -201,12 +203,6 @@ gimp_display_options_init (GimpDisplayOptions *options)
|
||||||
options->padding_mode_set = FALSE;
|
options->padding_mode_set = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
gimp_display_options_fullscreen_init (GimpDisplayOptionsFullscreen *options)
|
|
||||||
{
|
|
||||||
options->padding_mode_set = FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gimp_display_options_set_property (GObject *object,
|
gimp_display_options_set_property (GObject *object,
|
||||||
guint property_id,
|
guint property_id,
|
||||||
|
|
Loading…
Reference in New Issue