summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* GDK W32: don't unref window iconlist textureslrn/misc-gtk4-fixesРуслан Ижбулатов2018-06-161-2/+0
| | | | | We do not own these textures, nor do we ref them, so it's inappropriate to unref them.
* W32: Use correct hinstance valuesРуслан Ижбулатов2018-06-161-5/+5
| | | | | | | | | | | | | According to the old new thing[0], we should use the instance handle of the GDK/GTK DLL when registering GDK-specific types in the system. Using the instance handle for the whole application in these circumstances is not an error, but can potentially clash with the types registered by the application itself. Also, extract window class icons from the GDK/GTK DLL, not from the application executable. [0]: https://blogs.msdn.microsoft.com/oldnewthing/20050418-59/?p=35873
* Pass the correct data to gdk_content_register_serializer()Руслан Ижбулатов2018-06-161-2/+2
| | | | | | | The argument is eventually passed to g_conv(), so it should be the charset, not the mime/type. Without this change the contentype converter will fail to convert UTF-8 strings to, say, CP-1251 later on.
* W32: don't put a string literal into gtk_libdirРуслан Ижбулатов2018-06-161-1/+1
| | | | | In all other instances gtk_libdir is a dynamically-allocated string, so dup the literal in this case as well.
* Add forward declaration for DllMain() in gtkwin32.cРуслан Ижбулатов2018-06-161-0/+5
|
* Use const for media type in devmode_to_settings()Руслан Ижбулатов2018-06-161-3/+3
|
* Add foward declarations to gtk_print_operation_run_without_dialogРуслан Ижбулатов2018-06-161-0/+18
|
* search bar example: remove unused functionTimm Bäder2018-06-161-11/+0
|
* center box: Remove snapshot implementationTimm Bäder2018-06-161-17/+0
|
* gl renderer: call glViewport directlyTimm Bäder2018-06-161-18/+1
|
* button: Remove measure implementationTimm Bäder2018-06-161-29/+0
| | | | This is already done by GtkBin.
* combobox: Remove priv pointerTimm Bäder2018-06-162-107/+103
|
* Merge branch 'wip/lantw/fix-gtkdoc-build-without-wayland' into 'master'Matthias Clasen2018-06-151-5/+11
|\ | | | | | | | | docs: Fix gtk-doc build when wayland is disabled See merge request GNOME/gtk!193
| * docs: Fix gtk-doc build when wayland is disabledTing-Wei Lan2018-06-151-5/+11
|/ | | | | | | Unconditionally putting 'gdkwayland_inc' in src_dir argument of gtkdoc call tells gtkdoc-scan to scan source files in a non-existent build directory, gdk/wayland. To avoid causing build failure when a specific backend is disabled, we should include directories conditionally.
* Merge branch 'design_by' into 'master'Matthias Clasen2018-06-151-1/+1
|\ | | | | | | | | | | | | aboutbox: use a more fitting 'design by" role Closes #1153 See merge request GNOME/gtk!192
| * aboutbox: use a more fitting 'design by" roleJakub Steiner2018-06-141-1/+1
| | | | | | | | | | | | | | - in most cases, authors listed under "artwork by" are actually responsible for the design of the app as a whole Fixes issue #1153
* | examples: Simplify handling events in search-barMohammed Sadiq2018-06-141-7/+1
|/ | | | | In search-bar example, we can use gtk_search_bar_set_key_capture_widget() which would simplify handling keyboard events.
* Revert "imcontext: Make size arguments be gsize and not int"Mohammed Sadiq2018-06-144-42/+41
| | | | | | This was committed accidently. This reverts commit eefd2d6f104973d1461feee0b94dff8af991e145.
* examples: Fix alignment of search-bar exampleMohammed Sadiq2018-06-141-0/+1
| | | | | The search entry was taking the whole window size. Let's reduce the size so as to have more natural size.
* imcontext: Make size arguments be gsize and not intBenjamin Otte2018-06-144-41/+42
| | | | | | | | | | | | | | | | | | | Otherwise gcc complains when we use these as arguments to g_new() on 32bit architectures with: ../gtk/gtkcomposetable.c: In function ‘gtk_compose_table_list_add_array’: /usr/include/glib-2.0/glib/gmem.h:217:10: warning: argument 1 range [2147483648, 4294967295] exceeds maximum object size 2147483647 [-Walloc-size-larger-than=] __p = g_##func##_n (__n, __s); \ ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/glib-2.0/glib/gmem.h:279:42: note: in expansion of macro ‘_G_NEW’ #define g_new0(struct_type, n_structs) _G_NEW (struct_type, n_structs, malloc0) ^~~~~~ ../gtk/gtkcomposetable.c:851:22: note: in expansion of macro ‘g_new0’ gtk_compose_seqs = g_new0 (guint16, length); ^~~~~~ /usr/include/glib-2.0/glib/gmem.h:96:10: note: in a call to allocation function ‘g_malloc0_n’ declared here gpointer g_malloc0_n (gsize n_blocks, ^~~~~~~~~~~
* docs: Update getting started docsMohammed Sadiq2018-06-141-24/+19
| | | | | We have removed references to private members in our examples. Let the docs be updated to reflect that.
* docs: Use gtk_widget_show() to show windowMohammed Sadiq2018-06-131-1/+1
| | | | gtk_window_show_all() is no longer available (and no longer needed)
* snapshot: Trivial typo fix in commentMohammed Sadiq2018-06-131-1/+1
|
* picture: Fix g-i annotation warningRico Tzschichholz2018-06-131-1/+1
|
* build: Fix compiler warningsMohammed Sadiq2018-06-113-4/+5
|
* overlay: Use the right property variable nameMohammed Sadiq2018-06-111-1/+1
|
* Merge branch 'wip/sadiq/fixes' into 'master'Benjamin Otte2018-06-113-3/+121
|\ | | | | | | | | overlay: Add support for clipping overlay widgets See merge request GNOME/gtk!189
| * overlay: Add support for clipping overlay widgetsMohammed Sadiq2018-06-113-3/+121
|/ | | | | | | Sometimes users may want to restrict the growth of child widgets in a GtkOverlay to grow atmost the size of the overlay. Let's add a support for that.
* Merge branch 'lrn/gtk4warnings' into 'master'Matthias Clasen2018-06-1026-359/+60
|\ | | | | | | | | Fix a lot of warnings in GTK4 See merge request GNOME/gtk!188
| * Use correct stat struct for ftw()Руслан Ижбулатов2018-06-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | check_dir_mtime() is called by ftw() and is given the real stat struct, not its glib version (which may or may not be the same as "struct stat"). This is irrelevant for MSVC (it has no ftw()) and works correctly for MinGW-w64 (which declares stat structures correctly). If mingw.org complains, add a special ifdef for it later.
| * See if _MSC_VER is defined before checking its valueРуслан Ижбулатов2018-06-101-1/+1
| |
| * Fix missing default switch case in DllMainРуслан Ижбулатов2018-06-101-0/+2
| |
| * Fix missing default switch cases in gtkimcontextsimpleРуслан Ижбулатов2018-06-101-0/+5
| |
| * Fix some warnings in W32 part of gtkmainРуслан Ижбулатов2018-06-101-2/+6
| | | | | | | | | | * Add missing default cases * Cast string literals as non-const
| * Fix a typo in W32 event-handling codeРуслан Ижбулатов2018-06-101-1/+1
| | | | | | | | | | | | It's quite old, but mostly harmless (both "message == WM_KEYUP" and "message = WM_KEYUP" evaluate to not-FALSE, and message value is not used after that line).
| * Fix a warning about uninitialized variableРуслан Ижбулатов2018-06-101-0/+2
| |
| * Remove unused code in gdksurface-win32.cРуслан Ижбулатов2018-06-101-56/+0
| |
| * Fix more signedness issues in W32 backendРуслан Ижбулатов2018-06-103-3/+3
| |
| * A quick and dirty fix for a circular allocation issueРуслан Ижбулатов2018-06-101-1/+2
| | | | | | | | | | | | | | query_targets() tried to write to struct that wasn't yet allocated. This code is going to change soon, so this is a temporary fix until then.
| * Fix a missing default case warningРуслан Ижбулатов2018-06-101-0/+4
| | | | | | | | | | It shouldn't be possible to get DPI_STATUS_PENDING here. If it does happen, that would be a bug that should be fixed.
| * Remove unused functions in W32 backendРуслан Ижбулатов2018-06-104-157/+0
| |
| * Fix signedness issues, remove unused codeРуслан Ижбулатов2018-06-101-48/+3
| |
| * Remove some more unused variablesРуслан Ижбулатов2018-06-102-4/+0
| |
| * Fix various type mismatch warningsРуслан Ижбулатов2018-06-104-19/+19
| |
| * Fix gdk_win32_cairo_context_end_frame prototypeРуслан Ижбулатов2018-06-101-2/+1
| |
| * Remove unused variables (mostly in W32 code)Руслан Ижбулатов2018-06-1012-57/+3
| |
| * Fix wrong format strings in various placesРуслан Ижбулатов2018-06-105-8/+8
| |
* | Merge branch 'master' into 'master'Matthias Clasen2018-06-104-0/+68
|\ \ | | | | | | | | | | | | gtk: Add gtk_is_initialized() and gtk_get_main_thread() See merge request GNOME/gtk!186
| * | gtkmain: Add gtk_get_main_thread()Philippe Normand2018-06-083-0/+26
| | | | | | | | | | | | | | | This utility function can be useful to know which thread was initialized for GTK+.
| * | gtkmain: Add gtk_is_initialized()Philippe Normand2018-06-084-0/+42
| | | | | | | | | | | | | | | This utility function can be useful to check whether GTK+ was already initialized or not.