summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* MSVC Builds: Create libgtk3.manifestChun-wei Fan2014-08-066-14/+20
| | | | | | | | | | | | Use the Python script that was used to create gtk-win32.rc from gtk-win32.rc.in to similarly create libgtk3.manifest. As the wildcard character can be used for all architectures, use that. The libgtk3.manifest file needs to be specified explicitly in the projects, so that it will be recognized and built into the GTK dll, so update the project files as well on this part. https://bugzilla.gnome.org/show_bug.cgi?id=733773
* gdkwindow-win32.c: Fix build on Visual C++Chun-wei Fan2014-08-061-1/+1
| | | | | | | Since MSVC is more strict about the types that we try to do a compare, cast old_ptr as HWND, as we know that it is a pointer... https://bugzilla.gnome.org/show_bug.cgi?id=733768
* gtk/gtkprintoperation-win32.c: Fix Missed IncludeChun-wei Fan2014-08-061-0/+1
| | | | We need to include gtkprivate.h for _gtk_load_dll_with_libgtk3_manifest().
* Updated Slovenian translationMatej Urbančič2014-08-051-34/+27
|
* Make sure native W32 print dialog uses visual stylesРуслан Ижбулатов2014-08-057-1/+138
| | | | | | | | | | | For that to happen the libgtk3 is embedded with a manifest that requests common controls library 6.x, and GTK lazily calls InitCommonControlsEx() to initialize those. Then this manifest is used to temporarily override the process activation contest when loading comdlg32 (which contains the code for the print dialog), ensuring that it too depends on common controls 6.x, even if the application that uses GTK does not. https://bugzilla.gnome.org/show_bug.cgi?id=733773
* When wrapping a foreign W32 window, don't forget to store its HWNDРуслан Ижбулатов2014-08-051-0/+1
| | | | | | | When that window is later used as a parent for a GDK child, the call to CreateWindow*() will fail, because its HWND is 0. https://bugzilla.gnome.org/show_bug.cgi?id=733768
* inspector: Add a switch to turn off animationsMatthias Clasen2014-08-052-0/+45
| | | | | This may be useful in some places to check that application-specific animations respect this setting.
* Suppress a warning from SetWindowLongPtr()Руслан Ижбулатов2014-08-041-2/+18
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=726224
* GtkSwitch: Initialize offset when beginning animationMatthias Clasen2014-08-041-0/+1
| | | | | | handle_x always corresponds to the visible position of the handle, which is where we want to start the animation. Without this, repeated keyboard activation will not always animate.
* GtkSwitch: Update handle_x in size-allocateMatthias Clasen2014-08-041-0/+5
| | | | | | | | Since we are storing positions here that depend on the allocation, we need to update them in size-allocate. This fixes incorrect positioning of the handle if the switch is active initially. https://bugzilla.gnome.org/show_bug.cgi?id=734213
* GtkSwitch: Don't store dest_offsetMatthias Clasen2014-08-041-11/+12
| | | | | | Instead, calculate it on the spot in the tick callback, and update handle_x in gtk_switch_set_active, based on the new active property.
* GtkSwitch: End animations on finalizeMatthias Clasen2014-08-041-0/+9
| | | | | Handle the unlikely case that a switch gets finalized while its toggle animation is running.
* GtkSwitch: End animation in set_activeMatthias Clasen2014-08-041-1/+2
| | | | | End any running toggle animation before setting the set, otherwise things get confused.
* GtkSwitch: Also animate for keyboard activationMatthias Clasen2014-08-041-3/+1
|
* gtk-encode-symbolic-svg: Fix build with -Werror=format-securityRico Tzschichholz2014-08-041-1/+1
|
* Updated Greek translationMarMav2014-08-041-2157/+2259
|
* widget-factory: Make one switch start out activeMatthias Clasen2014-08-041-0/+1
| | | | | This nicely shows off https://bugzilla.gnome.org/show_bug.cgi?id=734213
* tests: Drop use of deprecated apiMatthias Clasen2014-08-046-15/+0
| | | | Don't use gtk_tree_view_set_rules_hint anymore.
* gtk-demo: Drop use of deprecated apiMatthias Clasen2014-08-043-3/+0
| | | | | There were several uses of gtk_tree_view_set_rules_hint here. Just drop them, the theme was ignoring them anyway.
* Add a11y state testsMatthias Clasen2014-08-0411-131/+511
| | | | | | | | | | | This adds a new test which can be scripted to trigger various event and action sequences, and record state changes in the accessibility layer. So far, there are a few tests verifying state changes when focus changes. Related to https://bugzilla.gnome.org/show_bug.cgi?id=715176
* MSVC Builds: Build gtk-encode-symbolic-svgChun-wei Fan2014-08-0411-1/+425
| | | | | | | | | This utility would likely be useful for Windows builds of GTK+, given the reasons Alex cited for coming up with this utility[1], and MSVC build support for librsvg is not available at this time (possible, but not implemented yet). [1]: https://bugzilla.gnome.org/show_bug.cgi?id=730450
* MSVC Builds: Add Script to Generate gtk-win32.rcChun-wei Fan2014-08-047-8/+159
| | | | | | | | | | | | | | In bug 733773, gtk-win32.rc was removed from the dist in the attempt to make the print dialog on Windows themed, so this script was added so that the gtk-win32.rc file can be generated during the Visual Studio builds of GTK+ from the autotools scripts. This is also intended for filling in the arch of the build for MSVC builds for the manifest that is also required for fixing bug 733773. Python is used as it is already needed for This is done as a custom build rule in the Visual Studio projects so that it is easy to clean and rebuild gtk-win32.rc upon an update. https://bugzilla.gnome.org/show_bug.cgi?id=733773
* Fix the buildMatthias Clasen2014-08-041-1/+1
| | | | | Quoting accident. "echo -e" is not a command that the shell knows, echo -e is.
* Fix building quartz backendTingPing2014-08-031-4/+7
| | | | | | | | | These were some api changes introduced in: d930716 48db841 f6ee007 https://bugzilla.gnome.org/show_bug.cgi?id=732137
* listbox: Add missing ::row-selected emissionsFlorian Müllner2014-08-031-2/+20
| | | | | | | | Rows are not necessarily selected via select_row_internal(), add the missing signal emissions there. Also the signal should be emitted when removing the selection altogether. https://bugzilla.gnome.org/show_bug.cgi?id=729809
* Add missing paramter to gtk-menu-tracker-new.John Ralls2014-08-031-1/+1
|
* Replace deprecated gtk_application_add_acceleratorJohn Ralls2014-08-031-4/+8
| | | | With new gtk_application_set_accels_for_action.
* Fix build of resource files on OS-XJohn Ralls2014-08-032-22/+27
| | | | OS-X's 'echo' command does not have a -e option, so it was included in the files.
* Add gtk_application_get_actions_for_accel()Ryan Lortie2014-08-033-0/+80
| | | | | | | | | This counterpart to gtk_application_get_accels_for_action() lets you find out if a particular accelerator has one or more actions associated with it. This might be useful from an accelerator editor or plugin system to prevent the the installation of conflicting accelerators. https://bugzilla.gnome.org/show_bug.cgi?id=721367
* GtkTreeView: Avoid deprecation warningsMatthias Clasen2014-08-031-1/+3
|
* gtk/Makefile.am: fix gtk-encode-symbolic-svg build for jhbuildPietro Gagliardi2014-08-031-1/+1
| | | | | | | | | | | Currently, jhbuild-ing GTK+ on Ubuntu 14.04 LTS and gcc 4.8.2 errors out with /usr/bin/ld: encodesymbolic.o: undefined reference to symbol 'g_file_new_for_path' /opt/gnome/lib/libgio-2.0.so.0: error adding symbols: DSO missing from command line when trying to build gtk-encode-symbolic-svg. This is because $(GTK_DEP_LIBS) isn't defined in $(gtk_encode_symbolic_svg_LDADD) in gtk/Makefile.am. This patch should fix that. Thanks to b4n and gregier in irc.gimp.net/#gtk+ for help. https://bugzilla.gnome.org/show_bug.cgi?id=734201
* textview: Avoid relocating adjustments on ::size-allocate while these are ↵Carlos Garnacho2014-08-033-2/+12
| | | | | | | | | | | animating An animation may be scheduled while the textview content changed in size, so the resize queued would just unset the animation and set the adjusments with a current value, defeating gtk_text_view_scroll_to_iter(). In this case, just avoid the adjustment change, as there is a target value on the way. https://bugzilla.gnome.org/show_bug.cgi?id=733406
* Updated POTFILES.inPiotr Drąg2014-08-032-0/+2
|
* window: Update popover positions on ::size-allocateCarlos Garnacho2014-08-034-2/+36
| | | | | | | | Popovers may get relocations optimized away if only x/y changed in the GtkAllocation. So make sure the toplevel updates popover positions on all situations. https://bugzilla.gnome.org/show_bug.cgi?id=729140
* Add missing include for setlocalePaolo Borelli2014-08-031-0/+1
|
* Bug 729924 - Crash trying to print in OSXJohn Ralls2014-08-031-21/+28
| | | | | We should only use the PageSize option from the ppd if it actually exists.
* widget-factory: Add a linked combobox exampleMatthias Clasen2014-08-031-2/+82
| | | | This came up in https://bugzilla.gnome.org/show_bug.cgi?id=733979
* GtkSwitch: implement animationPaolo Borelli2014-08-031-7/+96
|
* GtkSwitch: remove unused assignmentPaolo Borelli2014-08-031-3/+0
|
* Ensure an image-missing icon is availableMatthias Clasen2014-08-035-4/+8
| | | | | | It is bad if the image that is used as a fallback for missing images goes missing itself, so include it as a resource. This way, it will always be available.
* Embed manifest into gtk-update-icon-cache.exeРуслан Ижбулатов2014-08-031-4/+11
| | | | | | This way it doesn't need to be installed alongside it. https://bugzilla.gnome.org/show_bug.cgi?id=705054
* treeview: Deprecated rules-hintEmmanuele Bassi2014-08-032-16/+29
| | | | | | | | | | | | | | | | | | | | | The rules-hint property has always been a fairly bad application API, as it set some wrong expectations for the developers; deferring to the theme makes it impossible to design application reliably, and if this is a usability setting we should either impose this setting on every theme, or simply drop it. Our own default theme does not honour the zebra striping, which makes this function even more questionable. In practice, usability studies on zebra striping have demonstrated that alternating colors on a list it improves readability just as much as clear ruling between rows, or by visually differentiating the selected row. Zebra striping improves readability (or, at least, it does not hinder it) on static displays, like a table on paper or a document; on a dynamic display, like an application's UI, there are different strategies that yield similar, if not better, results. https://bugzilla.gnome.org/show_bug.cgi?id=733312
* listboxrowaccessible: Avoid assertion failureTimm Bäder2014-08-031-0/+1
| | | | | | | | The next call to gtk_list_box_get_selection_mode just expected the GtkListBoxRow's parent to be a GtkListBox and failed when the row was added to something other than a GtkListBox. https://bugzilla.gnome.org/show_bug.cgi?id=733782
* Add a man page for gtk-encode-symbolic-svgMatthias Clasen2014-08-033-0/+70
|
* icon-theme: Support recolorable .symbolic.png filesAlexander Larsson2014-08-031-27/+203
| | | | | | | | If an icon theme has a file called "foo-symbolic.symbolic.png" which was converted from svg using gtk-encode-symbolic-svg we will read it in an recolor, allowing symbolic icons without using librsvg. https://bugzilla.gnome.org/show_bug.cgi?id=730450
* Add gtk-encode-symbolic-svgAlexander Larsson2014-08-032-1/+332
| | | | | | | | This utility loads a symbolic svg at a specified size and renders a png file in a special format that can be recolored later. https://bugzilla.gnome.org/show_bug.cgi?id=730450
* inspector: Add GtkTreeSelection to the object treeMatthias Clasen2014-08-031-0/+4
| | | | It is not accessible, otherwise.
* window: Only avoid queueing resizes if the popover position didn't changeCarlos Garnacho2014-08-031-2/+4
| | | | | | | | | If the same position is requested on a popover, it should at least ensure the window is realized and raised, even if no resizes are queued on the content. Otherwise other widgets being mapped might raise the windows over the popover's if its original position is unchanged. https://bugzilla.gnome.org/show_bug.cgi?id=734129
* gtkcssshadowvalue: Don't double-apply the alpha to shadowsJasper St. Pierre2014-08-023-20/+13
| | | | | | | | | | | | | | | | | | It turns out that when we were painting the shadows, we painted the them with the base color once, which contained the alpha, and then blurred it and used it as a mask for the fill, which has the fill again. To fix this, always paint the base surface with full alpha. The existing code applies the blur conditionally sometimes in weird ways, so the code shuffling fix may not look correct, but be assured it is. If the blur happens, the new cr we return has the *default* color applied, which is fully opaque black, which works perfectly against the A8 surface. The fallback spinner code needs some modification, since it is intentionally using the alpha to paint the lobes which are "in the past". Since we shouldn't be hitting this fallback path very often, we use a temporary group and paint it with paint_with_alpha, even though it is slow.
* Small comment fixupsMatthias Clasen2014-08-031-9/+8
| | | | | | One factual pointed out in the review in https://bugzilla.gnome.org/show_bug.cgi?id=734053, plus some formatting nit picks.