summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-background.h
diff options
context:
space:
mode:
authorDarin Adler <darin@src.gnome.org>2000-04-05 01:28:31 +0000
committerDarin Adler <darin@src.gnome.org>2000-04-05 01:28:31 +0000
commitcd9618f0c6c13e847f92e6509ff0ae1e3e5369b8 (patch)
tree1b5ce191296fb53b11a7fb1e9b82533d82ff6ff6 /libnautilus-private/nautilus-background.h
parentdc703c8ba1607c1b77441d13e2b9f55328d35a62 (diff)
downloadnautilus-cd9618f0c6c13e847f92e6509ff0ae1e3e5369b8.tar.gz
Finished task 54 (Set background image by drag/drop).
Fixed bug 346 (Bad icon positions when you change user level). Fixed bug 372 (Better icons for common file types). * libnautilus/nautilus-background-canvas-group.c: (nautilus_background_canvas_group_draw): Got rid of the colormap which is not needed now that we use gtk_rgb instead of gtk_color calls. Passed in the corner of the canvas as a parameter to nautilus_background_draw so it knows where the origin of any repeating pattern should be. * libnautilus/nautilus-background.h: * libnautilus/nautilus-background.c: (nautilus_background_draw): Added parameters to determine where the origin of any repeating pattern should be. Removed colormap parameter (see above). (nautilus_background_draw_flat_box): Passed in origin parameters in call to nautilus_background_draw. * libnautilus/nautilus-gdk-extensions.h: * libnautilus/nautilus-gdk-extensions.c: (nautilus_fill_rectangle_with_gradient): Removed colormap parameter (see above). * libnautilus/nautilus-gdk-pixbuf-extensions.c: (nautilus_gdk_pixbuf_render_to_drawable_tiled): Fixed the tiling so it will use the dither parameters to set the origin of the tiles as well. * libnautilus/nautilus-icon-dnd.c: (receive_dropped_tile_image), (nautilus_icon_container_receive_dropped_icons): Added code so that dropping an image file on the window with the shift key held down will customize the background tile image. * libnautilus/nautilus-icon-factory.c: (make_full_icon_path), (get_themed_icon_file_path): Fixed two bugs that prevented MIME-type-based icons from working correctly. First, got rid of code that tried to prepend the theme name and "nautilus/" to the beginning of a full path. Then made sure that it tries the file name without adding a suffix before it starts trying out suffixes. * libnautilus/nautilus-icon-grid.c: (nautilus_icon_grid_clear): Fixed bug where clearing the grid was resetting the visible width. * components/sample/Makefile.am: * components/services/startup/Makefile.am: Turned on -Werror for these two directories. * components/sample/nautilus-sample-content-view.h: * components/sample/nautilus-sample-content-view.c: (nautilus_sample_content_view_destroy), (bonobo_sample_callback): Fixed warnings and did some small cleanup.
Diffstat (limited to 'libnautilus-private/nautilus-background.h')
-rw-r--r--libnautilus-private/nautilus-background.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/libnautilus-private/nautilus-background.h b/libnautilus-private/nautilus-background.h
index be2209b9c..45690c12d 100644
--- a/libnautilus-private/nautilus-background.h
+++ b/libnautilus-private/nautilus-background.h
@@ -74,8 +74,9 @@ char * nautilus_background_get_tile_image_uri (NautilusBackgroun
void nautilus_background_draw (NautilusBackground *background,
GdkDrawable *drawable,
GdkGC *gc,
- GdkColormap *colormap,
- const GdkRectangle *rectangle);
+ const GdkRectangle *rectangle,
+ int origin_x,
+ int origin_y);
/* Handles a dragged color being dropped on a widget to change the background color. */
void nautilus_background_receive_dropped_color (NautilusBackground *background,