removed unused includes and stubs.
2006-06-27 Sven Neumann <sven@gimp.org> * app/tools/gimpalignoptions.c: removed unused includes and stubs.
This commit is contained in:

committed by
Sven Neumann

parent
57505ea1cd
commit
2ec2502644
@ -1,3 +1,7 @@
|
|||||||
|
2006-06-27 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
|
* app/tools/gimpalignoptions.c: removed unused includes and stubs.
|
||||||
|
|
||||||
2006-06-27 Sven Neumann <sven@gimp.org>
|
2006-06-27 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
* app/config/gimprc-blurbs.h (NUM_PROCESSORS_BLURB): simplified.
|
* app/config/gimprc-blurbs.h (NUM_PROCESSORS_BLURB): simplified.
|
||||||
|
@ -20,36 +20,11 @@
|
|||||||
|
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
#include "libgimpconfig/gimpconfig.h"
|
|
||||||
#include "libgimpwidgets/gimpwidgets.h"
|
|
||||||
|
|
||||||
#include "tools-types.h"
|
#include "tools-types.h"
|
||||||
|
|
||||||
#include "core/gimptoolinfo.h"
|
|
||||||
|
|
||||||
#include "widgets/gimpwidgets-utils.h"
|
|
||||||
|
|
||||||
#include "gimpalignoptions.h"
|
#include "gimpalignoptions.h"
|
||||||
#include "gimptooloptions-gui.h"
|
#include "gimptooloptions-gui.h"
|
||||||
|
|
||||||
#include "gimp-intl.h"
|
|
||||||
|
|
||||||
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
PROP_0,
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
static void gimp_align_options_set_property (GObject *object,
|
|
||||||
guint property_id,
|
|
||||||
const GValue *value,
|
|
||||||
GParamSpec *pspec);
|
|
||||||
static void gimp_align_options_get_property (GObject *object,
|
|
||||||
guint property_id,
|
|
||||||
GValue *value,
|
|
||||||
GParamSpec *pspec);
|
|
||||||
|
|
||||||
|
|
||||||
G_DEFINE_TYPE (GimpAlignOptions, gimp_align_options, GIMP_TYPE_TOOL_OPTIONS)
|
G_DEFINE_TYPE (GimpAlignOptions, gimp_align_options, GIMP_TYPE_TOOL_OPTIONS)
|
||||||
|
|
||||||
@ -57,10 +32,6 @@ G_DEFINE_TYPE (GimpAlignOptions, gimp_align_options, GIMP_TYPE_TOOL_OPTIONS)
|
|||||||
static void
|
static void
|
||||||
gimp_align_options_class_init (GimpAlignOptionsClass *klass)
|
gimp_align_options_class_init (GimpAlignOptionsClass *klass)
|
||||||
{
|
{
|
||||||
GObjectClass *object_class = G_OBJECT_CLASS (klass);
|
|
||||||
|
|
||||||
object_class->set_property = gimp_align_options_set_property;
|
|
||||||
object_class->get_property = gimp_align_options_get_property;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -68,47 +39,19 @@ gimp_align_options_init (GimpAlignOptions *options)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
gimp_align_options_set_property (GObject *object,
|
|
||||||
guint property_id,
|
|
||||||
const GValue *value,
|
|
||||||
GParamSpec *pspec)
|
|
||||||
{
|
|
||||||
switch (property_id)
|
|
||||||
{
|
|
||||||
default:
|
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
gimp_align_options_get_property (GObject *object,
|
|
||||||
guint property_id,
|
|
||||||
GValue *value,
|
|
||||||
GParamSpec *pspec)
|
|
||||||
{
|
|
||||||
switch (property_id)
|
|
||||||
{
|
|
||||||
default:
|
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
GtkWidget *
|
GtkWidget *
|
||||||
gimp_align_options_gui (GimpToolOptions *tool_options)
|
gimp_align_options_gui (GimpToolOptions *tool_options)
|
||||||
{
|
{
|
||||||
GtkWidget *vbox;
|
GtkWidget *vbox;
|
||||||
GtkWidget *controls_container;
|
GtkWidget *container;
|
||||||
|
|
||||||
vbox = gimp_tool_options_gui (tool_options);
|
vbox = gimp_tool_options_gui (tool_options);
|
||||||
|
|
||||||
controls_container = gtk_vbox_new (FALSE, 0);
|
container = gtk_vbox_new (FALSE, 0);
|
||||||
gtk_box_pack_start (GTK_BOX (vbox), controls_container, FALSE, FALSE, 0);
|
gtk_box_pack_start (GTK_BOX (vbox), container, FALSE, FALSE, 0);
|
||||||
gtk_widget_show (controls_container);
|
gtk_widget_show (container);
|
||||||
g_object_set_data (G_OBJECT (tool_options),
|
|
||||||
"controls-container", controls_container);
|
g_object_set_data (G_OBJECT (tool_options), "controls-container", container);
|
||||||
|
|
||||||
return vbox;
|
return vbox;
|
||||||
}
|
}
|
||||||
|
@ -170,7 +170,7 @@ gimp_align_tool_constructor (GType type,
|
|||||||
GObject *object;
|
GObject *object;
|
||||||
GimpTool *tool;
|
GimpTool *tool;
|
||||||
GimpAlignTool *align_tool;
|
GimpAlignTool *align_tool;
|
||||||
GtkContainer *controls_container;
|
GtkContainer *container;
|
||||||
GObject *options;
|
GObject *options;
|
||||||
|
|
||||||
object = G_OBJECT_CLASS (parent_class)->constructor (type, n_params, params);
|
object = G_OBJECT_CLASS (parent_class)->constructor (type, n_params, params);
|
||||||
@ -182,11 +182,11 @@ gimp_align_tool_constructor (GType type,
|
|||||||
|
|
||||||
options = G_OBJECT (tool->tool_info->tool_options);
|
options = G_OBJECT (tool->tool_info->tool_options);
|
||||||
|
|
||||||
controls_container = GTK_CONTAINER (g_object_get_data (options,
|
container = GTK_CONTAINER (g_object_get_data (options,
|
||||||
"controls-container"));
|
"controls-container"));
|
||||||
|
|
||||||
align_tool->controls = gimp_align_tool_controls (align_tool);
|
align_tool->controls = gimp_align_tool_controls (align_tool);
|
||||||
gtk_container_add (controls_container, align_tool->controls);
|
gtk_container_add (container, align_tool->controls);
|
||||||
|
|
||||||
return object;
|
return object;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user