summaryrefslogtreecommitdiff
path: root/gtk/gtkfilechoosernativewin32.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove unneeded gtkstylecontext.h includesTimm Bäder2020-10-141-1/+0
|
* Replace "gchar" with "char"Benjamin Otte2020-07-251-1/+1
|
* Replace "gint" with "int"Benjamin Otte2020-07-251-4/+4
|
* filechoosernativewin32: Plug a leakMatthias Clasen2020-07-161-0/+1
| | | | g_list_model_get_item is transfer full.
* Remove unused includesMatthias Clasen2020-07-121-1/+0
| | | | | Only GtkFileChooserWidget and GtkFileChooserDialog use the GtkFileChooserEmbed interface.
* Reduce includes of gtkfilesystem.hMatthias Clasen2020-07-121-1/+0
| | | | | Move a few non-filesystem helpers to gtkfileutils.h, and drop the include in all the places where it isn't needed.
* filechooser: Add gtk_file_chooser_get_shortcutsMatthias Clasen2020-07-061-10/+16
| | | | | | | Replace gtk_file_chooser_list_shortcuts with a new api that returns a list model. Update all callers.
* filechooser: Add gtk_file_chooser_get_filtersMatthias Clasen2020-07-061-12/+33
| | | | | | | Replace gtk_file_chooser_list_filters with a new api that returns a list model. Update all callers.
* Drop unused includesMatthias Clasen2020-06-251-1/+0
| | | | | Don't include gtkfilechooserentry.h where it isn't used.
* Remove preview widget from GtkFileChooserEmmanuele Bassi2020-02-221-5/+0
| | | | | | | | | | | The preview widget harks from a platform before time, when we didn't have GIO, or a thumbnail specification. Very few applications use it correctly, if at all; it has an horrid hack to deal with the ownership of the widget's instance when accessed through the getter function; it messes up the layout of the widget and its label is less than useful when it comes to file names longer than a dozen characters; it's a poor substitute for a proper thumbnail view.
* Remove GTK_FILE_CHOOSER_ACTION_CREATE_FOLDEREmmanuele Bassi2020-02-221-6/+3
| | | | | We don't need a whole separate action, now that the file chooser widget can create folders; we can create use SELECT_FOLDER and create one.
* Remove GtkFileChooser:show-hiddenEmmanuele Bassi2020-02-221-7/+0
| | | | | This is a user setting and a user action, not something that ought to be programmatically set via the file selection API.
* Remove overwrite confirmation machinery from GtkFileChooserEmmanuele Bassi2020-02-221-8/+1
| | | | | Overwrite confirmation should not be optional, and it should not loop into application code to create their own dialog and user response.
* Drop GtkFileChooser:extra-widgetEmmanuele Bassi2020-02-221-4/+0
| | | | | We have "choices" as a more rational (and portable) API; additionally, the ownership semantics of the extra widget property getter are a hack.
* Remove filename/URI API from GtkFileChooserEmmanuele Bassi2020-02-221-6/+6
| | | | | | | | | | | | GtkFileChooser's API predates GIO by a few years, so it started off with filenames and URI as character arrays. After introducing GIO as a dependency, the API included GFile-based entry points. It's much more appropriate to use GFile everywhere, as we want to encourage people to use GIO instead of passing random bytes to low level POSIX API. See: #2455
* GtkFileChooserNativeWin32: Uninitialize COM at end of threadLuca Bacci2019-08-041-0/+2
| | | | | | | | | GtkFileChooserNativeWin32 is created and shown on a secondary thread. This thread initializes COM support with CoInitializeEx but does not finalize it, so we have a leak. Fix that by calling CoUninitialize() before thread terminates. See Merge Request !1043
* Implement choices for GtkFileChooserNativeWin32Luca Bacci2019-08-041-1/+149
| | | | See Merge Request !1043
* Stop using gtk_widget_get_surfaceMatthias Clasen2019-05-281-1/+2
| | | | | Replace all uses of gtk_widget_get_surface by gtk_native_get_surface.
* filechoosernativewin32: Add missing break statementBenjamin Otte2019-04-151-0/+1
|
* win32 file chooser: add missing g_slist_reverseNicolai Syvertsen2018-06-181-1/+1
| | | | the list is prepended to so we need to reverse the list before returning
* GtkWidget: Start renaming widget->windowAlexander Larsson2018-03-201-1/+1
| | | | | | | | | | | | | | | This is an automated change doing these command: git sed -f g gtk_widget_set_has_window gtk_widget_set_has_surface git sed -f g gtk_widget_get_has_window gtk_widget_get_has_surface git sed -f g gtk_widget_set_parent_window gtk_widget_set_parent_surface git sed -f g gtk_widget_get_parent_window gtk_widget_get_parent_surface git sed -f g gtk_widget_set_window gtk_widget_set_surface git sed -f g gtk_widget_get_window gtk_widget_get_surface git sed -f g gtk_widget_register_window gtk_widget_register_surface git sed -f g gtk_widget_unregister_window gtk_widget_unregister_surface git checkout NEWS*
* GdkWindow -> GdkSurface initial type renameAlexander Larsson2018-03-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This renames the GdkWindow class and related classes (impl, backend subclasses) to surface. Additionally it renames related types: GdkWindowAttr, GdkWindowPaint, GdkWindowWindowClass, GdkWindowType, GdkWindowTypeHint, GdkWindowHints, GdkWindowState, GdkWindowEdge This is an automatic conversion using the below commands: git sed -f g GdkWindowWindowClass GdkSurfaceSurfaceClass git sed -f g GdkWindow GdkSurface git sed -f g "gdk_window\([ _\(\),;]\|$\)" "gdk_surface\1" # Avoid hitting gdk_windowing git sed -f g "GDK_WINDOW\([ _\(]\|$\)" "GDK_SURFACE\1" # Avoid hitting GDK_WINDOWING git sed "GDK_\([A-Z]*\)IS_WINDOW\([_ (]\|$\)" "GDK_\1IS_SURFACE\2" git sed GDK_TYPE_WINDOW GDK_TYPE_SURFACE git sed -f g GdkPointerWindowInfo GdkPointerSurfaceInfo git sed -f g "BROADWAY_WINDOW" "BROADWAY_SURFACE" git sed -f g "broadway_window" "broadway_surface" git sed -f g "BroadwayWindow" "BroadwaySurface" git sed -f g "WAYLAND_WINDOW" "WAYLAND_SURFACE" git sed -f g "wayland_window" "wayland_surface" git sed -f g "WaylandWindow" "WaylandSurface" git sed -f g "X11_WINDOW" "X11_SURFACE" git sed -f g "x11_window" "x11_surface" git sed -f g "X11Window" "X11Surface" git sed -f g "WIN32_WINDOW" "WIN32_SURFACE" git sed -f g "win32_window" "win32_surface" git sed -f g "Win32Window" "Win32Surface" git sed -f g "QUARTZ_WINDOW" "QUARTZ_SURFACE" git sed -f g "quartz_window" "quartz_surface" git sed -f g "QuartzWindow" "QuartzSurface" git checkout NEWS* po-properties
* GtkFileChooserNativeWin32: add support for get_filter and set_filterTom Schoonjans2017-07-181-2/+40
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=784723
* gtkfilechoosernativewin32: Fix support for non-ASCII pathsChristoph Reiter2017-06-021-9/+32
| | | | | | | | | | | | | | The code used SIGDN_URL to get an URL for the selected item, but Windows URLs are a mix of unicode and percent encoded characters in the locale encoding and not something GFile can understand. The result is a garbage file path. Instead use SIGDN_FILESYSPATH to get a real file path if available. Also checks the return value of g_utf16_to_utf8 because file paths on Windows can contain lone surrogates which would make the conversion fail. https://bugzilla.gnome.org/show_bug.cgi?id=783347
* gtk: Strip newlines from g_warning and g_errorMatthias Clasen2016-02-281-10/+10
| | | | g_logv adds one for us already.
* filechoosernativewin32: Remove unused variablesBenjamin Otte2016-02-111-6/+1
|
* filechoosernativewin32: Silence gccBenjamin Otte2016-02-111-7/+7
|
* filechoosernativewin32: Add missing return typeBenjamin Otte2016-02-111-0/+1
| | | | Looks like a line accidentally was deleted there.
* filechoosernativewin32: Define MSC_VER at top of fileBenjamin Otte2016-02-111-6/+6
| | | | The headers we include might include windows headers which define _MSC_VER already.
* GtkFileChooserNative: Fallback and win32 implementationAlexander Larsson2015-11-051-0/+778
This is a subclass on GtkNativeDialog that uses GtkFileChooserDialog as a fallback, but also has support for the win32 file chooser dialog.