mirror of https://github.com/GNOME/gimp.git
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:
parent
92f5a8b428
commit
4f8e69cf5d
|
@ -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>
|
||||
|
||||
* app/tools/gimprectangletool.c: terminate variable argument list.
|
||||
|
|
|
@ -282,7 +282,6 @@ gimp_init (Gimp *gimp)
|
|||
gimp_object_set_name (GIMP_OBJECT (gimp->templates), "templates");
|
||||
|
||||
gimp->image_new_last_template = NULL;
|
||||
gimp->have_current_cut_buffer = FALSE;
|
||||
|
||||
gimp->context_list = NULL;
|
||||
gimp->default_context = NULL;
|
||||
|
@ -623,8 +622,6 @@ gimp_real_initialize (Gimp *gimp,
|
|||
gimp->image_new_last_template =
|
||||
gimp_config_duplicate (GIMP_CONFIG (gimp->config->default_image));
|
||||
|
||||
gimp->have_current_cut_buffer = FALSE;
|
||||
|
||||
/* create user and default context */
|
||||
gimp_contexts_init (gimp);
|
||||
|
||||
|
@ -933,8 +930,6 @@ gimp_set_global_buffer (Gimp *gimp,
|
|||
if (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);
|
||||
}
|
||||
|
||||
|
|
|
@ -124,7 +124,6 @@ struct _Gimp
|
|||
/* image_new values */
|
||||
GimpContainer *templates;
|
||||
GimpTemplate *image_new_last_template;
|
||||
gboolean have_current_cut_buffer;
|
||||
|
||||
/* the list of all contexts */
|
||||
GList *context_list;
|
||||
|
|
|
@ -25,7 +25,6 @@
|
|||
#include "core-types.h"
|
||||
|
||||
#include "gimp.h"
|
||||
#include "gimpbuffer.h"
|
||||
#include "gimpimage.h"
|
||||
#include "gimpimage-new.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),
|
||||
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;
|
||||
}
|
||||
|
||||
|
@ -70,6 +61,4 @@ gimp_image_new_set_last_template (Gimp *gimp,
|
|||
|
||||
gimp_config_sync (G_OBJECT (template),
|
||||
G_OBJECT (gimp->image_new_last_template), 0);
|
||||
|
||||
gimp->have_current_cut_buffer = FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue