Mercurial > geeqie
comparison src/fullscreen.c @ 322:d344bcf37618
Rationalize fullscreen options naming.
author | zas_ |
---|---|
date | Fri, 11 Apr 2008 23:32:22 +0000 |
parents | b16b9b8979e5 |
children | de1c2cd06fce |
comparison
equal
deleted
inserted
replaced
321:20d9b3cd7434 | 322:d344bcf37618 |
---|---|
192 } | 192 } |
193 } | 193 } |
194 | 194 |
195 static gboolean fullscreen_saver_block_cb(gpointer data) | 195 static gboolean fullscreen_saver_block_cb(gpointer data) |
196 { | 196 { |
197 if (options->fullscreen_disable_saver) | 197 if (options->fullscreen.disable_saver) |
198 { | 198 { |
199 fullscreen_saver_deactivate(); | 199 fullscreen_saver_deactivate(); |
200 } | 200 } |
201 | 201 |
202 return TRUE; | 202 return TRUE; |
232 fs->normal_imd = imd; | 232 fs->normal_imd = imd; |
233 | 233 |
234 fs->stop_func = stop_func; | 234 fs->stop_func = stop_func; |
235 fs->stop_data = stop_data; | 235 fs->stop_data = stop_data; |
236 | 236 |
237 if (debug) printf("full screen requests screen %d\n", options->fullscreen_screen); | 237 if (debug) printf("full screen requests screen %d\n", options->fullscreen.screen); |
238 fullscreen_prefs_get_geometry(options->fullscreen_screen, window, &x, &y, &w, &h, | 238 fullscreen_prefs_get_geometry(options->fullscreen.screen, window, &x, &y, &w, &h, |
239 &screen, &same); | 239 &screen, &same); |
240 | 240 |
241 fs->window = window_new(GTK_WINDOW_TOPLEVEL, "fullscreen", NULL, NULL, _("Full screen")); | 241 fs->window = window_new(GTK_WINDOW_TOPLEVEL, "fullscreen", NULL, NULL, _("Full screen")); |
242 | 242 |
243 /* this requests no decorations, if you still have them complain to the window manager author(s) */ | 243 /* this requests no decorations, if you still have them complain to the window manager author(s) */ |
244 gtk_window_set_decorated(GTK_WINDOW(fs->window), FALSE); | 244 gtk_window_set_decorated(GTK_WINDOW(fs->window), FALSE); |
245 | 245 |
246 if (options->fullscreen_screen < 0) | 246 if (options->fullscreen.screen < 0) |
247 { | 247 { |
248 /* If we want control of the window size and position this is not what we want. | 248 /* If we want control of the window size and position this is not what we want. |
249 * Geeqie needs control of which monitor(s) to use for full screen. | 249 * Geeqie needs control of which monitor(s) to use for full screen. |
250 */ | 250 */ |
251 gtk_window_fullscreen(GTK_WINDOW(fs->window)); | 251 gtk_window_fullscreen(GTK_WINDOW(fs->window)); |
252 } | 252 } |
253 else if (options->fullscreen_above) | 253 else if (options->fullscreen.above) |
254 { | 254 { |
255 /* request to be above other windows */ | 255 /* request to be above other windows */ |
256 gtk_window_set_keep_above(GTK_WINDOW(fs->window), TRUE); | 256 gtk_window_set_keep_above(GTK_WINDOW(fs->window), TRUE); |
257 } | 257 } |
258 | 258 |
292 if (options->user_specified_window_background) | 292 if (options->user_specified_window_background) |
293 { | 293 { |
294 image_background_set_color(fs->imd, &options->window_background_color); | 294 image_background_set_color(fs->imd, &options->window_background_color); |
295 } | 295 } |
296 | 296 |
297 image_set_delay_flip(fs->imd, options->fullscreen_clean_flip); | 297 image_set_delay_flip(fs->imd, options->fullscreen.clean_flip); |
298 image_auto_refresh(fs->imd, fs->normal_imd->auto_refresh_interval); | 298 image_auto_refresh(fs->imd, fs->normal_imd->auto_refresh_interval); |
299 | 299 |
300 if (options->fullscreen_clean_flip) | 300 if (options->fullscreen.clean_flip) |
301 { | 301 { |
302 image_set_update_func(fs->imd, fullscreen_image_update_cb, fs); | 302 image_set_update_func(fs->imd, fullscreen_image_update_cb, fs); |
303 image_set_complete_func(fs->imd, fullscreen_image_complete_cb, fs); | 303 image_set_complete_func(fs->imd, fullscreen_image_complete_cb, fs); |
304 } | 304 } |
305 | 305 |