1. 18 Jun, 2019 2 commits
    • Chun-wei Fan's avatar
      Visual Studio builds: Fix previous commit · cd196c4f
      Chun-wei Fan authored
      I forgot to include configure.ac in the commit, which is needed.
      cd196c4f
    • Chun-wei Fan's avatar
      Visual Studio builds: "Add" Visual Studio 2019 projects · a63b70f1
      Chun-wei Fan authored
      Copy and update the relevant fields from the Visual Studio 2010 projects
      so that we can have project files that work out-of-the-box for Visual
      Studio 2019, as we did for Visual Studio 2012 through 2017.
      
      Also update the NMake Makefiles for building the introspection files
      so that we properly detect that we are building with Visual Studio 2019.
      a63b70f1
  2. 15 Mar, 2019 1 commit
  3. 14 Mar, 2019 1 commit
    • LRN's avatar
      Fix UAC manifest RC file · 6ae30826
      LRN authored
      CREATEPROCESS_MANIFEST_RESOURCE_ID is a macro defined in winbase.h,
      so we need an include to resolve that macro to its value, 1.
      
      Without that it stays as a literal CREATEPROCESS_MANIFEST_RESOURCE_ID,
      and ends up in the .exe file as-is, and Windows can't find it by that name,
      resulting in UAC manifest not working and gtk-update-icon-cache bringing
      up UAC prompt.
      6ae30826
  4. 12 Mar, 2019 2 commits
  5. 06 Mar, 2019 2 commits
  6. 21 Jan, 2019 1 commit
    • Chun-wei Fan's avatar
      MSVC introspection: Make more robust and avoid confusion · 6b558981
      Chun-wei Fan authored
      This updates the introspection build process that we also check on
      changes in the Makefiles when we generate the NMake Makefile snippets
      and file lists, so that any changes to the source file list can be
      reflected.  Also ensure that we build against the freshly-built
      libraries.
      
      Make the NMake Makefiles also output the built introspection items to
      the output directories of the various Visual Studio versions, according
      to the build configuration and architecture, so that we avoid confusion
      for different Visual Studio build configs.
      6b558981
  7. 09 Jan, 2019 1 commit
  8. 04 Jan, 2019 1 commit
  9. 21 Dec, 2018 6 commits
    • Chun-wei Fan's avatar
      Merge branch 'gtk-2-24.win.fixes' into 'gtk-2-24' · 8042e078
      Chun-wei Fan authored
      gtk/gtkiconcache.c: Fix running on GLib-2.57.3 or later on Windows
      
      See merge request !469
      8042e078
    • Chun-wei Fan's avatar
      gtk/gtkiconcache.c: Fix running on GLib-2.57.3 or later on Windows · 4612f0b3
      Chun-wei Fan authored
      In GLib-2.57.3 and later, GStatBuf may not be a struct stat on Windows,
      depending on the architecture and the compiler used, so we can't just
      call fstat() on the GStatBuf.
      
      Instead, we need to use the correct CRT function to call on the
      GStatBuf, which is as follows:
      
      -_fstat32() for Windows 32-bit builds on mingw-w64 and MSVC
      -_fstat64() for Windows 64-bit builds on mingw-w64
      -stat() for Windows 64-bit builds on MSVC, and on all other platforms.
      4612f0b3
    • Chun-wei Fan's avatar
      MSVC builds: Fix pkg-config file generation · 16682dd2
      Chun-wei Fan authored
      We are not passing in the correct architecture to the script that we use
      to generate the pkg-config files for Release/x86 builds and Debug/x64
      builds.  Fix this.
      16682dd2
    • Chun-wei Fan's avatar
      MSVC builds: Improve pkg-config files generation · 0b7ee988
      Chun-wei Fan authored
      Just link to Cairo instead of looking for the Cairo .pc file as the
      Cairo build system for Visual Studio currently does not generate a
      pkg-config file for us.  This will eliminate the need to hand-craft a
      pkg-config file for Cairo to be able to use the pkg-config files that we
      generate here.
      0b7ee988
    • Chun-wei Fan's avatar
      [gdk|gtk]/Makefile.am: Fix CFlags passed to introspecion on MSVC · 639688d3
      Chun-wei Fan authored
      Don't pass in G_LOG_DOMAIN=\"...\" to the CFlags that is passed into the
      generation the NMake Makefiles.  This will avoid the introspection scanner
      from choking because the resulting NMake Makefiles may not have that
      CFlag escaped properly, and it is not really needed for building the
      introspection binary.
      639688d3
    • Chun-wei Fan's avatar
      MSVC projects: "Install" libwimp.pdb · 417c4f9a
      Chun-wei Fan authored
      Also "install" the libwimp's (Win32 theme engine) PDB file, for
      completeness' sake, and to aid in debugging the item, if necessary.
      417c4f9a
  10. 01 Nov, 2018 3 commits
  11. 29 Oct, 2018 2 commits
  12. 30 Aug, 2018 1 commit
  13. 19 Aug, 2018 2 commits
    • Christoph Reiter's avatar
      Merge branch 'g_stat-and-GStatBuf' into 'gtk-2-24' · eec3ce0b
      Christoph Reiter authored
      Consistently use g_stat and GStatBuf
      
      See merge request !300
      eec3ce0b
    • Patrick Storz's avatar
      Consistently use g_stat and GStatBuf · 303858fa
      Patrick Storz authored
      Replace "stat struct" with "GStatBuf" and "stat" with "g_stat" where
      appropriate to fix cross-platform issues, specifically on Windows.
      
      Code should be identical on *nix but fixes some serious issues
      on Windows:
      - Field widths of "struct stat" are not constant on Windows.
        If the stat function does not match the stat struct used
        it will cause overwrites and undefined behavior
      - The Windows stat function needs a properly encoded filename.
        In many places we pass an UTF-8 encoded value which breaks as soon
        as non-ASCII characters are involved.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=787772
      303858fa
  14. 20 Jul, 2018 1 commit
  15. 14 Jul, 2018 3 commits
  16. 02 Jul, 2018 1 commit
  17. 23 Jun, 2018 1 commit
  18. 22 Jun, 2018 1 commit
    • Daniel Boles's avatar
      FileChooserDefault: Avoid printf()ing a NULL char* · 168434c4
      Daniel Boles authored
      If the name of the bookmark is NULL, using it with the printf %s format
      specifier is undefined behaviour per the C Standard. Besides, it would
      result in a completely unhelpful tooltip even if it were well-defined.
      
      We already have an else case for when nothing is selected, which avoids
      trying to use the name, so ensure we go there if it's NULL or empty too.
      
      #1169
      168434c4
  19. 18 Jun, 2018 2 commits
    • Matthias Clasen's avatar
      Merge branch 'window-activate-grab-2-again' into 'gtk-2-24' · 3c92c216
      Matthias Clasen authored
      gdk: activate window on keyboard grabs
      
      See merge request !177
      3c92c216
    • Samuel Thibault's avatar
      gdk: activate window on keyboard grabs · 853f7867
      Samuel Thibault authored
      In 01455399 ("gdk: do not deactivate surface on keyboard grabs"), we
      made gdk avoid deactivating surfaces when another application takes a
      keyboard grab, by using has_focus_window instead of has_focus. That however
      broke activating surfaces when the gdk application acquired a grab itself,
      in which case has_focus_window is false but has_focus is true.
      
      We thus actually need to use both: surfaces should be activated either
      because we have normal keyboard focus, or because we grabbed the keyboard.
      
      This also renames HAS_FOCUS to APPEARS_FOCUSED to better reflect its
      role.
      
      Fixes #85
      
      (cherry picked from commit 3287ac96)
      (cherry picked from commit 039285de)
      853f7867
  20. 06 Jun, 2018 1 commit
    • LRN's avatar
      GDK W32: ensure that monitor enumeration matches up · 2c13b00b
      LRN authored
      In case something happens between monitor counting and monitor
      enumeration, repeat until the count matches up.
      enum_monitor is changed to ignore any monitors past _gdk_num_monitors
      and just keep increasing the count past that number.
      2c13b00b
  21. 16 May, 2018 4 commits
  22. 30 Apr, 2018 1 commit