Mercurial > geeqie
diff src/image.c @ 512:f9bf33be53ff
Remove whitespace between function name and first parenthesis for the sake of consistency.
author | zas_ |
---|---|
date | Thu, 24 Apr 2008 12:23:02 +0000 |
parents | 135570a8bd96 |
children | 985fdfebd89e |
line wrap: on
line diff
--- a/src/image.c Thu Apr 24 11:40:26 2008 +0000 +++ b/src/image.c Thu Apr 24 12:23:02 2008 +0000 @@ -1098,18 +1098,18 @@ if (has_focus) { - gtk_paint_focus (widget->style, widget->window, GTK_STATE_ACTIVE, + gtk_paint_focus(widget->style, widget->window, GTK_STATE_ACTIVE, + area, widget, "image_window", + widget->allocation.x, widget->allocation.y, + widget->allocation.width - 1, widget->allocation.height - 1); + } + else + { + gtk_paint_shadow(widget->style, widget->window, GTK_STATE_NORMAL, GTK_SHADOW_IN, area, widget, "image_window", widget->allocation.x, widget->allocation.y, widget->allocation.width - 1, widget->allocation.height - 1); } - else - { - gtk_paint_shadow (widget->style, widget->window, GTK_STATE_NORMAL, GTK_SHADOW_IN, - area, widget, "image_window", - widget->allocation.x, widget->allocation.y, - widget->allocation.width - 1, widget->allocation.height - 1); - } } static gint image_focus_expose(GtkWidget *widget, GdkEventExpose *event, gpointer data) @@ -1833,7 +1833,7 @@ pb = gdk_pixbuf_scale_simple(pixbuf, width, height, (GdkInterpType)options->image.zoom_quality); - gdk_pixbuf_render_pixmap_and_mask (pb, &pixmap, NULL, 128); + gdk_pixbuf_render_pixmap_and_mask(pb, &pixmap, NULL, 128); gdk_window_set_back_pixmap(rootwindow, pixmap, FALSE); gdk_window_clear(rootwindow); g_object_unref(pb); @@ -1865,12 +1865,12 @@ if (selectable) { gtk_frame_set_shadow_type(GTK_FRAME(imd->frame), GTK_SHADOW_NONE); - gtk_container_set_border_width (GTK_CONTAINER (imd->frame), 4); + gtk_container_set_border_width(GTK_CONTAINER (imd->frame), 4); } else { gtk_frame_set_shadow_type(GTK_FRAME(imd->frame), GTK_SHADOW_NONE); - gtk_container_set_border_width (GTK_CONTAINER (imd->frame), 0); + gtk_container_set_border_width(GTK_CONTAINER (imd->frame), 0); } } } @@ -1947,12 +1947,12 @@ image_free(imd); } -gboolean selectable_frame_expose_cb (GtkWidget *widget, GdkEventExpose *event, gpointer data) +gboolean selectable_frame_expose_cb(GtkWidget *widget, GdkEventExpose *event, gpointer data) { gtk_paint_flat_box(widget->style, widget->window, widget->state, - GTK_FRAME (widget)->shadow_type, + (GTK_FRAME(widget))->shadow_type, NULL, widget, NULL, @@ -1979,8 +1979,8 @@ if (imd->has_frame != -1) gtk_container_remove(GTK_CONTAINER(imd->widget), imd->pr); gtk_container_add(GTK_CONTAINER(imd->frame), imd->pr); gtk_widget_unref(imd->pr); - g_signal_connect (G_OBJECT (imd->frame), "expose_event", - G_CALLBACK (selectable_frame_expose_cb), NULL); + g_signal_connect(G_OBJECT(imd->frame), "expose_event", + G_CALLBACK(selectable_frame_expose_cb), NULL); GTK_WIDGET_SET_FLAGS(imd->frame, GTK_CAN_FOCUS); g_signal_connect(G_OBJECT(imd->frame), "focus_in_event",