Changeset 222032 in webkit
- Timestamp:
- Sep 14, 2017 10:53:18 AM (7 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r222029 r222032 1 2017-09-14 Carlos Alberto Lopez Perez <clopez@igalia.com> 2 3 [GTK] Add a switch to start the mini-browser in full-screen mode 4 https://bugs.webkit.org/show_bug.cgi?id=176904 5 6 Reviewed by Carlos Garcia Campos. 7 8 * MiniBrowser/gtk/main.c: 9 (main): 10 1 11 2017-09-14 Filip Pizlo <fpizlo@apple.com> 2 12 -
trunk/Tools/MiniBrowser/gtk/main.c
r220329 r222032 44 44 static gboolean privateMode; 45 45 static gboolean automationMode; 46 static gboolean fullScreen; 46 47 47 48 typedef enum { … … 97 98 { "session-file", 's', 0, G_OPTION_ARG_FILENAME, &sessionFile, "Session file", "FILE" }, 98 99 { "geometry", 'g', 0, G_OPTION_ARG_STRING, &geometry, "Set the size and position of the window (WIDTHxHEIGHT+X+Y)", "GEOMETRY" }, 100 { "full-screen", 'f', 0, G_OPTION_ARG_NONE, &fullScreen, "Set the window to full-screen mode", NULL }, 99 101 { "private", 'p', 0, G_OPTION_ARG_NONE, &privateMode, "Run in private browsing mode", NULL }, 100 102 { "automation", 0, 0, G_OPTION_ARG_NONE, &automationMode, "Run in automation mode", NULL }, … … 514 516 515 517 BrowserWindow *mainWindow = BROWSER_WINDOW(browser_window_new(NULL, webContext)); 516 if (geometry) 518 if (fullScreen) 519 gtk_window_fullscreen(GTK_WINDOW(mainWindow)); 520 else if (geometry) 517 521 gtk_window_parse_geometry(GTK_WINDOW(mainWindow), geometry); 518 522
Note: See TracChangeset
for help on using the changeset viewer.