Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
xfce4-screensaver
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
56
Issues
56
List
Boards
Labels
Service Desk
Milestones
Custom Issue Tracker
Custom Issue Tracker
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Apps
xfce4-screensaver
Commits
3ea61b8b
Commit
3ea61b8b
authored
Oct 01, 2018
by
Sean Davis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tidy up xfce-bg.{c,h}
parent
eb447b3d
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
1144 deletions
+29
-1144
src/xfce-bg.c
src/xfce-bg.c
+29
-1070
src/xfce-bg.h
src/xfce-bg.h
+0
-74
No files found.
src/xfce-bg.c
View file @
3ea61b8b
This diff is collapsed.
Click to expand it.
src/xfce-bg.h
View file @
3ea61b8b
...
...
@@ -81,88 +81,14 @@ typedef enum {
GType
xfce_bg_get_type
(
void
);
XfceBG
*
xfce_bg_new
(
void
);
void
xfce_bg_load_from_preferences
(
XfceBG
*
bg
);
void
xfce_bg_load_from_system_preferences
(
XfceBG
*
bg
);
void
xfce_bg_load_from_system_gsettings
(
XfceBG
*
bg
,
GSettings
*
settings
,
gboolean
reset_apply
);
void
xfce_bg_load_from_gsettings
(
XfceBG
*
bg
,
GSettings
*
settings
);
void
xfce_bg_save_to_preferences
(
XfceBG
*
bg
);
void
xfce_bg_save_to_gsettings
(
XfceBG
*
bg
,
GSettings
*
settings
);
/* Setters */
void
xfce_bg_set_filename
(
XfceBG
*
bg
,
const
char
*
filename
);
void
xfce_bg_set_placement
(
XfceBG
*
bg
,
XfceBGPlacement
placement
);
void
xfce_bg_set_color
(
XfceBG
*
bg
,
XfceBGColorType
type
,
GdkRGBA
*
primary
,
GdkRGBA
*
secondary
);
void
xfce_bg_set_draw_background
(
XfceBG
*
bg
,
gboolean
draw_background
);
/* Getters */
gboolean
xfce_bg_get_draw_background
(
XfceBG
*
bg
);
XfceBGPlacement
xfce_bg_get_placement
(
XfceBG
*
bg
);
void
xfce_bg_get_color
(
XfceBG
*
bg
,
XfceBGColorType
*
type
,
GdkRGBA
*
primary
,
GdkRGBA
*
secondary
);
const
gchar
*
xfce_bg_get_filename
(
XfceBG
*
bg
);
/* Drawing and thumbnailing */
void
xfce_bg_draw
(
XfceBG
*
bg
,
GdkPixbuf
*
dest
,
GdkScreen
*
screen
,
gboolean
is_root
);
cairo_surface_t
*
xfce_bg_create_surface
(
XfceBG
*
bg
,
GdkWindow
*
window
,
int
width
,
int
height
,
gboolean
root
);
cairo_surface_t
*
xfce_bg_create_surface_scale
(
XfceBG
*
bg
,
GdkWindow
*
window
,
int
width
,
int
height
,
int
scale
,
gboolean
root
);
gboolean
xfce_bg_get_image_size
(
XfceBG
*
bg
,
XfceDesktopThumbnailFactory
*
factory
,
int
best_width
,
int
best_height
,
int
*
width
,
int
*
height
);
GdkPixbuf
*
xfce_bg_create_thumbnail
(
XfceBG
*
bg
,
XfceDesktopThumbnailFactory
*
factory
,
GdkScreen
*
screen
,
int
dest_width
,
int
dest_height
);
gboolean
xfce_bg_is_dark
(
XfceBG
*
bg
,
int
dest_width
,
int
dest_height
);
gboolean
xfce_bg_has_multiple_sizes
(
XfceBG
*
bg
);
gboolean
xfce_bg_changes_with_time
(
XfceBG
*
bg
);
GdkPixbuf
*
xfce_bg_create_frame_thumbnail
(
XfceBG
*
bg
,
XfceDesktopThumbnailFactory
*
factory
,
GdkScreen
*
screen
,
int
dest_width
,
int
dest_height
,
int
frame_num
);
/* Set a surface as root - not a XfceBG method. At some point
* if we decide to stabilize the API then we may want to make
* these object methods, drop xfce_bg_create_surface, etc.
*/
void
xfce_bg_set_surface_as_root
(
GdkScreen
*
screen
,
cairo_surface_t
*
surface
);
XfceBGCrossfade
*
xfce_bg_set_surface_as_root_with_crossfade
(
GdkScreen
*
screen
,
cairo_surface_t
*
surface
);
cairo_surface_t
*
xfce_bg_get_surface_from_root
(
GdkScreen
*
screen
);
G_END_DECLS
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment