Mercurial > geeqie
changeset 534:0a2b8210ef1d
Indentation fixes.
author | zas_ |
---|---|
date | Thu, 01 May 2008 18:37:50 +0000 |
parents | e62b2e06ab7b |
children | 8123d713dd3f |
files | src/cellrenderericon.c |
diffstat | 1 files changed, 20 insertions(+), 22 deletions(-) [+] |
line wrap: on
line diff
--- a/src/cellrenderericon.c Thu May 01 18:26:30 2008 +0000 +++ b/src/cellrenderericon.c Thu May 01 18:37:50 2008 +0000 @@ -87,13 +87,13 @@ NULL, /* class_data */ sizeof(GQvCellRendererIcon), 0, /* n_preallocs */ - (GInstanceInitFunc) gqv_cell_renderer_icon_init, - }; + (GInstanceInitFunc) gqv_cell_renderer_icon_init, + }; - cell_icon_type = g_type_register_static(GTK_TYPE_CELL_RENDERER, - "GQvCellRendererIcon", - &cell_icon_info, 0); - } + cell_icon_type = g_type_register_static(GTK_TYPE_CELL_RENDERER, + "GQvCellRendererIcon", + &cell_icon_info, 0); + } return cell_icon_type; } @@ -225,10 +225,9 @@ GQvCellRendererIcon *cellicon = GQV_CELL_RENDERER_ICON(object); switch (param_id) - { - case PROP_PIXBUF: - g_value_set_object(value, - cellicon->pixbuf ? G_OBJECT(cellicon->pixbuf) : NULL); + { + case PROP_PIXBUF: + g_value_set_object(value, cellicon->pixbuf ? G_OBJECT(cellicon->pixbuf) : NULL); break; case PROP_TEXT: g_value_set_string(value, cellicon->text); @@ -339,16 +338,16 @@ GQvCellRendererIcon *cellicon = GQV_CELL_RENDERER_ICON(object); switch (param_id) + { + case PROP_PIXBUF: { - case PROP_PIXBUF: - { - GdkPixbuf *pixbuf; + GdkPixbuf *pixbuf; - pixbuf = (GdkPixbuf*) g_value_get_object(value); - if (pixbuf) g_object_ref(pixbuf); - if (cellicon->pixbuf) g_object_unref(cellicon->pixbuf); - cellicon->pixbuf = pixbuf; - } + pixbuf = (GdkPixbuf*) g_value_get_object(value); + if (pixbuf) g_object_ref(pixbuf); + if (cellicon->pixbuf) g_object_unref(cellicon->pixbuf); + cellicon->pixbuf = pixbuf; + } break; case PROP_TEXT: { @@ -388,7 +387,7 @@ default: G_OBJECT_WARN_INVALID_PROPERTY_ID(object, param_id, pspec); break; - } + } } static PangoLayout * @@ -447,7 +446,7 @@ GtkCellRenderer * gqv_cell_renderer_icon_new(void) { - return g_object_new (GQV_TYPE_CELL_RENDERER_ICON, NULL); + return g_object_new(GQV_TYPE_CELL_RENDERER_ICON, NULL); } static void @@ -629,8 +628,7 @@ g_object_unref(layout); } - if (cellicon->focused && - GTK_WIDGET_HAS_FOCUS(widget)) + if (cellicon->focused && GTK_WIDGET_HAS_FOCUS(widget)) { gtk_paint_focus(widget->style, window, state,