app/core/gimp.[ch] removed the confusing and redundant feature of having

2005-09-05  Sven Neumann  <sven@gimp.org>

        * app/core/gimp.[ch]
        * app/core/gimpimage-new.c: removed the confusing and redundant
        feature of having the New Image dialog default to the size of the
        global buffer. Please use Paste as New instead. Fixes bug #315106.
This commit is contained in:
Sven Neumann 2005-09-05 10:52:48 +00:00 committed by Sven Neumann
parent 92f5a8b428
commit 4f8e69cf5d
4 changed files with 7 additions and 17 deletions

View File

@ -1,3 +1,10 @@
2005-09-05 Sven Neumann <sven@gimp.org>
* app/core/gimp.[ch]
* app/core/gimpimage-new.c: removed the confusing and redundant
feature of having the New Image dialog default to the size of the
global buffer. Please use Paste as New instead. Fixes bug #315106.
2005-09-05 Sven Neumann <sven@gimp.org> 2005-09-05 Sven Neumann <sven@gimp.org>
* app/tools/gimprectangletool.c: terminate variable argument list. * app/tools/gimprectangletool.c: terminate variable argument list.

View File

@ -282,7 +282,6 @@ gimp_init (Gimp *gimp)
gimp_object_set_name (GIMP_OBJECT (gimp->templates), "templates"); gimp_object_set_name (GIMP_OBJECT (gimp->templates), "templates");
gimp->image_new_last_template = NULL; gimp->image_new_last_template = NULL;
gimp->have_current_cut_buffer = FALSE;
gimp->context_list = NULL; gimp->context_list = NULL;
gimp->default_context = NULL; gimp->default_context = NULL;
@ -623,8 +622,6 @@ gimp_real_initialize (Gimp *gimp,
gimp->image_new_last_template = gimp->image_new_last_template =
gimp_config_duplicate (GIMP_CONFIG (gimp->config->default_image)); gimp_config_duplicate (GIMP_CONFIG (gimp->config->default_image));
gimp->have_current_cut_buffer = FALSE;
/* create user and default context */ /* create user and default context */
gimp_contexts_init (gimp); gimp_contexts_init (gimp);
@ -933,8 +930,6 @@ gimp_set_global_buffer (Gimp *gimp,
if (gimp->global_buffer) if (gimp->global_buffer)
g_object_ref (gimp->global_buffer); g_object_ref (gimp->global_buffer);
gimp->have_current_cut_buffer = (buffer != NULL);
g_signal_emit (gimp, gimp_signals[BUFFER_CHANGED], 0); g_signal_emit (gimp, gimp_signals[BUFFER_CHANGED], 0);
} }

View File

@ -124,7 +124,6 @@ struct _Gimp
/* image_new values */ /* image_new values */
GimpContainer *templates; GimpContainer *templates;
GimpTemplate *image_new_last_template; GimpTemplate *image_new_last_template;
gboolean have_current_cut_buffer;
/* the list of all contexts */ /* the list of all contexts */
GList *context_list; GList *context_list;

View File

@ -25,7 +25,6 @@
#include "core-types.h" #include "core-types.h"
#include "gimp.h" #include "gimp.h"
#include "gimpbuffer.h"
#include "gimpimage.h" #include "gimpimage.h"
#include "gimpimage-new.h" #include "gimpimage-new.h"
#include "gimptemplate.h" #include "gimptemplate.h"
@ -50,14 +49,6 @@ gimp_image_new_get_last_template (Gimp *gimp,
gimp_config_sync (G_OBJECT (gimp->image_new_last_template), gimp_config_sync (G_OBJECT (gimp->image_new_last_template),
G_OBJECT (template), 0); G_OBJECT (template), 0);
if (gimp->global_buffer && gimp->have_current_cut_buffer)
{
g_object_set (template,
"width", gimp_buffer_get_width (gimp->global_buffer),
"height", gimp_buffer_get_height (gimp->global_buffer),
NULL);
}
return template; return template;
} }
@ -70,6 +61,4 @@ gimp_image_new_set_last_template (Gimp *gimp,
gimp_config_sync (G_OBJECT (template), gimp_config_sync (G_OBJECT (template),
G_OBJECT (gimp->image_new_last_template), 0); G_OBJECT (gimp->image_new_last_template), 0);
gimp->have_current_cut_buffer = FALSE;
} }