Commit eda20db8 authored by Havoc Pennington's avatar Havoc Pennington Committed by Havoc Pennington
Browse files

Added API for controlling the background, so we can connect that to the

1999-12-16  Havoc Pennington  <hp@redhat.com>

* src/file-manager/desktop-canvas.h: Added API for controlling the
background, so we can connect that to the IDL interface.

* src/file-manager/desktop-canvas.h: New file

* src/file-manager/desktop-window.h: tweaks

* idl/gnome-desktop.idl: Change BackgroundInfo to not be a union.
parent cdbead7e
......@@ -29,18 +29,24 @@ module Desktop {
HorizontalGradient
};
union BackgroundInfo switch (BackgroundType) {
case ImageBackground:
string filename;
// Note that this is not a union; if you change types
// the settings for non-current types are not lost.
struct BackgroundInfo {
BackgroundType type;
// Image settings
ImageType imagetype;
case GradientBackground:
string filename;
// Gradient settings
GradientType gradienttype;
// colors are 24-bit RGB packed into an int
int northwest_color; // top or left color
int southeast_color; // bottom or right color
case SolidBackground:
// Solid color settings
// 24-bit RGB packed into an int
int color;
int solid_color;
};
void get_background_info (out BackgroundInfo info);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment