comparison src/fullscreen.c @ 196:f6e307c7bad6

rename GQview -> Geeqie over the code
author nadvornik
date Sun, 23 Mar 2008 20:38:54 +0000
parents 71e1ebee420e
children fa0e05f985c3
comparison
equal deleted inserted replaced
195:d85687d951aa 196:f6e307c7bad6
1 /* 1 /*
2 * GQview 2 * Geeqie
3 * (C) 2004 John Ellis 3 * (C) 2004 John Ellis
4 * 4 *
5 * Author: John Ellis 5 * Author: John Ellis
6 * 6 *
7 * This software is released under the GNU General Public License (GNU GPL). 7 * This software is released under the GNU General Public License (GNU GPL).
237 if (debug) printf("full screen requests screen %d\n", fullscreen_screen); 237 if (debug) printf("full screen requests screen %d\n", fullscreen_screen);
238 fullscreen_prefs_get_geometry(fullscreen_screen, window, &x, &y, &w, &h, 238 fullscreen_prefs_get_geometry(fullscreen_screen, window, &x, &y, &w, &h,
239 &screen, &same); 239 &screen, &same);
240 240
241 fs->window = gtk_window_new(GTK_WINDOW_TOPLEVEL); 241 fs->window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
242 gtk_window_set_wmclass(GTK_WINDOW(fs->window), "fullscreen", "GQview"); 242 gtk_window_set_wmclass(GTK_WINDOW(fs->window), "fullscreen", "Geeqie");
243 243
244 /* this requests no decorations, if you still have them complain to the window manager author(s) */ 244 /* this requests no decorations, if you still have them complain to the window manager author(s) */
245 gtk_window_set_decorated(GTK_WINDOW(fs->window), FALSE); 245 gtk_window_set_decorated(GTK_WINDOW(fs->window), FALSE);
246 246
247 if (fullscreen_screen < 0) 247 if (fullscreen_screen < 0)
248 { 248 {
249 /* If we want control of the window size and position this is not what we want. 249 /* If we want control of the window size and position this is not what we want.
250 * GQview needs control of which monitor(s) to use for full screen. 250 * Geeqie needs control of which monitor(s) to use for full screen.
251 */ 251 */
252 gtk_window_fullscreen(GTK_WINDOW(fs->window)); 252 gtk_window_fullscreen(GTK_WINDOW(fs->window));
253 } 253 }
254 else if (fullscreen_above) 254 else if (fullscreen_above)
255 { 255 {
262 gtk_window_set_screen(GTK_WINDOW(fs->window), screen); 262 gtk_window_set_screen(GTK_WINDOW(fs->window), screen);
263 gtk_container_set_border_width(GTK_CONTAINER(fs->window), 0); 263 gtk_container_set_border_width(GTK_CONTAINER(fs->window), 0);
264 g_signal_connect(G_OBJECT(fs->window), "delete_event", 264 g_signal_connect(G_OBJECT(fs->window), "delete_event",
265 G_CALLBACK(fullscreen_delete_cb), fs); 265 G_CALLBACK(fullscreen_delete_cb), fs);
266 266
267 gtk_window_set_title(GTK_WINDOW(fs->window), _("GQview full screen")); 267 gtk_window_set_title(GTK_WINDOW(fs->window), _("Geeqie full screen"));
268 268
269 geometry.min_width = w; 269 geometry.min_width = w;
270 geometry.min_height = h; 270 geometry.min_height = h;
271 geometry.max_width = w; 271 geometry.max_width = w;
272 geometry.max_height = h; 272 geometry.max_height = h;