Mercurial > geeqie.yaz
comparison src/image.c @ 821:fb249b8e63e4
Move some functions from image.[ch] to image-overlay.c and make them static:
- image_overlay_add()
- image_overlay_set()
- image_overlay_remove()
- image_overlay_get() (unused)
author | zas_ |
---|---|
date | Thu, 12 Jun 2008 20:17:22 +0000 |
parents | 631d626c1f6b |
children | efed9a1520d6 |
comparison
equal
deleted
inserted
replaced
820:e9e3fb483cdc | 821:fb249b8e63e4 |
---|---|
1136 image_focus_paint(imd, FALSE, NULL); | 1136 image_focus_paint(imd, FALSE, NULL); |
1137 | 1137 |
1138 return TRUE; | 1138 return TRUE; |
1139 } | 1139 } |
1140 | 1140 |
1141 gint image_overlay_add(ImageWindow *imd, GdkPixbuf *pixbuf, gint x, gint y, | |
1142 gint relative, gint always) | |
1143 { | |
1144 return pixbuf_renderer_overlay_add((PixbufRenderer *)imd->pr, pixbuf, x, y, relative, always); | |
1145 } | |
1146 | |
1147 void image_overlay_set(ImageWindow *imd, gint id, GdkPixbuf *pixbuf, gint x, gint y) | |
1148 { | |
1149 pixbuf_renderer_overlay_set((PixbufRenderer *)imd->pr, id, pixbuf, x, y); | |
1150 } | |
1151 | |
1152 gint image_overlay_get(ImageWindow *imd, gint id, GdkPixbuf **pixbuf, gint *x, gint *y) | |
1153 { | |
1154 return pixbuf_renderer_overlay_get((PixbufRenderer *)imd->pr, id, pixbuf, x, y); | |
1155 } | |
1156 | |
1157 void image_overlay_remove(ImageWindow *imd, gint id) | |
1158 { | |
1159 pixbuf_renderer_overlay_remove((PixbufRenderer *)imd->pr, id); | |
1160 } | |
1161 | |
1162 static gint image_scroll_cb(GtkWidget *widget, GdkEventScroll *event, gpointer data) | 1141 static gint image_scroll_cb(GtkWidget *widget, GdkEventScroll *event, gpointer data) |
1163 { | 1142 { |
1164 ImageWindow *imd = data; | 1143 ImageWindow *imd = data; |
1165 | 1144 |
1166 if (imd->func_scroll && | 1145 if (imd->func_scroll && |