Changeset 222032 in webkit


Ignore:
Timestamp:
Sep 14, 2017 10:53:18 AM (7 years ago)
Author:
clopez@igalia.com
Message:

[GTK] Add a switch to start the mini-browser in full-screen mode
https://bugs.webkit.org/show_bug.cgi?id=176904

Reviewed by Carlos Garcia Campos.

  • MiniBrowser/gtk/main.c:

(main):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r222029 r222032  
     12017-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
    1112017-09-14  Filip Pizlo  <fpizlo@apple.com>
    212
  • trunk/Tools/MiniBrowser/gtk/main.c

    r220329 r222032  
    4444static gboolean privateMode;
    4545static gboolean automationMode;
     46static gboolean fullScreen;
    4647
    4748typedef enum {
     
    9798    { "session-file", 's', 0, G_OPTION_ARG_FILENAME, &sessionFile, "Session file", "FILE" },
    9899    { "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 },
    99101    { "private", 'p', 0, G_OPTION_ARG_NONE, &privateMode, "Run in private browsing mode", NULL },
    100102    { "automation", 0, 0, G_OPTION_ARG_NONE, &automationMode, "Run in automation mode", NULL },
     
    514516
    515517    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)
    517521        gtk_window_parse_geometry(GTK_WINDOW(mainWindow), geometry);
    518522
Note: See TracChangeset for help on using the changeset viewer.