mirror of https://github.com/GNOME/gimp.git
hide the button bar, which is useless for the brush editor. Fixes user
2006-05-07 Michael Natterer <mitch@gimp.org> * app/widgets/gimpbrusheditor.c: hide the button bar, which is useless for the brush editor. Fixes user confusion (bug #306704).
This commit is contained in:
parent
c2061e2922
commit
bc06f94e47
|
@ -1,3 +1,8 @@
|
||||||
|
2006-05-07 Michael Natterer <mitch@gimp.org>
|
||||||
|
|
||||||
|
* app/widgets/gimpbrusheditor.c: hide the button bar, which is
|
||||||
|
useless for the brush editor. Fixes user confusion (bug #306704).
|
||||||
|
|
||||||
2006-05-06 Michael Natterer <mitch@gimp.org>
|
2006-05-06 Michael Natterer <mitch@gimp.org>
|
||||||
|
|
||||||
* app/tools/gimppainttool.c: connect to the context's
|
* app/tools/gimppainttool.c: connect to the context's
|
||||||
|
|
|
@ -34,6 +34,7 @@
|
||||||
#include "core/gimpcontext.h"
|
#include "core/gimpcontext.h"
|
||||||
|
|
||||||
#include "gimpbrusheditor.h"
|
#include "gimpbrusheditor.h"
|
||||||
|
#include "gimpdocked.h"
|
||||||
#include "gimpview.h"
|
#include "gimpview.h"
|
||||||
|
|
||||||
#include "gimp-intl.h"
|
#include "gimp-intl.h"
|
||||||
|
@ -45,16 +46,20 @@
|
||||||
|
|
||||||
/* local function prototypes */
|
/* local function prototypes */
|
||||||
|
|
||||||
static void gimp_brush_editor_set_data (GimpDataEditor *editor,
|
static GObject * gimp_brush_editor_constructor (GType type,
|
||||||
GimpData *data);
|
guint n_params,
|
||||||
|
GObjectConstructParam *params);
|
||||||
|
|
||||||
static void gimp_brush_editor_update_brush (GtkAdjustment *adjustment,
|
static void gimp_brush_editor_set_data (GimpDataEditor *editor,
|
||||||
GimpBrushEditor *editor);
|
GimpData *data);
|
||||||
static void gimp_brush_editor_update_shape (GtkWidget *widget,
|
|
||||||
GimpBrushEditor *editor);
|
static void gimp_brush_editor_update_brush (GtkAdjustment *adjustment,
|
||||||
static void gimp_brush_editor_notify_brush (GimpBrushGenerated *brush,
|
GimpBrushEditor *editor);
|
||||||
GParamSpec *pspec,
|
static void gimp_brush_editor_update_shape (GtkWidget *widget,
|
||||||
GimpBrushEditor *editor);
|
GimpBrushEditor *editor);
|
||||||
|
static void gimp_brush_editor_notify_brush (GimpBrushGenerated *brush,
|
||||||
|
GParamSpec *pspec,
|
||||||
|
GimpBrushEditor *editor);
|
||||||
|
|
||||||
|
|
||||||
G_DEFINE_TYPE (GimpBrushEditor, gimp_brush_editor, GIMP_TYPE_DATA_EDITOR);
|
G_DEFINE_TYPE (GimpBrushEditor, gimp_brush_editor, GIMP_TYPE_DATA_EDITOR);
|
||||||
|
@ -65,10 +70,13 @@ G_DEFINE_TYPE (GimpBrushEditor, gimp_brush_editor, GIMP_TYPE_DATA_EDITOR);
|
||||||
static void
|
static void
|
||||||
gimp_brush_editor_class_init (GimpBrushEditorClass *klass)
|
gimp_brush_editor_class_init (GimpBrushEditorClass *klass)
|
||||||
{
|
{
|
||||||
|
GObjectClass *object_class = G_OBJECT_CLASS (klass);
|
||||||
GimpDataEditorClass *editor_class = GIMP_DATA_EDITOR_CLASS (klass);
|
GimpDataEditorClass *editor_class = GIMP_DATA_EDITOR_CLASS (klass);
|
||||||
|
|
||||||
editor_class->set_data = gimp_brush_editor_set_data;
|
object_class->constructor = gimp_brush_editor_constructor;
|
||||||
editor_class->title = _("Brush Editor");
|
|
||||||
|
editor_class->set_data = gimp_brush_editor_set_data;
|
||||||
|
editor_class->title = _("Brush Editor");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -198,6 +206,20 @@ gimp_brush_editor_init (GimpBrushEditor *editor)
|
||||||
editor);
|
editor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static GObject *
|
||||||
|
gimp_brush_editor_constructor (GType type,
|
||||||
|
guint n_params,
|
||||||
|
GObjectConstructParam *params)
|
||||||
|
{
|
||||||
|
GObject *object;
|
||||||
|
|
||||||
|
object = G_OBJECT_CLASS (parent_class)->constructor (type, n_params, params);
|
||||||
|
|
||||||
|
gimp_docked_set_show_button_bar (GIMP_DOCKED (object), FALSE);
|
||||||
|
|
||||||
|
return object;
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gimp_brush_editor_set_data (GimpDataEditor *editor,
|
gimp_brush_editor_set_data (GimpDataEditor *editor,
|
||||||
GimpData *data)
|
GimpData *data)
|
||||||
|
|
Loading…
Reference in New Issue