code cleanup, untabified.
2005-11-02 Michael Natterer <mitch@gimp.org> * app/text/gimptext.c: code cleanup, untabified.
This commit is contained in:
committed by
Michael Natterer
parent
c9c4e92647
commit
0c46cef04d
@ -1,3 +1,7 @@
|
||||
2005-11-02 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/text/gimptext.c: code cleanup, untabified.
|
||||
|
||||
2005-11-02 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/actions/data-commands.c
|
||||
|
||||
@ -124,12 +124,8 @@ gimp_font_get_type (void)
|
||||
static void
|
||||
gimp_font_class_init (GimpFontClass *klass)
|
||||
{
|
||||
GObjectClass *object_class;
|
||||
GimpViewableClass *viewable_class;
|
||||
GParamSpec *param_spec;
|
||||
|
||||
object_class = G_OBJECT_CLASS (klass);
|
||||
viewable_class = GIMP_VIEWABLE_CLASS (klass);
|
||||
GObjectClass *object_class = G_OBJECT_CLASS (klass);
|
||||
GimpViewableClass *viewable_class = GIMP_VIEWABLE_CLASS (klass);
|
||||
|
||||
parent_class = g_type_class_peek_parent (klass);
|
||||
|
||||
@ -142,12 +138,11 @@ gimp_font_class_init (GimpFontClass *klass)
|
||||
|
||||
viewable_class->default_stock_id = "gtk-select-font";
|
||||
|
||||
param_spec = g_param_spec_object ("pango-context", NULL, NULL,
|
||||
g_object_class_install_property (object_class, PROP_PANGO_CONTEXT,
|
||||
g_param_spec_object ("pango-context",
|
||||
NULL, NULL,
|
||||
PANGO_TYPE_CONTEXT,
|
||||
G_PARAM_WRITABLE);
|
||||
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_PANGO_CONTEXT, param_spec);
|
||||
G_PARAM_WRITABLE));
|
||||
}
|
||||
|
||||
static void
|
||||
@ -189,7 +184,6 @@ gimp_font_set_property (GObject *object,
|
||||
case PROP_PANGO_CONTEXT:
|
||||
if (font->pango_context)
|
||||
g_object_unref (font->pango_context);
|
||||
|
||||
font->pango_context = (PangoContext *) g_value_dup_object (value);
|
||||
break;
|
||||
|
||||
@ -219,14 +213,12 @@ gimp_font_get_popup_size (GimpViewable *viewable,
|
||||
gint *popup_width,
|
||||
gint *popup_height)
|
||||
{
|
||||
GimpFont *font;
|
||||
GimpFont *font = GIMP_FONT (viewable);
|
||||
PangoFontDescription *font_desc;
|
||||
PangoRectangle ink;
|
||||
PangoRectangle logical;
|
||||
const gchar *name;
|
||||
|
||||
font = GIMP_FONT (viewable);
|
||||
|
||||
if (! font->pango_context)
|
||||
return FALSE;
|
||||
|
||||
@ -261,7 +253,7 @@ gimp_font_get_new_preview (GimpViewable *viewable,
|
||||
gint width,
|
||||
gint height)
|
||||
{
|
||||
GimpFont *font;
|
||||
GimpFont *font = GIMP_FONT (viewable);
|
||||
PangoLayout *layout;
|
||||
PangoRectangle ink;
|
||||
PangoRectangle logical;
|
||||
@ -274,8 +266,6 @@ gimp_font_get_new_preview (GimpViewable *viewable,
|
||||
guchar *p;
|
||||
guchar black = 0;
|
||||
|
||||
font = GIMP_FONT (viewable);
|
||||
|
||||
if (! font->pango_context)
|
||||
return NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user