commit d8c1e6db216a55f78b42e7d4540b7134b51a483a Author: Matthias Clasen Date: Fri Jan 8 14:51:36 2016 -0500 3.19.6 NEWS | 77 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ configure.ac | 2 +- 2 files changed, 78 insertions(+), 1 deletion(-) commit 375619f9f4a04808bb186cdff3fa84a703446e1c Author: Matthias Clasen Date: Fri Jan 8 17:51:53 2016 -0500 Fix make dist I've forgotten another place when renaming HighContrast inverse. gtk/Makefile.am | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 1eaf035a78bc0c804f203062c731ff6fe63878d5 Author: Matthias Clasen Date: Fri Jan 8 15:56:27 2016 -0500 reftests: Drop deprecated style properties testsuite/reftests/reset-to-defaults.css | 4 ---- 1 file changed, 4 deletions(-) commit fe35836168e75bc8f83a58d6599b7eb920697cd9 Author: Matthias Clasen Date: Fri Jan 8 15:45:32 2016 -0500 Update expect output of a11y tests testsuite/a11y/menu.txt | 8 -------- testsuite/a11y/menubutton.txt | 8 -------- testsuite/a11y/menubutton2.txt | 34 +++++++++++++--------------------- testsuite/a11y/menubutton3.txt | 34 +++++++++++++--------------------- testsuite/a11y/menus.txt | 8 -------- testsuite/a11y/scale-drawvalue.txt | 8 -------- testsuite/a11y/tooltips.txt | 8 -------- 7 files changed, 26 insertions(+), 82 deletions(-) commit e84f1ae3bbc9ebab345e3858e7f3ad28b5cbe737 Author: Matthias Clasen Date: Fri Jan 8 15:38:38 2016 -0500 Update the list of required cursors We're now using standard cursor names for DND, so check for these. testsuite/gtk/check-cursor-names.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit 771149e19a81fce3ff7a820412376cd8cfe5c069 Author: Matthias Clasen Date: Fri Jan 8 15:38:02 2016 -0500 wayland: Ensure we have a dnd-ask cursor We use this for DND, so make sure that we fall back to some other cursor if this one isn't present. gdk/wayland/gdkcursor-wayland.c | 1 + 1 file changed, 1 insertion(+) commit 04a9b5b5f84cabc214efd585f3a2c7c7e90a9b88 Author: Matthias Clasen Date: Fri Jan 8 15:37:10 2016 -0500 x11: Ensure we have a dnd-ask cursor We use this for DND, so make sure that we fall back to some other cursor if this one isn't present. gdk/x11/gdkcursor-x11.c | 1 + 1 file changed, 1 insertion(+) commit 4b7c8218fb5aef3aa25c9ca65fd919f9024dad54 Author: Matthias Clasen Date: Fri Jan 8 15:36:32 2016 -0500 Use standard cursor names for DND At least as far as we have them. CSS has on equivalent of dnd-ask, so we keep using that name as-is. gtk/gtkdnd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit f2685ddf5e0bdaaaf28d7b4abd49b8d9c29a031b Author: Cosimo Cecchi Date: Fri Jan 8 14:58:25 2016 -0800 colorswatch: don't apply padding twice Instead of taking the border and manually removing it from the allocation, render our background over all the border allocation box, as that's more correct and does not take padding into account twice. gtk/gtkcolorswatch.c | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) commit e62f1604f97a6ca26aab4780fb9504c4b06a921e Author: Carlos Garnacho Date: Thu Dec 24 19:03:02 2015 +0100 paned: Use GtkGestureDrag for anything else than touch The GtkGesturePan behavior of locking onto certain orientations may come across as confusing, and is not strictly necessary for mice and other pointing devices. As GtkGesturePan is also a GtkGestureDrag, we just use the same callbacks on both gestures. https://bugzilla.gnome.org/show_bug.cgi?id=759670 gtk/gtkpaned.c | 67 ++++++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 44 insertions(+), 23 deletions(-) commit ad0fc8ae7e24f47120520072cd6089a2ad8d3b5f Author: Carlos Garnacho Date: Fri Jan 8 21:45:03 2016 +0100 wayland: Force the grab cursor while a grab is active When a cursor is specified in gdk_seat_grab(), the cursor is reverted as soon as the pointer enters or leaves another window. To avoid this issue, store the grab cursor separately, so we force-apply it in ::set_window_cursor(). Also, unset early the seat info from the window on gdk_seat_ungrab(), so the next time switch_to_pointer_grab() happens we end up picking the cursor set for the window underneath the pointer window. Based on a patch by Olivier Fourdan . https://bugzilla.gnome.org/show_bug.cgi?id=760213 gdk/wayland/gdkdevice-wayland.c | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) commit 23b629e27cd1449b0af708e69af94d532a577270 Author: Carlos Garnacho Date: Thu Jan 7 18:55:04 2016 +0100 x11: Initialize GdkWindowAttr struct memory Valgrind complains about jumps based on uninitialized values otherwise. gdk/x11/gdkdnd-x11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 48fbe5137e98e82dbff40d8b56584c39466fb06a Author: Lapo Calamandrei Date: Fri Jan 8 20:56:40 2016 +0100 Adwaita: avoid too tall headerbars the vertical padding from the headerbar has been removed, now the sizing is done with min-height, this avoids title and subtitle labels making the headbar. gtk/theme/Adwaita/_common.scss | 11 ++++++++--- gtk/theme/Adwaita/gtk-contained-dark.css | 9 ++++++--- gtk/theme/Adwaita/gtk-contained.css | 9 ++++++--- 3 files changed, 20 insertions(+), 9 deletions(-) commit b94f30bb64bd84ad62b4451c88aeca1f06a1959a Author: Matthias Clasen Date: Fri Jan 8 13:48:10 2016 -0500 Avoid an X error We are getting the mime data destroy notify called when we destroy the surface in finalize. Trying to set the XSync counters at this time is a) pointless and b) yielding an X error because the counters have already been destroyed. To avoid this, unhook the damage tracking before destroying the surface. https://bugzilla.gnome.org/show_bug.cgi?id=760188 gdk/x11/gdkwindow-x11.c | 2 ++ 1 file changed, 2 insertions(+) commit 4d60b5b10c472fb3b37465cede661288708e16e6 Author: Matthias Clasen Date: Fri Jan 8 13:44:36 2016 -0500 x11: Fix damage tracking hack We are setting mime data with a destroy notify on the cairo surface to get notified when cairo registers damage for the surface (in that case, it clears the mime data, calling the destroy notify). Unfortunately, the destroy notify is also called when we remove the mime data ourselves, which was not intentional. Use a flag in the window impl struct to ignore the callback when we are clearing the hook. gdk/x11/gdkwindow-x11.c | 30 +++++++++++++++++++----------- gdk/x11/gdkwindow-x11.h | 1 + 2 files changed, 20 insertions(+), 11 deletions(-) commit 3f56c530b3b5c77f2b9194c479afd1cdd25e9a42 Author: Matthias Clasen Date: Fri Jan 8 13:17:58 2016 -0500 Be more careful with floating point divisions The assumption that MIN() takes care of all infinities here turns out to be wrong. We were getting inf and -nan for some combinations of 0 width/height and corners, leading to invalid matrices and cairo errors. https://bugzilla.gnome.org/show_bug.cgi?id=759668 gtk/gtkroundedbox.c | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) commit 709cc0860351a2f77fcdf76396aab61a1e2899a0 Author: Matthias Clasen Date: Fri Jan 8 11:30:44 2016 -0500 x11: Simplify drag cancel animation setup Instead of creating an intermediate pixbuf, just render the window surface onto the new surface. Doing things this way lets us avoid the cairo_surface_mark_dirty() call in gdk_pixbuf_get_from_window(), which is not generally safe to call on 'random' surfaces - it asserts that the surface has no mime data attached, and the X11 backend uses mime data for damage tracking purposes... gdk/x11/gdkdnd-x11.c | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) commit ea0084cd995283dee00a327c92d9896994e738e1 Author: Matthias Clasen Date: Fri Jan 8 11:29:58 2016 -0500 x11: Keep the drag window alive longer We destroy the widget that is wrapped around the drag window when the object data on the drag context gets cleared. Destroying the window before that happens leads to unpleasantries. E.g. we may try to access the frame clock, which doesn't exist anymore, and things go downhill from there. So, keep the window alive for a little longer. gdk/x11/gdkdnd-x11.c | 6 ++++++ 1 file changed, 6 insertions(+) commit f9e504d70e90686e32fd0c4b9ceab9f36a05ea53 Author: Matthias Clasen Date: Fri Jan 8 11:22:47 2016 -0500 wayland: Keep the drag window alive longer We destroy the widget that is wrapped around the drag window when the object data on the drag context gets cleared. Destroying the window before that happens leads to unpleasantries. E.g. we may try to access the frame clock, which doesn't exist anymore, and things go downhill from there. So, keep the window alive for a little longer. gdk/wayland/gdkdnd-wayland.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) commit d3aea5c4989b96f09e75f995ea55fc80a936c785 Author: Matthias Clasen Date: Fri Jan 8 11:12:55 2016 -0500 Forgotten file One was forgotten in the dark -> inverse rename. gtk/theme/HighContrast/gtk-inverse.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 000b5b90559c0faa9fbc2ddbc9359211cda203c5 Author: Matthias Clasen Date: Fri Jan 8 11:08:37 2016 -0500 color editor: Set a name on the color sample This can be used to tweak the style from CSS, via #editor-color-sample. gtk/ui/gtkcoloreditor.ui | 1 + 1 file changed, 1 insertion(+) commit 91123adba78f3bb7a50079e5d7e107bc5e2dc43e Author: Lapo Calamandrei Date: Fri Jan 8 16:48:01 2016 +0100 Adwaita: remove some now uneeded selectors ...related to image-button sizing which is handled differently now. gtk/theme/Adwaita/_common.scss | 10 ---------- gtk/theme/Adwaita/gtk-contained-dark.css | 29 +++++++++-------------------- gtk/theme/Adwaita/gtk-contained.css | 29 +++++++++-------------------- 3 files changed, 18 insertions(+), 50 deletions(-) commit 5de71413fe5a24aedcd0e39dce84b9b3385ea593 Author: Lapo Calamandrei Date: Fri Jan 8 16:31:30 2016 +0100 Adwaita: colorchooser and color button style rewrite fixing https://bugzilla.gnome.org/show_bug.cgi?id=760169 in the process. gtk/theme/Adwaita/_common.scss | 174 +++++++++++++------------------ gtk/theme/Adwaita/gtk-contained-dark.css | 128 +++++++++-------------- gtk/theme/Adwaita/gtk-contained.css | 128 ++++++++++------------- 3 files changed, 180 insertions(+), 250 deletions(-) commit d07f00d98f2ae82a927d364a8f140ec881c2dcfe Author: Chun-wei Fan Date: Fri Jan 8 18:44:24 2016 +0800 CJK Windows: Silence gtk_style_context_set_state() warnings We need to update calls to gtk_style_context_set_state() in gtkimcontextime.c, so that the state passed into that function would be in line with what GtkStyleContext expects, due to updates in the CSS machinery, as outlined in this link[1], which is based on information in in Matthias' blog[2]. Doing so will silence the gtk_style_context_set_state() warnings, which is emitted when a widget uses gtkimcontext on Windows with CJK IME, which will in turn call gtkimcontextime. [1]: http://feaneron.com/2016/01/04/quick-guide-to-port-an-app-for-gtk-3-20/ [2]: https://blogs.gnome.org/mclasen/2015/11/20/a-gtk-update/ https://bugzilla.gnome.org/show_bug.cgi?id=760314 modules/input/gtkimcontextime.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) commit 4eb333801b517c58b896d82dcd129768e76d0e0e Author: Matthias Clasen Date: Fri Jan 8 08:59:02 2016 -0500 Revert "Translate GDK_KEY_KP_Decimal according to locale" This reverts commit 7c7fde136e1fd1197df1881a3bbd975c4cb1c01a. Too much controversy for this minor improvement. See https://bugzilla.gnome.org/show_bug.cgi?id=756751 gdk/gdkkeyuni.c | 21 --------------------- 1 file changed, 21 deletions(-) commit d72e061bb99b2b7aac8908858041d329aa19890e Author: Matthias Clasen Date: Fri Jan 8 07:39:17 2016 -0500 Rename the HighContastInverse css files Renaming the files from -dark to -inverse makes it more obvious that this is not a dark variant in the sense of the 'prefer-dark' setting, but rather a separate theme (sharing the same CSS). gtk/Makefile.am | 4 +- gtk/theme/HighContrast/gtk-contained-dark.css | 3030 --------------------- gtk/theme/HighContrast/gtk-contained-dark.scss | 11 - gtk/theme/HighContrast/gtk-contained-inverse.css | 3030 +++++++++++++++++++++ gtk/theme/HighContrast/gtk-contained-inverse.scss | 11 + gtk/theme/HighContrast/gtk-dark.css | 1 - gtk/theme/HighContrast/gtk-inverse.css | 1 + 7 files changed, 3044 insertions(+), 3044 deletions(-) commit 0dd013d3722b04439b8c7df95d78f4cde3d554b9 Author: Matthias Clasen Date: Thu Jan 7 23:56:03 2016 -0500 Document caret CSS properties docs/reference/gtk/css.xml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) commit 9f247e112bc34011f45addf14e6d1ba5df1e05c7 Author: Matthias Clasen Date: Wed Jan 6 22:12:35 2016 -0500 Deprecate cursor-color style properties These have been replaced by CSS properties. gtk/gtkwidget.c | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) commit 9b86d6da2cb26893223e64be29d2d016d18af77a Author: Matthias Clasen Date: Wed Jan 6 22:07:09 2016 -0500 Use the caret-color properties for drawing carets Replace the cursor-color and secondary-cursor-color style properties with the caret-color and -gtk-secondary-caret-color CSS properties. For the 'auto' value of these properties, we keep the same behavior that we used to have when the style properties are not explicitly set. gtk/gtkstylecontext.c | 61 +++++++++++---------------------------------------- 1 file changed, 13 insertions(+), 48 deletions(-) commit fdba244c387d941279ed61ebc658c91f4f3d6025 Author: Matthias Clasen Date: Wed Jan 6 22:05:29 2016 -0500 Add the caret-color CSS property This property is defined in http://www.w3.org/TR/css3-ui/#caret-color. We also add a -gtk-secondary-caret-color property, since GTK+ has supported differently colored split cursors in the past. Unlike CSS, we don't support the weakly defined auto keyword, and just use currentColor as the initial value. gtk/gtkcsscolorvalue.c | 2 ++ gtk/gtkcssstylepropertyimpl.c | 20 +++++++++++++++++++- gtk/gtkcsstypesprivate.h | 2 ++ 3 files changed, 23 insertions(+), 1 deletion(-) commit feba047574d2897a35e8cf506002ef86904addfb Author: Timm Bäder Date: Fri Jan 8 13:23:56 2016 +0100 gtk3-demo: Remove unused GtkCellView demos/gtk-demo/combobox.c | 5 ----- 1 file changed, 5 deletions(-) commit 496f0892fcfcd14715b85258f155b65d2ab54ab6 Author: Alberto Ruiz Date: Mon Dec 28 20:14:08 2015 +0000 introspection: This patch fixes nullable return values fixes for the following symbols in gtk gtk_accel_group_query gtk_accel_group_from_accel_closure gtk_accel_label_get_accel_widget gtk_accessible_get_widget gtk_actionable_get_action_name gtk_app_chooser_get_app_info gtk_app_chooser_button_get_heading gtk_app_chooser_dialog_get_heading gtk_application_get_window_by_id gtk_assistant_get_nth_page gtk_binding_set_find gtk_builder_get_object gtk_builder_lookup_callback_symbol gtk_builder_get_application gtk_button_get_image gtk_cell_area_get_focus_from_sibling gtk_cell_renderer_start_editing gtk_cell_view_get_model gtk_cell_view_get_displayed_row gtk_clipboard_get_owner gtk_container_get_focus_child gtk_container_get_focus_vadjustment gtk_container_get_focus_hadjustment gtk_dialog_get_widget_for_response gtk_drag_get_source_widget gtk_drag_dest_get_target_list gtk_drag_source_get_target_list gtk_entry_completion_get_model gtk_entry_completion_compute_prefix gtk_expander_get_label_widget gtk_file_chooser_get_filename gtk_file_chooser_get_current_folder gtk_file_chooser_get_uri gtk_file_chooser_get_current_folder_uri gtk_file_chooser_get_preview_widget gtk_file_chooser_get_preview_file gtk_file_chooser_get_preview_filename gtk_file_chooser_get_preview_uri gtk_file_chooser_get_extra_widget gtk_file_chooser_get_filter gtk_file_chooser_native_get_accept_label gtk_file_chooser_native_get_cancel_label gtk_file_filter_get_name gtk_font_chooser_get_font_family gtk_font_chooser_get_font_face gtk_font_chooser_get_font gtk_font_chooser_get_font_desc gtk_font_chooser_get_font_map gtk_frame_get_label gtk_gesture_get_device gtk_gesture_get_window gtk_gl_area_get_error gtk_header_bar_get_title gtk_header_bar_get_subtitle gtk_header_bar_get_custom_title gtk_icon_info_get_filename gtk_icon_view_get_path_at_pos gtk_icon_view_get_model gtk_image_get_pixbuf gtk_image_get_animation gtk_label_get_mnemonic_widget gtk_label_get_attributes gtk_check_version gtk_menu_button_get_popup gtk_menu_button_get_menu_model gtk_menu_button_get_align_widget gtk_menu_button_get_popover gtk_menu_item_get_submenu gtk_menu_item_get_accel_path gtk_native_dialog_get_title gtk_native_dialog_get_transient_for gtk_notebook_get_nth_page gtk_notebook_get_tab_label_text gtk_notebook_get_menu_label gtk_notebook_get_menu_label_text gtk_notebook_get_group_name gtk_notebook_get_action_widget gtk_offscreen_window_get_surface gtk_offscreen_window_get_pixbuf gtk_paned_get_child1 gtk_paned_get_child2 gtk_places_sidebar_get_location gtk_places_sidebar_get_nth_bookmark gtk_plug_get_socket_window gtk_popover_get_default_widget gtk_progress_bar_get_text gtk_recent_filter_get_name gtk_recent_manager_lookup_item gtk_settings_get_default gtk_socket_get_plug_window gtk_stack_sidebar_get_stack gtk_stack_switcher_get_stack gtk_style_context_get_section gtk_style_context_get_parent gtk_style_context_get_frame_clock gtk_test_find_widget gtk_text_buffer_get_mark gtk_text_tag_table_lookup gtk_text_view_get_tabs gtk_text_view_toggle_cursor_visible gtk_text_view_get_window gtk_toolbar_get_nth_item gtk_tool_button_get_label gtk_tool_button_get_icon_name gtk_tool_button_get_label_widget gtk_tool_button_get_icon_widget gtk_tool_palette_get_drop_item gtk_tool_palette_get_drop_group gtk_tree_model_filter_convert_child_path_to_path gtk_tree_model_filter_convert_path_to_child_path gtk_tree_model_sort_convert_child_path_to_path gtk_tree_model_sort_convert_path_to_child_path gtk_tree_view_get_column gtk_tree_view_get_bin_window gtk_tree_view_column_get_widget gtk_tree_view_column_get_tree_view gtk_widget_get_frame_clock gtk_window_group_get_current_device_grab GtkTextBufferSerializeFunc gtk/gtkaccelgroup.c | 6 +++--- gtk/gtkaccellabel.c | 2 +- gtk/gtkaccessible.c | 2 +- gtk/gtkactionable.c | 3 ++- gtk/gtkappchooser.c | 2 +- gtk/gtkappchooserbutton.c | 2 +- gtk/gtkappchooserdialog.c | 2 +- gtk/gtkapplication.c | 2 +- gtk/gtkassistant.c | 2 +- gtk/gtkbindings.c | 2 +- gtk/gtkbuilder.c | 6 +++--- gtk/gtkbutton.c | 3 ++- gtk/gtkcalendar.h | 4 ++-- gtk/gtkcellarea.c | 2 +- gtk/gtkcellrenderer.c | 2 +- gtk/gtkcellview.c | 4 ++-- gtk/gtkclipboard.c | 2 +- gtk/gtkcontainer.c | 8 ++++---- gtk/gtkdialog.c | 2 +- gtk/gtkdnd.c | 4 ++-- gtk/gtkdragsource.c | 2 +- gtk/gtkentrycompletion.c | 6 +++--- gtk/gtkexpander.c | 2 +- gtk/gtkfilechooser.c | 39 ++++++++++++++++++++------------------- gtk/gtkfilechoosernative.c | 8 ++++---- gtk/gtkfilefilter.c | 2 +- gtk/gtkfontchooser.c | 10 +++++----- gtk/gtkframe.c | 2 +- gtk/gtkgesture.c | 4 ++-- gtk/gtkglarea.c | 2 +- gtk/gtkheaderbar.c | 6 +++--- gtk/gtkicontheme.c | 2 +- gtk/gtkiconview.c | 6 +++--- gtk/gtkimage.c | 4 ++-- gtk/gtklabel.c | 4 ++-- gtk/gtkmain.c | 2 +- gtk/gtkmenubutton.c | 8 ++++---- gtk/gtkmenuitem.c | 6 +++--- gtk/gtknativedialog.c | 6 +++--- gtk/gtknotebook.c | 31 +++++++++++++++---------------- gtk/gtkoffscreenwindow.c | 4 ++-- gtk/gtkpaned.c | 4 ++-- gtk/gtkplacessidebar.c | 10 +++++----- gtk/gtkplug.c | 2 +- gtk/gtkpopover.c | 3 ++- gtk/gtkprogressbar.c | 2 +- gtk/gtkrecentfilter.c | 2 +- gtk/gtkrecentmanager.c | 2 +- gtk/gtksettings.c | 4 ++-- gtk/gtksocket.c | 3 ++- gtk/gtkstacksidebar.c | 2 +- gtk/gtkstackswitcher.c | 2 +- gtk/gtkstylecontext.c | 7 ++++--- gtk/gtktestutils.c | 2 +- gtk/gtktextbuffer.c | 2 +- gtk/gtktextbufferrichtext.h | 4 ++-- gtk/gtktexttagtable.c | 3 ++- gtk/gtktextview.c | 6 +++--- gtk/gtktoolbar.c | 2 +- gtk/gtktoolbutton.c | 8 ++++---- gtk/gtktoolpalette.c | 6 +++--- gtk/gtktreemodelfilter.c | 4 ++-- gtk/gtktreemodelsort.c | 4 ++-- gtk/gtktreeview.c | 8 ++++---- gtk/gtktreeviewcolumn.c | 4 ++-- gtk/gtkwidget.c | 3 ++- gtk/gtkwindowgroup.c | 2 +- 67 files changed, 163 insertions(+), 156 deletions(-) commit 120088b15f082c2da62a8cea25ba7da53ddb69d6 Author: Olivier Fourdan Date: Tue Dec 8 16:33:45 2015 +0100 wayland: Update parent of dialogs without transient X11 has the notions of "transient for group", and while it's an ICCCM violation, it's commonly used and documented that a window manager would treat a window with transient_for set to None to transient for all windows of its group. gtk uses this when an application sets a dialog type window but does not specify an explicit transient. While this works on X11, there is no such thing as groups in Wayland and the closest equivalent which is set_parent() in xdg-shell takes only one parent. This is what is used for modal dialogs. To get something similar in behavior to what is available on X11, a solution is to update the parent() of the dialogs without transient when the active surface changes. Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=759161 gdk/wayland/gdkwindow-wayland.c | 69 +++++++++++++++++++++++++++++++++++++---- 1 file changed, 63 insertions(+), 6 deletions(-) commit 28f011eb055673d8944cd6e012bc5d84bae41a26 Author: Olivier Fourdan Date: Mon Dec 21 14:35:53 2015 +0100 wayland: prefer subsurface when possible Quite a few applications use GTK_WINDOW_POPUP to create various temporary windows and place then on screen. That works fine on X11 but on Wayland there is no global coordinate system for regular surfaces. If the application is using a gdk temp window and set a parent with gtk_window_transient_for(), the gdk wayland backend has all it needs to create a subsurface that can be placed at will by the application. Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=759738 gdk/wayland/gdkwindow-wayland.c | 57 +++++++++++++++++++++++----------- gtk/gtkwindow.c | 6 ++++ tests/Makefile.am | 1 + tests/testpopup.c | 68 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 115 insertions(+), 17 deletions(-) commit d85b3fc60dcf09d4703b30bef676af93ef6ed6cd Author: Timm Bäder Date: Fri Jan 8 09:38:32 2016 +0100 revealer: Propagate draw event gtk/gtkrevealer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 711ffd648ed191bad9f0a956cf05905a73a9e4bd Author: Timm Bäder Date: Tue Jan 5 19:05:43 2016 +0100 GtkPopover: Protect against transparent backgrounds If the background is transparent, we can't use it for the input shape, since that will be empty. Draw a box with rounded corners irectly instead, in fully opaque black. https://bugzilla.gnome.org/show_bug.cgi?id=759905 gtk/gtkpopover.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) commit fa66b271f8c96d86bcb7eb7f315628ea3674aafd Author: Ben Gamari Date: Wed Jan 6 00:36:21 2016 +0100 gdkwindow-x11: Ensure that extended update counter is freed I believe this lead to rampant leakage of SyncCounters by gnome-terminal. https://bugzilla.gnome.org/show_bug.cgi?id=760188 gdk/x11/gdkwindow-x11.c | 3 +++ 1 file changed, 3 insertions(+) commit a45b1d1e3c414d2b2735c9ed096b6abe1b45a7ea Author: Matthias Clasen Date: Thu Jan 7 19:49:17 2016 -0500 inspector: Sort themes in the various theme combos It is nicer if the themes show up in a predictable order, so sort them alphabetically. gtk/inspector/visual.c | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) commit ec02f055ed6d91cf8ff53dd5b62cac643da8ae08 Author: Matthias Clasen Date: Thu Jan 7 19:50:15 2016 -0500 inspector: Add HighContrastInverse to list of themes gtk/inspector/visual.c | 1 + 1 file changed, 1 insertion(+) commit 0e473a5f1c4d4598cf73e570c0bb1777341aa81d Author: Matthias Clasen Date: Thu Jan 7 19:47:58 2016 -0500 Rename HighContrast-dark to HighContrastInverse For accessibility purposes, it is better to have this as a separate theme than as a dark variant of the HighContrast theme. gtk/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 4925493e494d72c7eeb35c12d7461102edb973df Author: Lapo Calamandrei Date: Fri Jan 8 01:38:42 2016 +0100 Adwaita: rounded corners on iconview selection gtk/theme/Adwaita/_common.scss | 1 + gtk/theme/Adwaita/gtk-contained-dark.css | 2 ++ gtk/theme/Adwaita/gtk-contained.css | 2 ++ 3 files changed, 5 insertions(+) commit c0275b508dab401f2464ec2beb26d9dde1779cf4 Author: Lapo Calamandrei Date: Fri Jan 8 01:37:20 2016 +0100 Adwaita: fix calendar invisible selection gtk/theme/Adwaita/_common.scss | 5 +++-- gtk/theme/Adwaita/gtk-contained-dark.css | 14 ++++++++------ gtk/theme/Adwaita/gtk-contained.css | 14 ++++++++------ 3 files changed, 19 insertions(+), 14 deletions(-) commit 5b3001b6d53b137d32dd7b9ab8996be224859d6d Author: Matthias Clasen Date: Thu Jan 7 19:20:55 2016 -0500 colorswatch: Fix the overlay I misunderstood what the overlay is good for: We need to allocate it the full size of the widget. since we are using it to render a background gradient *over* the application-rendered color. At the same time, save some 100 lines of code by using an icon helper as gadget, instead of handling the icon manually. gtk/gtkcolorswatch.c | 155 ++++++++++----------------------------------------- 1 file changed, 30 insertions(+), 125 deletions(-) commit 1b3bb244b6b584fbee69e120fe3cbcdb19069ce0 Author: Matthias Clasen Date: Thu Jan 7 18:38:31 2016 -0500 color swatch: Fix up rendering gtk_render_content_path is expecting the full box dimensions, not just the content area. So, add the border before calling it. Note it is still possible to have some separation between the color and the border, by setting padding. gtk/gtkcolorswatch.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) commit f9e6ccd59256ef86bdfa3bfe9810df35f7ee00fe Author: Daiki Ueno Date: Wed Jan 6 18:09:04 2016 +0900 gtkbuilder: Install gettext ITS files Recent gettext has a feature to allow consumer projects to supply their own string extraction rules for XML files, in ITS format. Gettext still ships the rule for *.ui, but it would be better maintained in the upstream project. https://bugzilla.gnome.org/show_bug.cgi?id=760202 gtk/Makefile.am | 5 +++++ gtk/gtkbuilder.its | 23 +++++++++++++++++++++++ gtk/gtkbuilder.loc | 6 ++++++ 3 files changed, 34 insertions(+) commit b1f692572747b2ef39135361bb83624ec38d04d6 Author: Daniel Mustieles Date: Thu Jan 7 23:15:11 2016 +0100 Updated Spanish translation po-properties/es.po | 1502 ++++++++++++++++++++++++++------------------------- 1 file changed, 758 insertions(+), 744 deletions(-) commit c9ee47333f458e4edde29c372bd7700756a04544 Author: Daniel Mustieles Date: Thu Jan 7 23:14:58 2016 +0100 Updated Spanish translation po/es.po | 185 +++++++++++++++++++++++++++++++++------------------------------ 1 file changed, 96 insertions(+), 89 deletions(-) commit 9e63e61b165da6ce5159e6e84e4e98f79c266026 Author: Matthias Clasen Date: Thu Jan 7 16:30:19 2016 -0500 Implement transitions for radial gradients This was missing in the initial implementation. gtk/gtkcssimageradial.c | 98 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 98 insertions(+) commit a7e2a9d8d3268c851aa1c22da2cbf22ab380e12e Author: Matthias Clasen Date: Thu Jan 7 16:10:10 2016 -0500 Don't interpolate between keywords Transitioning between linear gradients like linear-gradient(to top, yellow, green) and linear-gradient(to left, yellow, green) was yielding nonsensical results, with the gradient line jumping around wildly. Fix this by falling back to stupid image interpolation for these cases. gtk/gtkcssimagelinear.c | 4 ++++ 1 file changed, 4 insertions(+) commit cd6ca291bdc10c8ae7c9379d7c2b892c129785cc Author: Kjartan Maraas Date: Thu Jan 7 21:54:51 2016 +0100 Updated Norwegian bokmål translation. po/nb.po | 3335 ++++++++++++++++++++++++++++++++++++++++---------------------- 1 file changed, 2156 insertions(+), 1179 deletions(-) commit ca6d01a678c6eab9dcbb6719e5d5365008aceac5 Author: Timm Bäder Date: Thu Jan 7 20:33:25 2016 +0100 GtkCssGadget: Set valid clip values for invisible gadgets gtk/gtkcssgadget.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) commit 8ecba899916aab7956ca9850c89d346fab24ae55 Author: Matthias Clasen Date: Thu Jan 7 13:24:32 2016 -0500 color swatch: Remove a stray frame When using a gadget, the border is free, no need to call gtk_render_frame ourselves. gtk/gtkcolorswatch.c | 2 -- 1 file changed, 2 deletions(-) commit 0b96b8a1eef68a6110ceac10208a2c29b807cd56 Author: Timm Bäder Date: Thu Jan 7 18:27:11 2016 +0100 GtkModelButton: Remove some margins Now that we can use margins from css for this, remove the margins we set in code and use css instead. gtk/gtkmenusectionbox.c | 12 ------------ gtk/gtkmodelbutton.c | 5 ----- gtk/theme/Adwaita/_common.scss | 20 +++++++++++++++----- gtk/theme/Adwaita/gtk-contained-dark.css | 22 +++++++++++++++++----- gtk/theme/Adwaita/gtk-contained.css | 22 +++++++++++++++++----- 5 files changed, 49 insertions(+), 32 deletions(-) commit 2f61bc18661c83769968e9cc47ca762d45cf0117 Author: Timm Bäder Date: Thu Jan 7 18:25:22 2016 +0100 GtkModelButton: Remove always-zero variable gtk/gtkmodelbutton.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) commit bbfec07e067c0d0175b7ac9e858a85674600b8bd Author: Eric Williams Date: Wed Jan 6 15:27:53 2016 -0500 Clarified the function docs for gtk_css_provider_load_from_data(). https://bugzilla.gnome.org/show_bug.cgi?id=760238 gtk/gtkcssprovider.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 10cc35405e9e51754546a6e49be77fb8df37e39a Author: Matthias Clasen Date: Wed Jan 6 14:56:06 2016 -0500 wayland: Only do cursor name fallback for standard names Always returning a left_ptr if we can't find anything better broke firefox application-specific fallback for missing cursors. Keep that working by only doing the fallback for the CSS cursor names, not for things like hashes. https://bugzilla.gnome.org/show_bug.cgi?id=760141 gdk/wayland/gdkcursor-wayland.c | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) commit d9befb9086ba7882b5c2813518ab3c3e02c0ed7f Author: Matthias Clasen Date: Wed Jan 6 14:54:33 2016 -0500 x11: Only do cursor name fallback for standard names Always returning a left_ptr if we can't find anything better broke firefox application-specific fallback for missing cursors. Keep that working by only doing the fallback for the CSS cursor names, not for things like hashes. https://bugzilla.gnome.org/show_bug.cgi?id=760141 gdk/x11/gdkcursor-x11.c | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) commit b6e11d087c951b01e70d7bae926e3f6323374fd6 Author: Matthias Clasen Date: Wed Jan 6 14:53:45 2016 -0500 Add context-menu to the list of standard cursor names Adwaita doesn't have this one, but we are falling to the default cursor anyway. gdk/gdkcursor.c | 1 + 1 file changed, 1 insertion(+) commit d76fb63ba87e45c24ce916275d85a37b07fb3fc7 Author: Matthias Clasen Date: Tue Jan 5 23:24:51 2016 -0500 Add a test for ltr vs rtl boxes. This tests that horizontal boxes flip their child nodes according to text direction to maintain the left-to-right ordering of child nodes for both text directions. testsuite/css/nodes/Makefile.am | 2 ++ testsuite/css/nodes/box.ltr.nodes | 6 ++++++ testsuite/css/nodes/box.ltr.ui | 32 ++++++++++++++++++++++++++++++++ testsuite/css/nodes/box.rtl.nodes | 6 ++++++ testsuite/css/nodes/box.rtl.ui | 32 ++++++++++++++++++++++++++++++++ 5 files changed, 78 insertions(+) commit a519a1a9284d749356a46ec249c5fdb9dd2f641c Author: Matthias Clasen Date: Tue Jan 5 23:22:28 2016 -0500 CSS node tests: Add a way to test rtl vs ltr CSS nodes have a linear sibling relationship; this is supposed to correspond to left-to-right placement in horizontal arrangements. This commit explicitly sets the text direction to rtl if the filename ends in .rtl.ui, so we can test differences in node tree layout between text directions. testsuite/css/nodes/test-css-nodes.c | 5 +++++ 1 file changed, 5 insertions(+) commit 47afccb41bc5258b15b3b14148ffcc50fb3a0933 Author: Timm Bäder Date: Wed Jan 6 10:58:08 2016 +0100 GtkListBox: Optimize _get_row_at_y a bit Use g_sequence_lookup for a binary search over the rows. gtk/gtklistbox.c | 41 ++++++++++++++++++++++++----------------- 1 file changed, 24 insertions(+), 17 deletions(-) commit a9d5fa4cfe7f377d14273e038ee6eae980f5e9e7 Author: Timm Bäder Date: Wed Jan 6 10:46:29 2016 +0100 GtkListBox: get_row_at_y can return NULL gtk/gtklistbox.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 83fc4d591a918d1bafa1cb12f89ac0044a9e0d91 Author: Rico Tzschichholz Date: Wed Jan 6 15:17:52 2016 +0100 HighContrast: Fix make dist gtk/Makefile.am | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) commit 98080e0289e311998fdc9f2ee61d2a3922e55c81 Author: Felipe Borges Date: Wed Jan 6 14:47:48 2016 +0100 printing: always propagate Collate value https://bugzilla.gnome.org/show_bug.cgi?id=728344 modules/printbackends/cups/gtkprintbackendcups.c | 2 ++ 1 file changed, 2 insertions(+) commit 1fec39ef0b858a392b4dec4f3ff76a592cfd0de9 Author: Chun-wei Fan Date: Wed Jan 6 21:12:19 2016 +0800 Visual Studio builds: Use _USE_MATH_DEFINES ... to fix the build as some C99 math constant macros are being used, such as M_SQRT2. build/win32/vs10/gtk3-build-defines.props | 2 +- build/win32/vs9/gtk3-build-defines.vsprops | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 215c28df28cd643ef5cea35ca34a12a695a02b5f Author: Wonchul Lee Date: Tue Jan 5 16:48:48 2016 +0900 docs: cleanup duplication of words https://bugzilla.gnome.org/show_bug.cgi?id=760148 docs/reference/gtk/getting_started.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit f32362e82ccf90c8a38f89ae83619b11665be0d5 Author: Matthias Clasen Date: Tue Jan 5 22:33:20 2016 -0500 HighContrast: Improve search bar appearance Follow the generally white background we use everywhere else. This is not perfect, we get double borders when the search bar is shown, as can be seen in gtk3-widget-factory. gtk/theme/HighContrast/_common.scss | 4 +++- gtk/theme/HighContrast/gtk-contained-dark.css | 30 ++++++++++++++------------- gtk/theme/HighContrast/gtk-contained.css | 30 ++++++++++++++------------- 3 files changed, 35 insertions(+), 29 deletions(-) commit aa9095ff7283dc5fcd493d5e9e68a9e3a88bfd4c Author: Matthias Clasen Date: Tue Jan 5 22:22:47 2016 -0500 HighContrast: Fix up action bar styling Since HighContrast is not using different background colors as much as Adwaita, we need to add borders to prevent things from running into each other. gtk/theme/HighContrast/_common.scss | 13 ++++++++----- gtk/theme/HighContrast/gtk-contained-dark.css | 12 +++++++----- gtk/theme/HighContrast/gtk-contained.css | 12 +++++++----- 3 files changed, 22 insertions(+), 15 deletions(-) commit 643454147c306c6d175bb12e3c2af4a6fdaa0db9 Author: Matthias Clasen Date: Tue Jan 5 20:39:16 2016 -0500 HighContrast: Drop deprecated style properties gtk/theme/HighContrast/_common.scss | 72 +++++++++++---------------- gtk/theme/HighContrast/gtk-contained-dark.css | 37 ++++---------- gtk/theme/HighContrast/gtk-contained.css | 37 ++++---------- 3 files changed, 52 insertions(+), 94 deletions(-) commit 56ca40996dc4deec1169f582090e8c78ff71536b Author: Matthias Clasen Date: Tue Jan 5 19:25:06 2016 -0500 HighContrast: Add a dark variant This is just a quick experiment, and so I have another theme with a dark variant to play with. gtk/Makefile.am | 3 + gtk/theme/HighContrast/_colors.scss | 13 +- gtk/theme/HighContrast/gtk-contained-dark.css | 3041 +++++++++++++++++++++++ gtk/theme/HighContrast/gtk-contained-dark.scss | 11 + gtk/theme/HighContrast/gtk-contained.css | 3041 +++++++++++++++++++++++ gtk/theme/HighContrast/gtk-contained.scss | 11 + gtk/theme/HighContrast/gtk-dark.css | 1 + gtk/theme/HighContrast/gtk.css | 3042 +----------------------- gtk/theme/HighContrast/gtk.scss | 9 - 9 files changed, 6115 insertions(+), 3057 deletions(-) commit 474d6bec85afb986e7e7e1110f8a0fd09c04e46a Author: Matthias Clasen Date: Tue Jan 5 16:54:40 2016 -0500 HighContrast: Add a missing unit gtk/theme/HighContrast/_common.scss | 2 +- gtk/theme/HighContrast/gtk.css | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 907fade7d02dad8b6aea120c20e92019fb26cebe Author: Matthias Clasen Date: Tue Jan 5 16:53:03 2016 -0500 HighContrast: Fix sidebar borders gtk/theme/HighContrast/_common.scss | 2 +- gtk/theme/HighContrast/gtk.css | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) commit 39b76ec0822e70f2dad736ee3d87f51c225d416f Author: Matthias Clasen Date: Tue Jan 5 14:37:22 2016 -0500 HighContrast: Fix checkboxes in selected context Set a proper color so checks and radios don't disappear on the black selection background. gtk/theme/HighContrast/_common.scss | 2 +- gtk/theme/HighContrast/gtk.css | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) commit 9ebb63c71f6a7ae4b0fd1e6b6e42b489e3fba269 Author: Matthias Clasen Date: Tue Jan 5 14:19:58 2016 -0500 HighConstast: Some fixes for treeview headers gtk/theme/HighContrast/_common.scss | 18 ++++++++++-------- gtk/theme/HighContrast/gtk.css | 17 +++++++++-------- 2 files changed, 19 insertions(+), 16 deletions(-) commit d60fe93937387b0d2151ab8a02dcf56c711781d9 Author: Matthias Clasen Date: Tue Jan 5 10:55:34 2016 -0500 HighContrast: Keep spinbuttons from resizing on hover gtk/theme/HighContrast/_common.scss | 16 ++++++++++------ gtk/theme/HighContrast/gtk.css | 29 ++++++++++++++++++++--------- 2 files changed, 30 insertions(+), 15 deletions(-) commit 37ab99d1d21c1d6b3880dfb6fd11dcadb97e5c48 Author: Matthias Clasen Date: Tue Jan 5 07:48:54 2016 -0500 HighContrast: Fix checks and radios gtk/theme/HighContrast/_common.scss | 12 ++++++++- gtk/theme/HighContrast/gtk.css | 53 ++++++++++++++++++++++--------------- 2 files changed, 42 insertions(+), 23 deletions(-) commit c25b8e25f524ae33bce84d791a42f8e5621963de Author: Matthias Clasen Date: Tue Jan 5 07:40:39 2016 -0500 HighContrast: Some menu fixes gtk/theme/HighContrast/_common.scss | 34 ++++++++++++------- gtk/theme/HighContrast/gtk.css | 68 +++++++++++++++++++++---------------- 2 files changed, 60 insertions(+), 42 deletions(-) commit fd57a552cf626004eb48a825b205df2c27f04943 Author: Matthias Clasen Date: Tue Jan 5 07:17:16 2016 -0500 HighContrast: paned fixes Mostly copied from Adwaita. gtk/theme/HighContrast/_common.scss | 33 +++++++++++++++++++++------- gtk/theme/HighContrast/gtk.css | 43 +++++++++++++++++++++++++++---------- 2 files changed, 57 insertions(+), 19 deletions(-) commit 0f3f2e7f9c7563826cde54c29b55743809e1f1ea Author: Cosimo Cecchi Date: Tue Jan 5 10:01:33 2016 -0800 HighContrast: more combobox fixes Taken from Adwaita. gtk/theme/HighContrast/_common.scss | 14 ++++++++------ gtk/theme/HighContrast/gtk.css | 13 +++++++------ 2 files changed, 15 insertions(+), 12 deletions(-) commit c4996873dc2814ca53767dbaa1ffe08b3f6063d1 Author: Paolo Borelli Date: Tue Jan 5 18:40:25 2016 +0100 docs: try to clarify widget_get_state_flags vs context_get_state gtk/gtkstylecontext.c | 7 ++++++- gtk/gtkwidget.c | 4 ++++ 2 files changed, 10 insertions(+), 1 deletion(-) commit 4a9c6777a778d1d7b88f9d10d15807690ab8acc0 Author: Matthias Clasen Date: Mon Jan 4 23:52:28 2016 -0500 HighContrast: Some combobox fixes Mostly copied from Adwaita. gtk/theme/HighContrast/_common.scss | 37 ++++++++++++++++++----------------- gtk/theme/HighContrast/gtk.css | 39 ++++++++++++++++++++----------------- 2 files changed, 40 insertions(+), 36 deletions(-) commit d17f89f6bfacc0b5c30ee2977bf1d4d1803d0dc2 Author: Matthias Clasen Date: Mon Jan 4 23:45:13 2016 -0500 HighContrast: Fix frame styling gtk/theme/HighContrast/_common.scss | 2 +- gtk/theme/HighContrast/gtk.css | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) commit a11c30d0dfdac88f9954bf11ca43738c9c23fbda Author: Matthias Clasen Date: Mon Jan 4 23:28:32 2016 -0500 HighContrast: fix up color chooser theming Mostly copied from Adwaita. gtk/theme/HighContrast/_common.scss | 55 +++++++++++++++++++++++-------------- gtk/theme/HighContrast/gtk.css | 55 ++++++++++++++++++++++--------------- 2 files changed, 68 insertions(+), 42 deletions(-) commit 32177aa03bb4be191ad29e7bfc51aeaade83f317 Author: Matthias Clasen Date: Mon Jan 4 22:08:53 2016 -0500 HighContrast: Fix up stackswitcher Copy Some of the more recent additions from Adwaita. gtk/theme/HighContrast/_common.scss | 32 ++++++++++++++++++++++++++++++++ gtk/theme/HighContrast/gtk.css | 25 +++++++++++++++++++++++++ 2 files changed, 57 insertions(+) commit c110ffcb1a599fc4600bfa11e905369c3796c7b9 Author: Matthias Clasen Date: Mon Jan 4 21:35:55 2016 -0500 HighContrast: No blue spinners Spinners are drawing backgrounds now, so setting a blue background color is pretty distracting. gtk/theme/HighContrast/_common.scss | 1 - gtk/theme/HighContrast/gtk.css | 1 - 2 files changed, 2 deletions(-) commit f63e8edec68a158910f5f971b5f47cb9b51825cb Author: Matthias Clasen Date: Mon Jan 4 21:22:11 2016 -0500 Make sure icons update on theme change Gadgets don't connect to style-changed for widget nodes, and GtkImage uses its widget node for the icon helper. The visible effect of this is that symbolic icons don't change color when switching to the dark variant of Adwaita. Fix this by manually invalidating the icon helper. gtk/gtkiconhelper.c | 2 +- gtk/gtkiconhelperprivate.h | 1 + gtk/gtkimage.c | 10 ++++++++++ 3 files changed, 12 insertions(+), 1 deletion(-) commit b387a966ce0dd7e1815735e75494c73be0ea92de Author: Matthias Clasen Date: Mon Jan 4 16:58:10 2016 -0500 widget-factory: Make the notebook action truly circular The sidebar-button class doesn't work out so well for this since it has horizontal padding. demos/widget-factory/widget-factory.ui | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 637ade656aac2a9ed0e211477bb9ccf77529e908 Author: Cosimo Cecchi Date: Mon Jan 4 18:14:33 2016 -0800 levelbar: loop over all block gadgets to determine min size Instead of just picking the first. This is because the theme might set a border on only one of them, like the HighContrast theme does. gtk/gtklevelbar.c | 46 +++++++++++++++++++++++++++++----------------- 1 file changed, 29 insertions(+), 17 deletions(-) commit 183bcb41ecae92f73b07c4eca6f120e177f20735 Author: Cosimo Cecchi Date: Mon Jan 4 17:55:26 2016 -0800 levelbar: fix parameter confusion We're always interested in the minimum size. gtk/gtklevelbar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit beeefa1629f342ecbdaee9655b5e2d3a95295011 Author: Cosimo Cecchi Date: Mon Jan 4 17:50:24 2016 -0800 HighContrast: update to use -gtk-outline-radius gtk/theme/HighContrast/_common.scss | 8 ++++---- gtk/theme/HighContrast/gtk.css | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) commit bc66c0c31e96ed6bc71b917f0001b28be3b6df63 Author: Cosimo Cecchi Date: Mon Jan 4 17:49:41 2016 -0800 HighContrast: update to use :hover gtk/theme/HighContrast/_common.scss | 6 +++--- gtk/theme/HighContrast/gtk.css | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) commit 2780865534042ea7e5ab2836dcd1637c92a73746 Author: Cosimo Cecchi Date: Mon Jan 4 17:48:59 2016 -0800 HighContrast: update to use :indeterminate gtk/theme/HighContrast/_common.scss | 12 ++++++------ gtk/theme/HighContrast/gtk.css | 22 +++++++++++----------- 2 files changed, 17 insertions(+), 17 deletions(-) commit b2b1b0e238259cb0df148c2b4d42d90e965fe60b Author: Cosimo Cecchi Date: Mon Jan 4 17:46:43 2016 -0800 HighContrast: update to use :disabled gtk/theme/HighContrast/_common.scss | 130 +++++++++---------- gtk/theme/HighContrast/gtk.css | 244 ++++++++++++++++++------------------ 2 files changed, 187 insertions(+), 187 deletions(-) commit bc020fdeb73f6a906a867e1ad28a0886ea5361e7 Author: Matthias Clasen Date: Mon Jan 4 15:34:50 2016 -0500 tests: Rework the way foreigndrawing works Instead of the weird PathElt struct, generate a quick-n-dirty parser that parses CSS selectors into GtkWidgetPath elements. Based on a patch by Benjamin Otte. tests/foreigndrawing.c | 160 ++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 124 insertions(+), 36 deletions(-) commit c5437125518cf04f3f25c3e2f4ca3593467a21a9 Author: Matthias Clasen Date: Mon Jan 4 13:54:20 2016 -0500 Document radial gradient syntax docs/reference/gtk/css.xml | 50 +++++++++++++++++++++++++++++++++++++--------- 1 file changed, 41 insertions(+), 9 deletions(-) commit d9a70bc56adff5b616d0f5a760507f9ad5b8c08f Author: Matthias Clasen Date: Sun Jan 3 21:49:13 2016 -0500 Add a CSS style test for gradients This mainly just tests that gradients are properly reproduced by gtk_style_context_to_string. testsuite/css/style/Makefile.am | 9 +++++---- testsuite/css/style/gradient.css | 11 +++++++++++ testsuite/css/style/gradient.nodes | 9 +++++++++ testsuite/css/style/gradient.ui | 18 ++++++++++++++++++ 4 files changed, 43 insertions(+), 4 deletions(-) commit fcea12f790ad20ab79f24abf46faa7993fbd49c7 Author: Matthias Clasen Date: Sun Dec 27 02:04:20 2015 -0500 Add some tests for radial gradient parsing These are the examples from the CSS spec. testsuite/css/parser/Makefile.am | 2 ++ testsuite/css/parser/radial.css | 39 +++++++++++++++++++++++++++++++++++++ testsuite/css/parser/radial.ref.css | 39 +++++++++++++++++++++++++++++++++++++ 3 files changed, 80 insertions(+) commit f727ee568763c544fe4d28824b9c171b3ef2db7c Author: Matthias Clasen Date: Sun Dec 27 02:03:35 2015 -0500 Implement CSS radial gradients Implement parsing and drawing of radial gradients according to http://www.w3.org/TR/css3-images/#radial-gradients. Transitions are not implemented yet. gtk/Makefile.am | 2 + gtk/gtkcssimage.c | 3 + gtk/gtkcssimageradial.c | 588 +++++++++++++++++++++++++++++++++++++++++ gtk/gtkcssimageradialprivate.h | 73 +++++ 4 files changed, 666 insertions(+) commit f66191346c997e9f45843f6d8f087aa555bde811 Author: Christoph Reiter Date: Sat Oct 31 13:38:24 2015 +0100 Mention GtkIconSize in all docs where the argument/return is annotated as taking an int instead of GtkIconSize In https://bugzilla.gnome.org/show_bug.cgi?id=601425 the annotations were changed to int as they not only take the predefined enum values but also user defined values registered through gtk_icon_size_register() As a result the typelib doesn't contain any information about GtkIconSize for those arguments and the Python docstring only shows the corresponding Python type "int". This changes the argument docs to mention the type explicitly so the Python doc generator can add a link to Gtk.IconSize which contains the most useful predefined values. https://bugzilla.gnome.org/show_bug.cgi?id=757411 gtk/deprecated/gtkaction.c | 3 ++- gtk/deprecated/gtkiconfactory.c | 22 +++++++++++----------- gtk/deprecated/gtkstyle.c | 8 ++++---- gtk/gtkbutton.c | 2 +- gtk/gtkimage.c | 28 ++++++++++++++-------------- gtk/gtkrender.c | 5 +++-- gtk/gtkscalebutton.c | 2 +- gtk/gtktoolshell.c | 2 +- gtk/gtktooltip.c | 6 +++--- gtk/gtkwidget.c | 4 ++-- 10 files changed, 42 insertions(+), 40 deletions(-) commit 10f71dd98c2ef007b25de597b2523870e22fd594 Author: Marek Černocký Date: Mon Jan 4 11:52:10 2016 +0100 Updated Czech translation po/cs.po | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 77d9248e2a4f619d85aa55046d0aa5e701f4a7c0 Author: Marek Černocký Date: Mon Jan 4 11:51:20 2016 +0100 Updated Czech translation po/cs.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit e213ec9e365da323a00c3a9c8e77d28945e8ec61 Author: Rico Tzschichholz Date: Mon Jan 4 10:16:45 2016 +0100 docs/gtk: Include css.xml docs/reference/gtk/Makefile.am | 1 + 1 file changed, 1 insertion(+) commit 2e0a3ec57a87a9ac3b282f5d5a9b45907b06fa46 Author: Rico Tzschichholz Date: Mon Jan 4 09:53:24 2016 +0100 docs/gtk: Sort content_files/expand_content_files alphabetically docs/reference/gtk/Makefile.am | 50 +++++++++++++++++++++--------------------- 1 file changed, 25 insertions(+), 25 deletions(-) commit d29bfb3c7de1bfd45df705a7b6d4eb29206a4e50 Author: Piotr Drąg Date: Mon Jan 4 08:27:02 2016 +0100 Updated POTFILES.skip po-properties/POTFILES.skip | 7 +++++++ po/POTFILES.skip | 7 +++++++ 2 files changed, 14 insertions(+) commit aa352168c9815a604b2130c48bb857bf322fe17d Author: Chun-wei Fan Date: Mon Jan 4 15:09:14 2016 +0800 config.h.win32.in: Update for _lock_file() The Visual Studio versions that we support supports locking functions in their CRT, so support that to optimize things a bit. Also update the config.h.win32.in so that its entries are more in line with the ones in the autootols builds, and make sure that we use UNIX line endings. config.h.win32.in | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) commit a009a50239520f1227721e3b9399adbecda04784 Author: Cosimo Cecchi Date: Sun Jan 3 17:20:06 2016 -0800 cssstyle: fix a compiler warning gtk/gtkcssstyle.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit d8e1fd6079ab2b93d48dda09cbefa316210cde3f Author: Matthias Clasen Date: Sun Jan 3 17:23:59 2016 -0500 Update expected output The previous commit changed the format of the output generated by the CSS style tests. testsuite/css/style/currentcolor.nodes | 1 + testsuite/css/style/inherit.nodes | 1 + testsuite/css/style/label.nodes | 1 + 3 files changed, 3 insertions(+) commit cfa0884165d306e64cca74213c6fbc20ad071c7e Author: Matthias Clasen Date: Sun Jan 3 17:05:16 2016 -0500 Improve formatting of CSS style prints Add a newline after CSS properties, so things don't run into each other. gtk/gtkcssnode.c | 9 +++++++-- gtk/gtkcssstyle.c | 21 ++++++++++++++++++++- gtk/gtkcssstyleprivate.h | 2 +- 3 files changed, 28 insertions(+), 4 deletions(-) commit 12be432df7c40473ea8bfa8e1c738f7dec1433ff Author: Matthias Clasen Date: Sun Jan 3 16:14:43 2016 -0500 Skip GdkX11DeviceManagerCore in default value tests We already skip the XI2 implementation, and the core one needs the same treatment. testsuite/gtk/defaultvalue.c | 1 + 1 file changed, 1 insertion(+) commit e1634d18de6a9a09aa85388035d6d675269d2cfe Author: Matthias Clasen Date: Sun Jan 3 15:41:09 2016 -0500 Update expected output for CSS style tests The format for CSS values changed slightly in one of the previous commits. testsuite/css/style/currentcolor.nodes | 5 ++--- testsuite/css/style/inherit.nodes | 8 ++++---- testsuite/css/style/label.nodes | 8 ++++++-- testsuite/css/style/nth-child.nodes | 8 ++++---- 4 files changed, 16 insertions(+), 13 deletions(-) commit 3c26aef826f9272d3ab00d25ffec3e8000d97a1b Author: Matthias Clasen Date: Sun Jan 3 15:37:40 2016 -0500 Use a custom theme for CSS style tests Use a custom, empty theme and stop importing reset-to-defaults.css. This avoids overwriting initial values, so our initial value filtering works better. testsuite/css/style/Empty.css | 0 testsuite/css/style/Makefile.am | 25 +++++++++++++++++++----- testsuite/css/style/currentcolor.css | 2 -- testsuite/css/style/inherit.css | 2 -- testsuite/css/style/label.css | 2 -- testsuite/css/style/nth-child.css | 2 -- testsuite/css/style/reset-to-defaults.css | 3 --- testsuite/css/style/test-css-style.c | 1 + testsuite/css/style/test-css-style.gresource.xml | 6 ++++++ 9 files changed, 27 insertions(+), 16 deletions(-) commit 2e921691d97c203e172cddd18aead9eb90904770 Author: Matthias Clasen Date: Sun Jan 3 15:34:08 2016 -0500 Redo CSS style printing Drop the custom style printing implementation in gtkcssnode.c and instead reuse the existing gtk_css_style_print function, extending it a bit to suit our needs. Instead of computing values, just recognize initial values by having no CSS section. Also do away with the show-initial flag, and just always filter out initial values. The flag can come back when it is needed. gtk/gtkcssnode.c | 87 ++---------------------------------------------- gtk/gtkcssstyle.c | 32 +++++++++++++----- gtk/gtkcssstyleprivate.h | 4 ++- gtk/gtkstylecontext.c | 4 --- gtk/gtkstylecontext.h | 3 +- 5 files changed, 29 insertions(+), 101 deletions(-) commit d0e648d4f67ae485727c0452921c18f7642b80de Author: Matthias Clasen Date: Sun Jan 3 14:04:52 2016 -0500 Update expected output for node and style tests The previous commit changed the format of the output. testsuite/css/nodes/buttons.nodes | 56 ++++++++--------- testsuite/css/nodes/entries.nodes | 32 +++++----- testsuite/css/nodes/levelbar.nodes | 110 ++++++++++++++++----------------- testsuite/css/nodes/notebook.nodes | 30 ++++----- testsuite/css/nodes/progressbar.nodes | 40 ++++++------ testsuite/css/style/currentcolor.nodes | 8 +-- testsuite/css/style/inherit.nodes | 10 +-- testsuite/css/style/label.nodes | 8 +-- testsuite/css/style/nth-child.nodes | 18 +++--- 9 files changed, 156 insertions(+), 156 deletions(-) commit 0c52eca34cd1edeb51b930f756652e359ed6ee10 Author: Matthias Clasen Date: Sun Jan 3 14:02:00 2016 -0500 Move node printing to GtkCssNodeDeclaration The node declaration has all the information we are printing here (except for visibility). At the same time, redo the format to print the information in selector format, and indicate (in)visibility by enclosing the selector in square brackets. gtk/gtkcssnode.c | 91 ++++---------------------------------- gtk/gtkcssnodedeclaration.c | 50 +++++++++++++++++++++ gtk/gtkcssnodedeclarationprivate.h | 4 ++ 3 files changed, 63 insertions(+), 82 deletions(-) commit 28e185dd1b8b5fcf90993e9d698110328c1d497d Author: Cosimo Cecchi Date: Sun Jan 3 11:33:19 2016 -0800 tests: fix Makefile.am syntax It requires a tab character, or the build will fail. testsuite/css/style/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit dcaffe369f10b2ec45a57ba61fd49b64f9eb4743 Author: Cosimo Cecchi Date: Sun Jan 3 11:25:45 2016 -0800 cssnode: fix a compiler warning gtk/gtkcssnode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 489928cbb482890442b376521ac100247ef97371 Author: Matthias Clasen Date: Sun Jan 3 12:05:57 2016 -0500 Fix the build testsuite/css/nodes/Makefile.am | 37 ++++++++++++++++++++----------------- 1 file changed, 20 insertions(+), 17 deletions(-) commit f7a93c015cc27834810484ab6b69bbc6734a862b Author: Matthias Clasen Date: Sun Jan 3 11:59:15 2016 -0500 Forgotten file I forgot to add this file to source control when the new tests were initially added. testsuite/css/style/Makefile.am | 5 ++++- testsuite/css/style/reset-to-defaults.css | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) commit daa08862ffae16a78dba297cf796fb577b9d9b08 Author: Felix Riemann Date: Sun Jan 3 15:32:38 2016 +0100 shortcuts: Separate gestures in search results Gestures where shown separately from other shortcuts in the search results before. This restores that behaviour. https://bugzilla.gnome.org/show_bug.cgi?id=760097 gtk/gtkshortcutswindow.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit bd4b3091f6e1f900d4a3effcfd93d7c97f46ef1c Author: Felix Riemann Date: Sun Jan 3 15:22:06 2016 +0100 shortcuts: Show icons and subtitles for gestures in search results https://bugzilla.gnome.org/show_bug.cgi?id=760097 gtk/gtkshortcutswindow.c | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) commit 2dd8d1ad5318c7c09fc4a61afca610f6ed6a080e Author: Matthias Clasen Date: Sun Jan 3 10:56:11 2016 -0500 Update expected results of a11y tests All of these now have a harmless extra "panel". testsuite/a11y/about.txt | 4 ++-- testsuite/a11y/menu.txt | 8 ++++++++ testsuite/a11y/menubutton.txt | 8 ++++++++ testsuite/a11y/menubutton2.txt | 34 +++++++++++++++++++++------------- testsuite/a11y/menubutton3.txt | 34 +++++++++++++++++++++------------- testsuite/a11y/menus.txt | 8 ++++++++ testsuite/a11y/scale-drawvalue.txt | 8 ++++++++ testsuite/a11y/tooltips.txt | 8 ++++++++ 8 files changed, 84 insertions(+), 28 deletions(-) commit 1aeaa33e68ac2e93b3664b873dd2533f52c4e7b8 Author: Matthias Clasen Date: Sun Jan 3 10:42:13 2016 -0500 lockbutton: Fix up the template I forgot to clean this up when switching to a stack. gtk/ui/gtklockbutton.ui | 15 --------------- 1 file changed, 15 deletions(-) commit 7a0174157549faadb21bb6705281fe9344024869 Author: Matthias Clasen Date: Sun Jan 3 10:34:40 2016 -0500 Skip GdkX11DeviceManagerCore in notify tests We already skip the XI2 implementation, and the core one needs to the same treatment. testsuite/gtk/notify.c | 1 + 1 file changed, 1 insertion(+) commit 9c39232ab399eb3138fa4924b6072c3d340c215e Author: Matthias Clasen Date: Sun Jan 3 10:33:54 2016 -0500 assistant: Drop unnecessary frame We can just style the sidebar box itself, no need for an extra frame widget. gtk/gtkassistant.c | 4 +--- gtk/ui/gtkassistant.ui | 11 ++--------- 2 files changed, 3 insertions(+), 12 deletions(-) commit adfb76dc7ee8e78e54c343230091b3b01fa11760 Author: Matthias Clasen Date: Sun Jan 3 09:55:30 2016 -0500 lockbutton: Use a stack The previous way of manually juggling the visibility of the labels doesn't work anymore, now that gadgets of invisible widgets don't allocate space anymore. gtk/gtklockbutton.c | 23 ++++++++--------------- gtk/ui/gtklockbutton.ui | 42 +++++++++++++++++++++++------------------- 2 files changed, 31 insertions(+), 34 deletions(-) commit ed5ebc071179efa449a606b07683b6f8a628ac0d Author: Matthias Clasen Date: Mon Dec 28 23:26:50 2015 -0500 Add a css style test for currentColor testsuite/css/style/Makefile.am | 7 ++++--- testsuite/css/style/currentcolor.css | 9 +++++++++ testsuite/css/style/currentcolor.nodes | 7 +++++++ testsuite/css/style/currentcolor.ui | 19 +++++++++++++++++++ 4 files changed, 39 insertions(+), 3 deletions(-) commit 33be60b0ab53b62d53e10a8334c7ad7d22ad6370 Author: Matthias Clasen Date: Mon Dec 28 23:20:57 2015 -0500 Add a css style test for inherit and initial testsuite/css/style/Makefile.am | 1 + testsuite/css/style/inherit.css | 11 +++++++++++ testsuite/css/style/inherit.nodes | 9 +++++++++ testsuite/css/style/inherit.ui | 27 +++++++++++++++++++++++++++ 4 files changed, 48 insertions(+) commit 1ec34ae0854c5f7cf6eac5ed18115d64b5b52e72 Author: Matthias Clasen Date: Mon Dec 28 13:59:10 2015 -0500 Add a css style test for :first/last/only-child testsuite/css/style/Makefile.am | 1 + testsuite/css/style/nth-child.css | 14 +++++++++++ testsuite/css/style/nth-child.nodes | 13 ++++++++++ testsuite/css/style/nth-child.ui | 48 +++++++++++++++++++++++++++++++++++++ 4 files changed, 76 insertions(+) commit 82a571e0ca8e3cd983e475fe31b10b4a776aae3e Author: Matthias Clasen Date: Mon Dec 28 12:39:54 2015 -0500 Add a css style test for font inheritance testsuite/css/style/Makefile.am | 1 + testsuite/css/style/label.css | 5 +++++ testsuite/css/style/label.nodes | 6 ++++++ testsuite/css/style/label.ui | 19 +++++++++++++++++++ 4 files changed, 31 insertions(+) commit 905ab53c71211d0de1d4a028a26b382f8e1e47b6 Author: Matthias Clasen Date: Tue Dec 29 07:44:53 2015 -0500 Add a test framework for CSS styles This uses the same function for dumping CSS nodes and styles as the CSS node test. It can be used to test aspects of inheritance and matching, as well as initial values. No actual tests yet. configure.ac | 1 + testsuite/css/Makefile.am | 2 +- testsuite/css/style/Makefile.am | 55 ++++++ testsuite/css/style/test-css-style.c | 287 +++++++++++++++++++++++++++++ testsuite/css/style/test-css-style.test.in | 3 + 5 files changed, 347 insertions(+), 1 deletion(-) commit 864693e5aa2ff9b752341eaca45d713559a22b65 Author: Matthias Clasen Date: Mon Dec 28 11:00:32 2015 -0500 Add CSS node tests for levelbars testsuite/css/nodes/Makefile.am | 1 + testsuite/css/nodes/levelbar.nodes | 55 +++++++++++++++++++++++++++++++ testsuite/css/nodes/levelbar.ui | 66 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 122 insertions(+) commit 0ce5075748625c627497837228bfd9d013d4b48e Author: Matthias Clasen Date: Mon Dec 28 10:52:20 2015 -0500 Add CSS node test for progressbars testsuite/css/nodes/Makefile.am | 1 + testsuite/css/nodes/progressbar.nodes | 20 ++++++++++++++ testsuite/css/nodes/progressbar.ui | 49 +++++++++++++++++++++++++++++++++++ 3 files changed, 70 insertions(+) commit 5c4efb09e2adf4efb815ffcf26e7772104214fab Author: Matthias Clasen Date: Mon Dec 28 10:35:58 2015 -0500 Add a CSS node test for buttons testsuite/css/nodes/Makefile.am | 5 +- testsuite/css/nodes/buttons.nodes | 28 ++++++++ testsuite/css/nodes/buttons.ui | 147 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 178 insertions(+), 2 deletions(-) commit 78d715af221709025fd319538e2a4e58fe790c4f Author: Matthias Clasen Date: Mon Dec 28 02:00:58 2015 -0500 Add a CSS node test for entries testsuite/css/nodes/Makefile.am | 1 + testsuite/css/nodes/entries.nodes | 16 +++++++++ testsuite/css/nodes/entries.ui | 74 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 91 insertions(+) commit 669ced398436e7068c8b71ef5d9faea9cb148d0c Author: Matthias Clasen Date: Mon Dec 28 02:03:29 2015 -0500 Add a CSS node test for notebooks testsuite/css/nodes/Makefile.am | 1 + testsuite/css/nodes/notebook.nodes | 15 +++++++++++++ testsuite/css/nodes/notebook.ui | 43 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 59 insertions(+) commit d2c1203ef15b9daeb7e653d80ed621e972ebe4b3 Author: Matthias Clasen Date: Mon Dec 28 02:02:57 2015 -0500 Add a test framework for CSS nodes No actual tests yet. configure.ac | 1 + testsuite/css/Makefile.am | 2 +- testsuite/css/nodes/Makefile.am | 55 ++++++ testsuite/css/nodes/test-css-nodes.c | 265 +++++++++++++++++++++++++++++ testsuite/css/nodes/test-css-nodes.test.in | 3 + 5 files changed, 325 insertions(+), 1 deletion(-) commit 68edc47f6a1585c90d8cace2f65c61a2a413b79e Author: Matthias Clasen Date: Mon Dec 28 01:09:54 2015 -0500 Add a function to dump CSS nodes and styles Add a gtk_style_context_to_string function that can serialize a CSS node or tree of nodes, optionally including CSS properties as well. This will be useful in writing tests. docs/reference/gtk/gtk3-sections.txt | 2 + gtk/gtkcssnode.c | 190 ++++++++++++++++++++++++++++++++++- gtk/gtkcssnodeprivate.h | 5 + gtk/gtkstylecontext.c | 50 +++++++++ gtk/gtkstylecontext.h | 11 ++ 5 files changed, 257 insertions(+), 1 deletion(-) commit a6624d803ece178e467230e285cd9d4561b09ca1 Author: Cosimo Cecchi Date: Sun Jan 3 01:02:12 2016 -0800 infobar: remove unneeded gadget It turns out we don't really need to use a separate gadget for the infobar, if all we do is chaining up to the parent GtkBox which already uses a gadget. Just remove all the boilerplate. gtk/gtkinfobar.c | 105 ------------------------------------------------------- 1 file changed, 105 deletions(-) commit ef8a5fc5425445b173ec33035f58ed68d790f137 Author: Cosimo Cecchi Date: Sun Jan 3 00:54:16 2016 -0800 window: remove unused variables gtk/gtkwindow.c | 1 - 1 file changed, 1 deletion(-) commit 424898e071d909d0771713c7456f9460f52d12f9 Author: Cosimo Cecchi Date: Sat Jan 2 17:54:06 2016 -0800 levelbar: consolidate code into single function gtk/gtklevelbar.c | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) commit a6e7e72d53fb1dfb29c3e1c52f42821a1457d8bc Author: Cosimo Cecchi Date: Sat Jan 2 18:03:50 2016 -0800 levelbar: port to use gadgets We now use one gadget for the trough, and one for each block. gtk/gtklevelbar.c | 477 ++++++++++++++----------------- gtk/theme/Adwaita/_common.scss | 12 +- gtk/theme/Adwaita/gtk-contained-dark.css | 13 +- gtk/theme/Adwaita/gtk-contained.css | 13 +- gtk/theme/HighContrast/_common.scss | 19 +- gtk/theme/HighContrast/gtk.css | 14 +- 6 files changed, 254 insertions(+), 294 deletions(-) commit 971f1a9b316ada3ff38f443152a99c3864c1754d Author: Cosimo Cecchi Date: Sat Jan 2 18:03:15 2016 -0800 levelbar: split out a function gtk/gtklevelbar.c | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) commit feb741babf66a4d16daf714037b92529fbe379df Author: Cosimo Cecchi Date: Sat Jan 2 15:28:12 2016 -0800 infobar: port to use a gadget gtk/gtkinfobar.c | 103 +++++++++++++++++++++++++++++++------------------------ 1 file changed, 59 insertions(+), 44 deletions(-) commit f246dc1c851af88c7a95c16412e263be95a2364f Author: Cosimo Cecchi Date: Sat Jan 2 15:09:21 2016 -0800 infobar: trivial code cleanups gtk/gtkinfobar.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) commit d8b6dbd888de8908ffa81d73e00f74ba3143ef66 Author: Cosimo Cecchi Date: Sat Jan 2 14:59:56 2016 -0800 menubar: prefer early return gtk/gtkmenubar.c | 181 ++++++++++++++++++++++++++++--------------------------- 1 file changed, 91 insertions(+), 90 deletions(-) commit 700286c6d8a88d4eb51e418e2675092a7bd232b5 Author: Cosimo Cecchi Date: Fri Jan 1 15:23:27 2016 -0800 menubar: port to use a gadget gtk/gtkmenubar.c | 213 +++++++++++++++++++++++++++++++++---------------------- 1 file changed, 128 insertions(+), 85 deletions(-) commit 96f10c0b722d1878e9b3cf9d8ac976cd99c925d9 Author: Cosimo Cecchi Date: Fri Jan 1 15:19:21 2016 -0800 menubar: use gtk_container_class_handle_border_width() gtk/gtkmenubar.c | 33 +++++++++++++-------------------- 1 file changed, 13 insertions(+), 20 deletions(-) commit 4328a3a24b53bd1f0a86293810c81051ff5a6002 Author: Cosimo Cecchi Date: Wed Dec 30 11:07:26 2015 -0800 HighContrast: remove unused selector There's no header-bar-separator style class. gtk/theme/HighContrast/_common.scss | 1 - gtk/theme/HighContrast/gtk.css | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) commit a9d07b6ec6d51452ed6e14567142240ac06a1e81 Author: Cosimo Cecchi Date: Wed Dec 30 11:06:46 2015 -0800 Adwaita: remove unused selector There's no header-bar-separator style class. gtk/theme/Adwaita/_common.scss | 1 - gtk/theme/Adwaita/gtk-contained-dark.css | 6 ++---- gtk/theme/Adwaita/gtk-contained.css | 6 ++---- 3 files changed, 4 insertions(+), 9 deletions(-) commit 28911c595b3d76c9704fcd251d1288e6226345a8 Author: Cosimo Cecchi Date: Wed Dec 30 10:59:56 2015 -0800 HighContrast: update for separators deprecations HighContrast still has a long way to go, but let's get at least separators working again. gtk/theme/HighContrast/_common.scss | 24 +++++------------------- gtk/theme/HighContrast/gtk.css | 15 ++++----------- 2 files changed, 9 insertions(+), 30 deletions(-) commit 7dacc7836ffc118f3e55b236de2e63a466919234 Author: Cosimo Cecchi Date: Wed Dec 30 10:54:14 2015 -0800 HighContrast: reparse theme For some reason, this got accidentally changed in a previous commit. This is just the output of running parse-sass.sh again. gtk/theme/HighContrast/gtk.css | 596 ++++++++++++++++++++--------------------- 1 file changed, 298 insertions(+), 298 deletions(-) commit 39beebd2cbd060259c79eb8c887c1d8a461573e1 Author: Cosimo Cecchi Date: Wed Dec 30 10:53:27 2015 -0800 win32: remove ineffective selector That style property is deprecated, but the combobox does not have a separator anymore. gtk/theme/win32/gtk-win32-base.css | 7 ------- 1 file changed, 7 deletions(-) commit 908deb1bdc89065b98ddf6bc1ce3e7192d0b672a Author: Cosimo Cecchi Date: Wed Dec 30 10:51:14 2015 -0800 widget: deprecate separator style properties They're not used in GTK anymore. Also remove them from the default theme. gtk/gtkwidget.c | 15 ++++++++++++--- gtk/theme/Adwaita/_common.scss | 10 ---------- gtk/theme/Adwaita/gtk-contained-dark.css | 4 ---- gtk/theme/Adwaita/gtk-contained.css | 4 ---- 4 files changed, 12 insertions(+), 21 deletions(-) commit 64a06adfc05a9dacb542a7925f375b22be141ad0 Author: Cosimo Cecchi Date: Wed Dec 30 10:36:28 2015 -0800 treeview: don't use wide-separators/separator-height Those style properties are on their way out; instead, use min-height with the separator style class to obtain the height. gtk/gtktreeview.c | 40 ++++++++++++++++++++++++-------- gtk/theme/Adwaita/_common.scss | 7 ++++-- gtk/theme/Adwaita/gtk-contained-dark.css | 6 +++-- gtk/theme/Adwaita/gtk-contained.css | 6 +++-- 4 files changed, 43 insertions(+), 16 deletions(-) commit 2eb7e6a85a1a7959c0b26501d8eac5e93ee7eb95 Author: Cosimo Cecchi Date: Tue Dec 29 18:02:21 2015 -0800 treeview: prefer positive polarity in if block gtk/gtktreeview.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) commit 1f690ddbfa62bd3b81a936beda1fd593fe2b0035 Author: Cosimo Cecchi Date: Tue Dec 29 17:44:01 2015 -0800 separator: don't read wide-separators style property The notion of a separator being wide or not does not make sense when a theme can set any CSS property on it, and separator-width/separator-height are on their way out for min-width/min-height. gtk/gtkseparator.c | 38 ++------------------------------------ 1 file changed, 2 insertions(+), 36 deletions(-) commit 0740f23c77c499810c716f61591818371fa4211e Author: Cosimo Cecchi Date: Tue Dec 29 17:40:30 2015 -0800 menuitem: don't read wide-separators or separator-height Separators inside menus are working completely through CSS since GtkMenuItem has been ported to use a gadget. Remove this unused code from here. gtk/gtkmenuitem.c | 26 -------------------------- 1 file changed, 26 deletions(-) commit eff8865ab1332324bbb486b57e60ebd957e5a661 Author: Cosimo Cecchi Date: Tue Dec 29 12:34:16 2015 -0800 separatortoolitem: don't use custom sizing/rendering Instead, just rely on the CSS gadget; we can stop using wide-separators, separator-height and separator-width, and at the same time deprecate the space-size style property of GtkToolbar. gtk/gtkseparatortoolitem.c | 92 ++-------------------------- gtk/gtktoolbar.c | 102 +++---------------------------- gtk/gtktoolbarprivate.h | 5 -- gtk/theme/Adwaita/_common.scss | 19 ++++-- gtk/theme/Adwaita/gtk-contained-dark.css | 13 ++-- gtk/theme/Adwaita/gtk-contained.css | 13 ++-- 6 files changed, 48 insertions(+), 196 deletions(-) commit 55e80f9379c568e01c66bc4d7e5696f467d66d78 Author: Cosimo Cecchi Date: Tue Dec 29 12:14:02 2015 -0800 separatortoolitem: trivial code cleanups gtk/gtkseparatortoolitem.c | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) commit ea25985b6753cde9e97b6ac3c6b8357523937a4d Author: Cosimo Cecchi Date: Tue Dec 29 17:33:08 2015 -0800 toolbar: deprecate GtkToolbarSpaceStyle and space-style style property This is completely unused already. gtk/gtktoolbar.c | 10 +++++++++- gtk/gtktoolbar.h | 2 ++ 2 files changed, 11 insertions(+), 1 deletion(-) commit 48596090af9c903cb752755419dcf041228b1e2f Author: Cosimo Cecchi Date: Tue Dec 29 16:47:04 2015 -0800 toolbar: port to use a gadget gtk/gtktoolbar.c | 268 ++++++++++++++++++++++++++++++++----------------------- 1 file changed, 154 insertions(+), 114 deletions(-) commit d64304997f36dabe1e6818050b6db41a821e5e5c Author: Cosimo Cecchi Date: Mon Dec 28 12:51:25 2015 -0800 toolbar: use gtk_container_handle_border_width() gtk/gtktoolbar.c | 75 ++++++++++++++++++++++++-------------------------------- 1 file changed, 32 insertions(+), 43 deletions(-) commit 10c222649eb086d90de9b69ebfe743165c775b78 Author: Cosimo Cecchi Date: Mon Dec 28 12:37:56 2015 -0800 toolbar: trivial code cleanup gtk/gtktoolbar.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) commit 6df8bc2e1a4f7511f4f9a468b321d618ad82cb18 Author: Felix Riemann Date: Sat Jan 2 21:28:51 2016 +0100 GtkBindings: Fix CSS key in example docs gtk-key-bindings was renamed to -gtk-key-bindings in d267b8e0. https://bugzilla.gnome.org/show_bug.cgi?id=760082 gtk/gtkbindings.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit d83e9539c56e4b90a7113150b98cc5cf104626e8 Author: Matthias Clasen Date: Sun Jan 3 01:25:07 2016 -0500 Fix stylecontext tests to work Some of the tests don't work anymore because they test features of saved style contexts that have changed, and some now trigger deprecation warnings. testsuite/gtk/stylecontext.c | 84 ++++---------------------------------------- 1 file changed, 6 insertions(+), 78 deletions(-) commit 6da57d61d5cf90b78de5bf7fc5290c92441f0f23 Author: Matthias Clasen Date: Sun Jan 3 01:23:35 2016 -0500 Skip GdkX11DeviceManagerCore in finalize tets We already skip the XI2 implementation, and the core one needs to the same treatment. testsuite/gtk/objects-finalize.c | 1 + 1 file changed, 1 insertion(+) commit 6d77b9f3162d9f3d9ea214b765b6f937e4439237 Author: Christoph Reiter Date: Fri Jan 1 12:57:46 2016 +0100 gtkwindow: fix first allocation size 67ab00e01ec06d7b removed the fake configure code in gtk_window_show() and replaced it with a simple gtk_widget_realize(). The initial allocation code in realize() only allocates the natural size or the last requested size which now no longer is set, resulting in a too small first allocation. This builds a configure request to compute the allocation size instead which includes default size, CSD etc.. This problem could be seen in case of a GtkPaned in a GtkWindow with a default size set and the pane position set as well. The first allocation would be the natural size of the GtkPaned which would clamp the pane position if too larg. Only the second allocation would fill the parent window using the now wrong pane position. https://bugzilla.gnome.org/show_bug.cgi?id=759705 gtk/gtkwindow.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) commit e93d64e4c3cdc71972bc92106763f29bfdc0abbf Author: Matthias Clasen Date: Sat Jan 2 21:08:50 2016 -0500 Revert "Revert "window: Remove suspicious branch"" This reverts commit 2438a06d54636e5074c29bd696e3e81e90288b8d. See https://bugzilla.gnome.org/show_bug.cgi?id=759705 gtk/gtkwindow.c | 55 +------------------------------------------------------ 1 file changed, 1 insertion(+), 54 deletions(-) commit 6322b1f647552d9da0d3524731b56b7a1a23c060 Author: Cosimo Cecchi Date: Sat Jan 2 18:14:47 2016 -0800 levelbar: fix a crash We should not try to access a block with an index that exceeds the number of blocks in the widget. gtk/gtklevelbar.c | 2 ++ 1 file changed, 2 insertions(+) commit 8109520d4efda502b0141fa0e8482679fbb12fa7 Author: Matthias Clasen Date: Sat Jan 2 20:53:54 2016 -0500 separator toolitem: Respect ::draw property This was lost when I converted the widget to use a gadget. https://bugzilla.gnome.org/show_bug.cgi?id=760018 gtk/gtkseparatortoolitem.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 040114689628b99811fe460b9fb63d06546e2cd1 Author: Cosimo Cecchi Date: Fri Jan 1 14:50:43 2016 -0800 spinbutton: fix a typo gtk/gtkspinbutton.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 664bbe12ba0acc0848ac56e31f09acc3b2a86cb0 Author: Cosimo Cecchi Date: Sat Jan 2 15:28:35 2016 -0800 menuitem: move chaining up to draw inside gadget This is more consistent with what other widgets do. gtk/gtkmenuitem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit d3bf07594ef4ef94fd90750ed472654b5d4cb86c Author: Marek Černocký Date: Sat Jan 2 21:13:40 2016 +0100 Updated Czech translation po/cs.po | 1043 +++++++++++++++++++++++++++++++++----------------------------- 1 file changed, 555 insertions(+), 488 deletions(-) commit 2b2a5386293cee011e29408fedae3f9dc5129ecb Author: Timm Bäder Date: Sat Jan 2 15:40:50 2016 +0100 testframe: Pass correct state to GtkStyleContext API tests/testframe.c | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) commit 3758762119827a62c93bd071dd6a7e63723d5e10 Author: Timm Bäder Date: Wed Dec 30 15:45:07 2015 +0100 GtkImage: Simplify _set_from_icon_name We don't need to strdup icon_name since that will happen in _gtk_icon_helper_set_icon_name anyway. gtk/gtkimage.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) commit 9704f46b3883fb9618e40dd8631e1174fa4f18bd Author: Andika Triwidada Date: Sat Jan 2 12:27:16 2016 +0000 Updated Indonesian translation (cherry picked from commit 45b3c553a93ed6a9e3eea26e7c8337dcd9fa77b6) po-properties/id.po | 2423 +++++++++++++++++++++++++-------------------------- 1 file changed, 1211 insertions(+), 1212 deletions(-) commit 0a1b746bf8ffcfd051cc2687b44fb0d15ddefe25 Author: Andika Triwidada Date: Sat Jan 2 12:22:34 2016 +0000 Updated Indonesian translation (cherry picked from commit 1aa5f9278423f370d7490d83e8582dae087e2f6a) po/id.po | 872 +++++++++++++++++++++++++++------------------------------------ 1 file changed, 375 insertions(+), 497 deletions(-) commit 420993af0eb04ec08ab6262ddf32d31d094da475 Author: Rafael Fontenelle Date: Sat Jan 2 06:48:23 2016 +0000 Updated Brazilian Portuguese translation (cherry picked from commit e96c689aa1e60e561f4db67725d53fccc44234ec) po-properties/pt_BR.po | 1246 ++++++++++++++++++++++++------------------------ 1 file changed, 624 insertions(+), 622 deletions(-) commit 558fb1ecddc9510eaff2fa0b002ee759ae92ea49 Author: Christoph Reiter Date: Thu Dec 17 18:02:13 2015 +0100 gtkdnd-quartz: fix gtk_drag_begin_internal gtk_drag_begin_internal was changed to take a GtkImageDefinition instead of a GtkIconHelper. This adjusts the quartz variant accordingly. https://bugzilla.gnome.org/show_bug.cgi?id=759607 gtk/gtkdnd-quartz.c | 57 +++++++++++++++++++++++++---------------------------- 1 file changed, 27 insertions(+), 30 deletions(-) commit a90926c7f02390ac7b671bb7ba23fa4cd38d4fdd Author: Alberts Muktupāvels Date: Mon Dec 28 20:46:23 2015 +0200 gtkheaderbar: update window buttons also on realize After bb34db6 _gtk_header_bar_update_window_buttons function is called before application menu is set. This caused regression - app menu button is initially hidden. https://bugzilla.gnome.org/show_bug.cgi?id=756618 gtk/gtkheaderbar.c | 1 + 1 file changed, 1 insertion(+) commit 788de42ffa78b466e8731efdbf74cfb800a47e6c Author: Yosef Or Boczko Date: Thu Dec 31 19:39:41 2015 +0200 Updated Hebrew translation po/he.po | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 7c55841110bc83c9ee86933d28b5564334b9e89d Author: Yosef Or Boczko Date: Thu Dec 31 19:38:23 2015 +0200 Updated Hebrew translation po/he.po | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 962ff554dc296e20d7b311d7b11cb09c01f95087 Author: Yosef Or Boczko Date: Thu Dec 31 18:49:30 2015 +0200 Updated Hebrew translation po-properties/he.po | 2201 ++++++++++++++++++++++++++------------------------- 1 file changed, 1129 insertions(+), 1072 deletions(-) commit 71c9e391274e02dcb6fc09d0e207d4451050f9b5 Author: Yosef Or Boczko Date: Thu Dec 31 18:47:57 2015 +0200 Updated Hebrew translation po/he.po | 3991 ++++++++++++++++++++++++++++++-------------------------------- 1 file changed, 1902 insertions(+), 2089 deletions(-) commit a8ae549ed08832b37587d6e914affeed60d4966f Author: Руслан Ижбулатов Date: Wed Dec 30 18:05:36 2015 +0000 Fix include path for gtkiconfactoryprivate.h gtk/deprecated/gtkstock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 91bb91dbb9e10691a9f4e3e8f0b1b4dabcd7ee27 Author: Руслан Ижбулатов Date: Wed Dec 30 18:05:05 2015 +0000 Fix to compile for C libraries with no flockfile Also use MS variant of flockfile, if available (requires MSVCRT compatible with MSVCR90 or newer). configure.ac | 2 +- gtk/gtkimmodule.c | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) commit f357ef5610ff94af14925ac837b31b63a93f01aa Author: Cosimo Cecchi Date: Wed Dec 30 10:44:12 2015 -0800 scrolledwindow: add missing deprecation flag gtk/gtkscrolledwindow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 354eb5678b13d101bd097e038245be1a7a4aed9c Author: Cosimo Cecchi Date: Tue Dec 29 18:31:10 2015 -0800 menuitem: fix a crash when reserve_indicator is TRUE In that case, code expects an arrow gadget to be present but we're not creating it in every occurrence. Fix it by ensuring there will be an arrow gadget when reserve_indicator is TRUE. gtk/gtkmenuitem.c | 37 +++++++++++++++++++++++++++++-------- 1 file changed, 29 insertions(+), 8 deletions(-) commit 3740c7f09265e952e92566045c69edec50ad9b1a Author: Cosimo Cecchi Date: Tue Dec 29 16:33:34 2015 -0800 toolitem: fix a copy/paste typo gtk/gtktoolitem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 79c045ed8080e0e91962821593e6d189f7070ca7 Author: Cosimo Cecchi Date: Wed Dec 23 09:54:42 2015 -0800 scrolledwindow: port to use a gadget gtk/gtkscrolledwindow.c | 2007 ++++++++++++++++++++++++----------------------- 1 file changed, 1007 insertions(+), 1000 deletions(-) commit 7c0f0e882ae60911e39aaf7b42fb2d94108f3474 Author: Cosimo Cecchi Date: Tue Dec 22 20:45:33 2015 -0800 scrolledwindow: deprecate scrollbars-within-bevel style property These days all the themes set it to TRUE, and it's not clear what happens with overlay scrollbars... gtk/gtkscrolledwindow.c | 92 +++----------------------------- gtk/theme/Adwaita/_common.scss | 1 - gtk/theme/Adwaita/gtk-contained-dark.css | 1 - gtk/theme/Adwaita/gtk-contained.css | 1 - gtk/theme/HighContrast/_common.scss | 1 - gtk/theme/HighContrast/gtk.css | 1 - gtk/theme/win32/gtk-win32-base.css | 1 - 7 files changed, 8 insertions(+), 90 deletions(-) commit 09835b4c3987d67aafe7ae4ded039beb175121c9 Author: Cosimo Cecchi Date: Mon Dec 28 12:21:27 2015 -0800 viewport: don't render a background over the bin window GtkViewport currently tries to draw a background over the bin window. The feature is a bit broken at the moment, as it does not take into account padding that might have been set on the GtkViewport, but in general it does not seem very useful, and goes somewhat against the CSS box model where every widget/gadget is responsible to draw its own background. For a fix, we could either have the viewport gain a "bin" gadget, or we could stop drawing the background. As it isn't clear that there are any users of this feature, stop drawing the background; a client can achieve the same effect by drawing the background on the widget inside the viewport itself. gtk/gtkviewport.c | 11 ----------- 1 file changed, 11 deletions(-) commit 5daede51f77a6afbfbd636bb7f45a2d1d9c93bf1 Author: Cosimo Cecchi Date: Tue Dec 22 17:55:18 2015 -0800 viewport: port to use a gadget This will get us margin support, among other things, and simplifies the code. gtk/gtkviewport.c | 593 ++++++++++++++++++++++++++---------------------------- 1 file changed, 285 insertions(+), 308 deletions(-) commit 71d7b10dad461c1a1b2cc7b69408bee99c50c3c9 Author: Cosimo Cecchi Date: Tue Dec 22 16:26:28 2015 -0800 viewport: trivial code cleanup gtk/gtkviewport.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) commit a37129fd6062df7ebf38a428194f1c3993532038 Author: Cosimo Cecchi Date: Tue Dec 22 15:10:23 2015 -0800 viewport: use gtk_container_class_handle_border_width() No need to do this manually. gtk/gtkviewport.c | 31 ++++++++++++------------------- 1 file changed, 12 insertions(+), 19 deletions(-) commit acbff854029cc5b308c92024990abeb81355c360 Author: Benjamin Otte Date: Wed Dec 23 01:50:20 2015 +0100 gadget: Handle visibility As GtkCssNode has the visibility concept, it makes sense to mirror it in gadgets. Do what visibility does in widgets: Hidden gadgets can't be drawn or allocated and request a 0x0 size. Note that just like widgets, gadget visibility must not be changed in size request, allocate or draw handlers. GtkWidget::child-visible has no equivalent yet, code will have to emulate that manually. gtk/gtkcssgadget.c | 52 +++++++++++++++++++++++++++++++++++++++++++++++ gtk/gtkcssgadgetprivate.h | 4 ++++ 2 files changed, 56 insertions(+) commit 9950764f1224c61ad482c9ccfb1bf7e7667b10f7 Author: Matthias Clasen Date: Sat May 16 18:54:35 2015 -0400 Drop deprecated pango-utils api Copy the few parsing functions we need. gtk/gtkimmodule.c | 179 +++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 158 insertions(+), 21 deletions(-) commit 1e1af62beed4f89722a6c88a23a344a6e0828244 Author: Ben Iofel Date: Sun Dec 27 19:13:21 2015 -0800 Raleigh: Don't use deprecated pseudo classes gtk/theme/Raleigh/gtk-default.css | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) commit 31e97b33e123f776dcec4a6d51ec4522f9cb3684 Author: Matthias Clasen Date: Mon Dec 28 23:15:53 2015 -0500 Set ID on css node right away Previously, the ID was only set on the CSS node as a side-effect of calling gtk_widget_get_style_context. This was showing up in CSS style tests as nodes lacking their IDs. gtk/gtkwidget.c | 2 ++ 1 file changed, 2 insertions(+) commit 0042f9b41484ea223ab24b94ffc529c4c5ecc231 Author: Matthias Clasen Date: Mon Dec 28 22:36:29 2015 -0500 Fix a comment gtk/gtkcssvalue.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit e71f7d713e652ed0db4828b9c3e841766073922c Author: Matthias Clasen Date: Mon Dec 28 14:41:33 2015 -0500 Add a transfer annotation This was confusing me momentarily, so add an explicit annotation. gtk/gtkcssstyleproperty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 9ae32adf3c3cef23401dda9e8a0f737ed9f87ac2 Author: Mario Blättermann Date: Mon Dec 28 21:16:11 2015 +0000 Updated German translation po/de.po | 1845 ++++++++++++++++++++++++++++---------------------------------- 1 file changed, 843 insertions(+), 1002 deletions(-) commit ba1636be87b9f5d567d8ca5dbd9ae4c7c2476a64 Author: Matthias Clasen Date: Mon Dec 28 10:27:08 2015 -0500 statusicon: Avoid criticals The code handles the possibility of pixbuf being NULL, but after b411c318321fd4de556926119cbc6e3ba14f073a we must be prepared for surface already being NULL. Pointed out by Albert Muktupāvels, https://bugzilla.gnome.org/show_bug.cgi?id=759917 gtk/deprecated/gtkstatusicon.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) commit e8ba05839665f9cfa87a96f5b2285ed8c783e830 Author: Matthias Clasen Date: Mon Dec 28 10:24:02 2015 -0500 checkbutton: Update state initially Without this, the check node starts out without the :dir(ltr) state, at least. gtk/gtkcheckbutton.c | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) commit eb09bee492d7041dbafdc7376c520b8197d30096 Author: Matthias Clasen Date: Sun Dec 27 18:37:19 2015 -0500 css: Deprecate :sorted pseudo class This was used with regions in GtkTreeView, and is not used anymore, so deprecate it. gtk/gtkcssselector.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) commit 2b27096fc37bf2eea30cfa28a8453d9ff08f1460 Author: Matthias Clasen Date: Sun Dec 27 17:31:27 2015 -0500 Fix outline-radius css parser test The outline-radius properties all got a -gtk prefix. testsuite/css/parser/outline-radius.css | 72 ++++++++++++++--------------- testsuite/css/parser/outline-radius.ref.css | 72 ++++++++++++++--------------- 2 files changed, 72 insertions(+), 72 deletions(-) commit ab182126dfb0917a163a70def24be6f7b7f75046 Author: Matthias Clasen Date: Sun Dec 27 17:23:40 2015 -0500 Fix the pseudo-classes-known css test The test needs to be updated for the renamed :dnd pseudo class. We also need to add a .errors file for the deprecation errors that we are now producing. testsuite/css/parser/Makefile.am | 1 + testsuite/css/parser/pseudo-classes-known.css | 2 +- testsuite/css/parser/pseudo-classes-known.errors | 4 ++++ testsuite/css/parser/pseudo-classes-known.ref.css | 2 +- 4 files changed, 7 insertions(+), 2 deletions(-) commit f3069d7e9465ada88033ebbeee7f91276a076d61 Author: Matthias Clasen Date: Sun Dec 27 17:24:25 2015 -0500 css: Redo the pseudo class deprecation warnings Putting the deprecated class behind the official variant does not work for the case of :focus and :focused - we were matching :focus and leave a dangling 'ed'. So, put the deprecated classes before the official variant, and explicitly mark them as deprecated. gtk/gtkcssselector.c | 47 ++++++++++++++++++++++++----------------------- 1 file changed, 24 insertions(+), 23 deletions(-) commit c4ca671a9ee9f230837476e539ba7c737b3fcfb9 Author: Matthias Clasen Date: Sun Dec 27 17:21:50 2015 -0500 test-css-parser: Add a way to generate output Use test-css-parser --generate foo.css to see the parser output on stdout. This makes it more convenient to add new css files to the testsuite. testsuite/css/parser/test-css-parser.c | 36 +++++++++++++++++++++++++++------- 1 file changed, 29 insertions(+), 7 deletions(-) commit 8bfbb2c103907e6b608969aa9002199769cc95a8 Author: Matthias Clasen Date: Sat Dec 26 21:41:59 2015 -0500 Cosmetic change gtk/gtkwindow.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 80a91722e5e0a1916f50131fd578d15cbfec4698 Author: Matthias Clasen Date: Sat Dec 26 21:40:19 2015 -0500 inspector: Don't leak weak references These come back to bite us when the inspector is no longer around at the end of the program. https://bugzilla.gnome.org/show_bug.cgi?id=759768 gtk/inspector/object-tree.c | 39 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) commit 787f600d3350b311fa74198b5afc0df5c5a665fa Author: Matthias Clasen Date: Sat Dec 26 20:12:04 2015 -0500 inspector: Remove some dead code Since commit bffeae6203ffe5ea91988d4439571568abc95ab7, the tree path is not used for anything useful anymore, so do away with it entirely. gtk/inspector/object-tree.c | 4 ---- 1 file changed, 4 deletions(-) commit f669ccca66e8a59cbdcaeeff58a15e6c9255d843 Author: Matthias Clasen Date: Sat Dec 26 16:04:02 2015 -0500 docs: Add missing value syntax for border-image docs/reference/gtk/css.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 1f154f576afc30e74da3990e0b6965a1613f9d02 Author: Руслан Ижбулатов Date: Sun Dec 27 02:02:19 2015 +0000 Fix a surface leak Was introduced as part of b79a187d47ee5c45952fab60c141fcaed7e05ef6. Results in memory leaks (and GDI objects leaks on W32). gtk/gtkiconhelper.c | 3 +++ 1 file changed, 3 insertions(+) commit 5404e124b64d879b11931235c0a3874f2d98dc09 Author: Carlos Soriano Date: Sat Dec 26 20:52:53 2015 +0100 gtkframe: format fix gtk/gtkframe.c | 2 -- 1 file changed, 2 deletions(-) commit 79b6d4898339a38ecb67696a110a5b0374521291 Author: Carlos Soriano Date: Sat Dec 26 20:52:31 2015 +0100 gtkframe: remove unused variable And fix the compiler warning gtk/gtkframe.c | 1 - 1 file changed, 1 deletion(-) commit 26d8688cb4992bed6c17213d8832f3137fa24c22 Author: Matthias Clasen Date: Thu Dec 24 18:10:04 2015 -0500 Redo the CSS docs Split the CSS docs off from the GtkCssProvider docs and give them their own chapter. Among other things, this commit introduces more or less complete definitions of the syntax for the supported selectors, a complete list of all supported properties, and definitions for their values. This includes documentation for GTK+-specific properties such as -gtk-icon-source. docs/reference/gtk/css.xml | 2196 ++++++++++++++++++++++++++++++++++++++ docs/reference/gtk/gtk-docs.sgml | 2 +- gtk/gtkcssprovider.c | 1095 +------------------ 3 files changed, 2212 insertions(+), 1081 deletions(-) commit b3dbf3f41c37659f430d36b8a1bfbb8aa92f6607 Author: Matthias Clasen Date: Fri Dec 25 22:24:58 2015 -0500 Drop the :dnd syntax altogether This was only introduced a few weeks ago. We don't need to keep this around, now that we support the proper CSS syntax. gtk/gtkcssselector.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) commit 39b4efb24ec0782b6d2ab0cb625b39238c9bc91d Author: Matthias Clasen Date: Thu Dec 24 18:43:03 2015 -0500 Adwaita: Don't use deprecated pseudo classes gtk/theme/Adwaita/_common.scss | 218 ++++---- gtk/theme/Adwaita/gtk-contained-dark.css | 842 ++++++++++++++-------------- gtk/theme/Adwaita/gtk-contained.css | 922 +++++++++++++++---------------- 3 files changed, 991 insertions(+), 991 deletions(-) commit c998fae5ac68745660e6b984f66c175ff0468d30 Author: Matthias Clasen Date: Thu Dec 24 18:08:20 2015 -0500 Add deprecation warnings for pseudo states Emit a deprecation error in the cases where we have a CSS name for a custom pseudo class. gtk/gtkcssselector.c | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) commit 158dbbc88f2c2735c417d27bbc96dbecd7a67656 Author: Matthias Clasen Date: Thu Dec 24 18:04:15 2015 -0500 Use CSS syntax for drop highlighting I hadn't noticed the :drop() pseudo state in the CSS4 Selectors spec when I added this a while ago. This commit renames GTK_STATE_FLAG_DND to GTK_STATE_FLAG_DROP_ACTIVE and adds :drop(active) as equivalent to the :dnd pseudo state. gtk/gtkcssselector.c | 4 +++- gtk/gtkdnd.c | 4 ++-- gtk/gtkenums.h | 4 ++-- 3 files changed, 7 insertions(+), 5 deletions(-) commit b3c1454dcc6b1f916390db55dcc9673027b79659 Author: Matthias Clasen Date: Fri Dec 25 22:22:51 2015 -0500 Add docs for GtkCssSection gtk/gtkcsssection.h | 6 ++++++ 1 file changed, 6 insertions(+) commit 9290aa7c46fcfd2dc966d7dee0f8ca7dece06b60 Author: Carlos Garnacho Date: Fri Dec 25 14:23:20 2015 +0100 GdkSeat: Use g_intern_static_string() for signal names https://bugzilla.gnome.org/show_bug.cgi?id=759857 gdk/gdkseat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 9f06474bccb88f9f150d66fd5cafec68689978af Author: Marek Černocký Date: Fri Dec 25 10:50:39 2015 +0100 Updated Czech translation po-properties/cs.po | 3101 ++++++++++++++++++++++++++------------------------- 1 file changed, 1606 insertions(+), 1495 deletions(-) commit 81da0b86f362473498509c546edd6eab0939c0c6 Author: Lapo Calamandrei Date: Thu Dec 24 00:02:12 2015 +0100 Adwaita: fix notebook close button gtk/theme/Adwaita/_common.scss | 7 +++---- gtk/theme/Adwaita/gtk-contained-dark.css | 16 +++++++--------- gtk/theme/Adwaita/gtk-contained.css | 16 +++++++--------- 3 files changed, 17 insertions(+), 22 deletions(-) commit 157276b4554caa834ae154f0fcf6f2983a746535 Author: Lapo Calamandrei Date: Wed Dec 23 20:35:06 2015 +0100 Adwaita: use min-height/width for entry and button sizing gtk/theme/Adwaita/_common.scss | 35 +++++++++++++++---------- gtk/theme/Adwaita/gtk-contained-dark.css | 44 ++++++++++++++++---------------- gtk/theme/Adwaita/gtk-contained.css | 44 ++++++++++++++++---------------- 3 files changed, 66 insertions(+), 57 deletions(-) commit 08f928a4ea78fc256b5cc50582723d200c9aa632 Author: Lapo Calamandrei Date: Wed Dec 23 18:57:04 2015 +0100 Adwata: fix switch slider border clash gtk/theme/Adwaita/_common.scss | 1 + gtk/theme/Adwaita/gtk-contained-dark.css | 1 + gtk/theme/Adwaita/gtk-contained.css | 1 + 3 files changed, 3 insertions(+) commit e20826fe033b0e512c784b83d2236de502ad8430 Author: Florian Müllner Date: Wed Dec 23 01:51:30 2015 +0100 label: Deny drag gesture when not selectable We don't actually do anything when the label is not selectable except for consuming the event, which breaks for instance titlebar drags with labels that contain links. Simply deny the gesture in that case to allow the event to bubble up normally. https://bugzilla.gnome.org/show_bug.cgi?id=759798 gtk/gtklabel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit c0bc0a9ac2cee05ef12ecc41b71debecdded8602 Author: Chun-wei Fan Date: Wed Dec 23 18:58:42 2015 +0800 gtkcssnumbervalue.c: Include fallback-c89.c to fix build ... on older Visual Studio versions, where isinf() is not available, and copy the isinf() implementation from gdk/fallback-c89.c to gtk/fallback-c89.c. gtk/fallback-c89.c | 12 ++++++++++++ gtk/gtkcssnumbervalue.c | 4 ++-- 2 files changed, 14 insertions(+), 2 deletions(-) commit d0d8671c02dad52b54867c9ed92f47e1cba17df1 Author: Matthias Clasen Date: Wed Dec 23 01:56:07 2015 -0500 Forgotten files testsuite/css/parser/transition-duration.css | 27 ++++++++++++++++++++++++ testsuite/css/parser/transition-duration.ref.css | 27 ++++++++++++++++++++++++ 2 files changed, 54 insertions(+) commit b6d287aab5606f6cd40f871d16e73fcb0558b55c Author: Matthias Clasen Date: Tue Dec 22 23:46:59 2015 -0500 widget: Be safe against windows losing their frame clock gdk_widget_get_frame_clock can return NULL. In particular, this can happen when the drag window is destroyed at the end of a DND operation. Handle this gracefully when it happens. gtk/gtkwidget.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) commit 8ffa8b3a495ae9fa34eb2139dec066167a8f8daf Author: Alberts Muktupāvels Date: Wed Dec 23 05:30:11 2015 +0200 gtksettings: notify after property reset gtk/gtksettings.c | 1 + 1 file changed, 1 insertion(+) commit ef71eabfc558f90a98c5a959c29e3e5b01e2c3d2 Author: Matthias Clasen Date: Tue Dec 22 21:33:08 2015 -0500 Add parser tests for animation properties This adds tests for animation-name, animation-duration, animation-timing-function, animation-iteration-count, animation-direction, animation-play-state, animation-delay and animation-fill-mode. testsuite/css/parser/Makefile.am | 16 ++++++++++ testsuite/css/parser/animation-delay.css | 23 ++++++++++++++ testsuite/css/parser/animation-delay.ref.css | 23 ++++++++++++++ testsuite/css/parser/animation-direction.css | 19 ++++++++++++ testsuite/css/parser/animation-direction.ref.css | 19 ++++++++++++ testsuite/css/parser/animation-duration.css | 23 ++++++++++++++ testsuite/css/parser/animation-duration.ref.css | 23 ++++++++++++++ testsuite/css/parser/animation-fill-mode.css | 19 ++++++++++++ testsuite/css/parser/animation-fill-mode.ref.css | 19 ++++++++++++ testsuite/css/parser/animation-iteration-count.css | 27 +++++++++++++++++ .../css/parser/animation-iteration-count.ref.css | 27 +++++++++++++++++ testsuite/css/parser/animation-name.css | 23 ++++++++++++++ testsuite/css/parser/animation-name.ref.css | 23 ++++++++++++++ testsuite/css/parser/animation-play-state.css | 19 ++++++++++++ testsuite/css/parser/animation-play-state.ref.css | 19 ++++++++++++ testsuite/css/parser/animation-timing-function.css | 35 ++++++++++++++++++++++ .../css/parser/animation-timing-function.ref.css | 35 ++++++++++++++++++++++ 17 files changed, 392 insertions(+) commit 8f44383253125481c18e9a06b1a6a60b3c4cd4cc Author: Matthias Clasen Date: Mon Dec 21 23:28:48 2015 -0500 Add a parser tests for transition properties This adds tests for transition-property, transition-delay and transition-timing-function. testsuite/css/parser/Makefile.am | 12 ++++++++ testsuite/css/parser/transition-delay.css | 27 +++++++++++++++++ testsuite/css/parser/transition-delay.ref.css | 27 +++++++++++++++++ testsuite/css/parser/transition-property.css | 23 ++++++++++++++ testsuite/css/parser/transition-property.ref.css | 23 ++++++++++++++ .../css/parser/transition-timing-function.css | 35 ++++++++++++++++++++++ .../css/parser/transition-timing-function.ref.css | 35 ++++++++++++++++++++++ 7 files changed, 182 insertions(+) commit 2b6ab1b8bd0739d21ac60be4bf919e1c354f3510 Author: Matthias Clasen Date: Mon Dec 21 23:23:05 2015 -0500 Add parser tests for min-width and min-height testsuite/css/parser/min-height.css | 19 +++++++++++++++++++ testsuite/css/parser/min-height.ref.css | 19 +++++++++++++++++++ testsuite/css/parser/min-width.css | 19 +++++++++++++++++++ testsuite/css/parser/min-width.ref.css | 19 +++++++++++++++++++ 4 files changed, 76 insertions(+) commit a0487f0516babb12a8e20caddca4473e151b0bc4 Author: Matthias Clasen Date: Mon Dec 21 22:14:21 2015 -0500 Add parser tests for border-image properties This adds tests for border-image-source, border-image-repeat, border-image-slice and border-image-width. testsuite/css/parser/Makefile.am | 8 +++ testsuite/css/parser/border-image-repeat.css | 39 +++++++++++++ testsuite/css/parser/border-image-repeat.ref.css | 39 +++++++++++++ testsuite/css/parser/border-image-slice.css | 52 +++++++++++++++++ testsuite/css/parser/border-image-slice.ref.css | 51 +++++++++++++++++ testsuite/css/parser/border-image-source.css | 19 +++++++ testsuite/css/parser/border-image-source.ref.css | 19 +++++++ testsuite/css/parser/border-image-width.css | 71 ++++++++++++++++++++++++ testsuite/css/parser/border-image-width.ref.css | 71 ++++++++++++++++++++++++ 9 files changed, 369 insertions(+) commit d92111256f818b1d2af95916a3cfe4bde16865ba Author: Matthias Clasen Date: Tue Dec 22 21:58:31 2015 -0500 fix printing of numbers We should be printing infinite, not inf. gtk/gtkcssnumbervalue.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) commit 6b497bcf8135541f4ec61e6e72708839dbd3c251 Author: Matthias Clasen Date: Tue Dec 22 21:19:11 2015 -0500 Trivial changes gtk/gtkcssshorthandpropertyimpl.c | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) commit efb8e5bd434d5bf0fb77867510a5674ee983838c Author: Cosimo Cecchi Date: Tue Dec 22 15:36:00 2015 -0800 menuitem: don't use content allocation to resize the GdkWindow This is a fallout from the gadget conversion. gtk/gtkmenuitem.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) commit e9aea98969224513a6a900e9601105b48e1620d5 Author: Matthias Clasen Date: Tue Dec 22 16:20:09 2015 -0500 widget-factory: Rename outline radius in css Rename all outline*radius properties to -gtk-outline*radius. demos/widget-factory/widget-factory.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit ad87ebb5e708b29ca347167751e8b97948a20d17 Author: Matthias Clasen Date: Tue Dec 22 16:19:18 2015 -0500 Adwaita: Adapt to previous commit Rename all outline*radius properties to -gtk-outline*radius. gtk/theme/Adwaita/_common.scss | 14 +++++++------- gtk/theme/Adwaita/gtk-contained-dark.css | 14 +++++++------- gtk/theme/Adwaita/gtk-contained.css | 14 +++++++------- 3 files changed, 21 insertions(+), 21 deletions(-) commit f61b7ba7970870704529627a5127c9d5a7484eeb Author: Matthias Clasen Date: Tue Dec 22 16:18:10 2015 -0500 Prefix outline radius CSS properties These are not in any CSS specifications, so mark them as GTK+ additions by giving them a -gtk prefix. The old names still work. gtk/gtkcssshorthandpropertyimpl.c | 3 ++- gtk/gtkcssstylepropertyimpl.c | 12 ++++++++---- 2 files changed, 10 insertions(+), 5 deletions(-) commit 2d6ce0da0838b416e3693f9ba4320a24dc5fbcbd Author: Matthias Clasen Date: Tue Dec 22 14:22:13 2015 -0500 Add some docs to GtkIcon gtk/gtkicon.c | 4 ++++ 1 file changed, 4 insertions(+) commit 5f330418aeae2bc622bbd57a4e41cb738a5c896f Author: Matthias Clasen Date: Tue Dec 22 14:09:36 2015 -0500 Add some docs to GtkBuiltinIcon gtk/gtkbuiltinicon.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) commit a5a50915554f6a595bd2769f5cd5e8602a2b703b Author: Cosimo Cecchi Date: Tue Dec 22 11:56:23 2015 -0800 stylecontext: fix gtk-doc comment syntax gtk/gtkstylecontext.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 22c91698837ee06587f95dac82c72f3b8f64bc7d Author: Cosimo Cecchi Date: Tue Dec 22 11:52:43 2015 -0800 Adwaita: don't set deprecated style property gtk/theme/Adwaita/_common.scss | 2 -- gtk/theme/Adwaita/gtk-contained-dark.css | 1 - gtk/theme/Adwaita/gtk-contained.css | 1 - 3 files changed, 4 deletions(-) commit c8206ca69843ca7d84d4a062a1710e519bea2819 Author: Matthias Clasen Date: Tue Dec 22 13:48:32 2015 -0500 Adwaita: Fix app-notification theming The way to disable the frame border has changed. gtk/theme/Adwaita/_common.scss | 2 +- gtk/theme/Adwaita/gtk-contained-dark.css | 4 +++- gtk/theme/Adwaita/gtk-contained.css | 4 +++- 3 files changed, 7 insertions(+), 3 deletions(-) commit f5f80b40c36b647d5069b16736c08384cce31a11 Author: Matthias Clasen Date: Tue Dec 22 13:33:43 2015 -0500 Fix GtkFrame padding This was showing up in the app-notification in widget-factory. gtk/gtkframe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 23d8791a47e9bd5c7a306bbdd53c5e337a3538fe Author: Cosimo Cecchi Date: Tue Dec 22 10:52:42 2015 -0800 combobox: remove unused struct member The box was removed a while ago. gtk/gtkcombobox.c | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) commit 8d0ad79238aeeee3b0ca680d2f3ae637927ef369 Author: Cosimo Cecchi Date: Tue Dec 22 10:49:21 2015 -0800 Adwaita: remove combobox separator styling The separator does not exist anymore. gtk/theme/Adwaita/_common.scss | 4 ---- gtk/theme/Adwaita/gtk-contained-dark.css | 2 -- gtk/theme/Adwaita/gtk-contained.css | 2 -- 3 files changed, 8 deletions(-) commit ef41bd7112e392ff5eca153cb676d710384c7ba4 Author: Cosimo Cecchi Date: Mon Dec 21 18:54:41 2015 -0800 combobox: deprecate shadow-type style property It does not add any value to what can be achieved through regular CSS styling. gtk/gtkcombobox.c | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) commit f5628f0439ce01b1430a51bddeafcb20e854db61 Author: Cosimo Cecchi Date: Mon Dec 21 18:43:19 2015 -0800 combobox: port to use a gadget Wrap the size request and allocate code into a GtkCssCustomGadget. This makes margins work on GtkComboBox. gtk/gtkcombobox.c | 629 ++++++++++++++++++++++++++++-------------------------- 1 file changed, 331 insertions(+), 298 deletions(-) commit a90d928a34c2ba6d3ff5cfa33bc619350c153835 Author: Cosimo Cecchi Date: Mon Dec 21 18:32:14 2015 -0800 combobox: use a private variable when possible Instead of dereferencing the same variable over and over. gtk/gtkcombobox.c | 329 ++++++++++++++++++++++++++++++------------------------ 1 file changed, 182 insertions(+), 147 deletions(-) commit f03268eabecfc9818bcb259ae8abd97e18706579 Author: Cosimo Cecchi Date: Mon Dec 21 17:50:42 2015 -0800 combobox: trivial code cleanup gtk/gtkcombobox.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) commit ebc7b59b448a0bd6229b794dc81959b219259a7d Author: Cosimo Cecchi Date: Mon Dec 21 17:47:44 2015 -0800 combobox: remove unneeded check The combobox always has a window. gtk/gtkcombobox.c | 7 ------- 1 file changed, 7 deletions(-) commit 5764c09272bc0ba2d80afd8aad3b780af3f7b4b2 Author: Cosimo Cecchi Date: Mon Dec 21 14:45:58 2015 -0800 combobox: use GtkIcon to render button arrow We can now use the newly introduced GtkIcon widget to properly render the arrow in the combobox with CSS. gtk/gtkcombobox.c | 35 ++++++++++---------------------- gtk/theme/Adwaita/_common.scss | 6 +++++- gtk/theme/Adwaita/gtk-contained-dark.css | 5 ++++- gtk/theme/Adwaita/gtk-contained.css | 5 ++++- gtk/ui/gtkcombobox.ui | 4 ++-- 5 files changed, 26 insertions(+), 29 deletions(-) commit 9b7473b633833bb90603ed34464351d2ba3de385 Author: Cosimo Cecchi Date: Mon Dec 21 14:46:44 2015 -0800 Introduce GtkIcon private class This is an utility widget that wraps a GtkBuiltinIcon for situations where using a real widget is more convenient than a gadget. gtk/Makefile.am | 2 + gtk/gtkicon.c | 223 +++++++++++++++++++++++++++++++++++++++++++++++++++ gtk/gtkiconprivate.h | 56 +++++++++++++ 3 files changed, 281 insertions(+) commit 164e8ed6bd4c37e9a88e26bc5731eeaf2918a652 Author: Matthias Clasen Date: Tue Dec 22 10:30:51 2015 -0500 menuitem: Simplify separators For regular separators, we just rely on standard CSS background rendering nowadays. Do the same for separators in menus. https://bugzilla.gnome.org/show_bug.cgi?id=759765 gtk/gtkmenuitem.c | 28 ++-------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) commit 2438a06d54636e5074c29bd696e3e81e90288b8d Author: Matthias Clasen Date: Mon Dec 21 21:56:10 2015 -0500 Revert "window: Remove suspicious branch" This reverts commit 67ab00e01ec06d7b05a82c3d80b235ac6c4abfd2. See https://bugzilla.gnome.org/show_bug.cgi?id=759705 for a case where this makes a difference. gtk/gtkwindow.c | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 54 insertions(+), 1 deletion(-) commit a64bf81a9fdfbfeabe13298becd5e14fd3dfdd8c Author: Lapo Calamandrei Date: Tue Dec 22 11:53:27 2015 +0100 Adwaita: fix bogus rounded corners on split headerbars we have to do some assumptions for css selectors limits for this particular case, so for split headerbars to work correctly the actual haderbars need not to have the titlebar class applied. gtk/theme/Adwaita/_common.scss | 20 ++++++++++++++++++-- gtk/theme/Adwaita/gtk-contained-dark.css | 17 ++++++++++++++--- gtk/theme/Adwaita/gtk-contained.css | 17 ++++++++++++++--- 3 files changed, 46 insertions(+), 8 deletions(-) commit 939be8a24b45862731b2ca3192cc82300aed9efd Author: Kjell Ahlstedt Date: Tue Dec 22 09:39:28 2015 +0100 GdkSeat: Add G_BEGIN_DECLS and G_END_DECLS https://bugzilla.gnome.org/show_bug.cgi?id=759771 gdk/gdkseat.h | 4 ++++ 1 file changed, 4 insertions(+) commit 7a054328430cd7ee7fa63b11e7e7d8bb4754776c Author: Chun-wei Fan Date: Tue Dec 22 16:33:32 2015 +0800 gtk/gtkbuiltinicon.c: Fix build The gtk_builtin_icon_get_default_size_property returns a const char *, in a way such that some compilers insist that something that is of a pointer value be returned, so fix that by replacing 0 with NULL. gtk/gtkbuiltinicon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 7f17468afc761ae63f1b5581c7769c9d97453f65 Author: Paolo Borelli Date: Sat Dec 19 10:31:32 2015 +0100 W32: avoid code duplication in gdkdevice-win32|virtual The same get_position function is cut and pasted in the two classes. gdk/win32/gdkdevice-virtual.c | 96 +------------------------------------------ gdk/win32/gdkdevice-win32.c | 19 ++++----- gdk/win32/gdkdevice-win32.h | 6 +++ 3 files changed, 15 insertions(+), 106 deletions(-) commit 75b3eec7a6549f0c2cf56d5b831c83aa939de3c7 Author: Daiki Ueno Date: Tue Dec 22 11:21:56 2015 +0900 inspector: Avoid crash when canceling at startup When clicking "Cancel" on the "Do you want to use GTK+ Inspector?" dialog, unregister the update_debugging idle handler. Also, steal reference to 'inspector_window' while gtk_destroy_widget(), to make further gtk_window_update_debugging() calls as a no-op. https://bugzilla.gnome.org/show_bug.cgi?id=759764 gtk/gtkwindow.c | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) commit cc50652db52d7b8ef8119592da6245978f9a0f31 Author: Matthias Clasen Date: Mon Dec 21 20:16:14 2015 -0500 Adwaita: Fix overwrite cursors in entries GtkEntry uses the background color to render the text over the block cursor. A transparent background color makes that not work. gtk/theme/Adwaita/_drawing.scss | 2 +- gtk/theme/Adwaita/gtk-contained-dark.css | 28 ++++++++++++++-------------- gtk/theme/Adwaita/gtk-contained.css | 28 ++++++++++++++-------------- 3 files changed, 29 insertions(+), 29 deletions(-) commit 11ad60d386d4f5bfe6920943603aa4a6bf966bcc Author: Matt Watson Date: Fri Dec 18 17:47:00 2015 -0800 flowbox: remove unused prelight code It was causing needless redraws https://bugzilla.gnome.org/show_bug.cgi?id=759757 gtk/gtkflowbox.c | 20 -------------------- 1 file changed, 20 deletions(-) commit 5c704621ac07122a687b92909c47f627959fa8ac Author: Matthias Clasen Date: Mon Dec 21 16:32:56 2015 -0500 Fix import css parser tests Don't use nonexisting properties here either testsuite/css/parser/import-cyclic-1.css | 2 +- testsuite/css/parser/import-cyclic-1.ref.css | 6 +++--- testsuite/css/parser/import-cyclic-2.css | 2 +- testsuite/css/parser/import-cyclic-2.ref.css | 6 +++--- testsuite/css/parser/import-cyclic-3.css | 2 +- testsuite/css/parser/import-cyclic-3.ref.css | 6 +++--- testsuite/css/parser/import-nonexistant.css | 2 +- testsuite/css/parser/import-nonexistant.ref.css | 2 +- testsuite/css/parser/import-recursive.css | 2 +- testsuite/css/parser/import-recursive.ref.css | 2 +- 10 files changed, 16 insertions(+), 16 deletions(-) commit 54c32fae1e589bbee63bc26a188de64beb19714c Author: Alberts Muktupāvels Date: Sat Dec 19 19:21:10 2015 +0200 x11: create GdkSeat also in GdkX11DeviceManagerCore There are at least few cases when GdkX11DeviceManagerXI2 will not be used. Make sure that we have GdkSeat in such cases. https://bugzilla.gnome.org/show_bug.cgi?id=759309 gdk/x11/gdkdevicemanager-core-x11.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) commit 31f319d1c767ce9ea7b5df7e8bb0efa60eeab1be Author: Matthias Clasen Date: Mon Dec 21 14:53:09 2015 -0500 css parser test: Drop remaining made-up properties These are not used anymore in any tests, and the css parser doesn't support parsing custom properties anymore. testsuite/css/parser/test-css-parser.c | 29 ----------------------------- 1 file changed, 29 deletions(-) commit ece3d33858ddba45397526b4fecc51c08b5e36dd Author: Matthias Clasen Date: Mon Dec 21 14:52:06 2015 -0500 Fix css parser integer test Use margin-top instead of a made-up property. testsuite/css/parser/integer.css | 28 ++++++++++++++-------------- testsuite/css/parser/integer.errors | 12 ++++++++---- testsuite/css/parser/integer.ref.css | 28 ++++++++++++++++++++++------ 3 files changed, 44 insertions(+), 24 deletions(-) commit ce859a7c650cd5250e419e28c10df282b3a5affa Author: Matthias Clasen Date: Mon Dec 21 14:44:00 2015 -0500 Update css parser value none test The test is affected by icon-shadow being renamed and by engine being deprecated. testsuite/css/parser/value-none.css | 22 +++++++++++----------- testsuite/css/parser/value-none.errors | 19 ++++++++++--------- testsuite/css/parser/value-none.ref.css | 2 +- 3 files changed, 22 insertions(+), 21 deletions(-) commit 0fb84c5a685404d76d97f79ebd43284c9f0a63a9 Author: Matthias Clasen Date: Mon Dec 21 14:37:09 2015 -0500 Fix the css parser value initial test This was affected by the recent renaming of icon-shadow to -gtk-icon-shadow. Also, it produces an error now because engine is deprecated. testsuite/css/parser/Makefile.am | 1 + testsuite/css/parser/value-initial.css | 2 +- testsuite/css/parser/value-initial.errors | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) commit 474f5b7784162e8aca408ddb7c6ef694d4a5384c Author: Matthias Clasen Date: Mon Dec 21 14:35:11 2015 -0500 Fix the css parser value inherit test This was affected by the recent renaming of icon-shadow to -gtk-icon-shadow. Also, it produces an error now because engine is deprecated. testsuite/css/parser/Makefile.am | 1 + testsuite/css/parser/value-inherit.css | 2 +- testsuite/css/parser/value-inherit.errors | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) commit db094092ae04150339c5070776b69627af92fe69 Author: Matthias Clasen Date: Mon Dec 21 14:32:01 2015 -0500 Update font-weight css parser test This is affected by the recent fix for parsing font-weight. testsuite/css/parser/font-weight.ref.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit ea651dcd317bc6d8d9c88d2b1ee54100cb67b9fd Author: Matthias Clasen Date: Mon Dec 21 14:30:32 2015 -0500 Update font-family css parser test There are no errors here. testsuite/css/parser/Makefile.am | 4 ---- testsuite/css/parser/font-family.errors | 8 -------- 2 files changed, 12 deletions(-) commit b931821f5eaff75c46e709e8d9b18c5a52a6fd32 Author: Matthias Clasen Date: Mon Dec 21 14:29:17 2015 -0500 Update the css parser unknown pseudo-class test Use an existing property instead of a made-up one. testsuite/css/parser/pseudo-classes-unknown.css | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) commit 8ff127940fdbd43ef3948edc6f1c44ab95df50ab Author: Matthias Clasen Date: Mon Dec 21 14:27:52 2015 -0500 Update the css parser selector test Use an existing property instead of the made-up one, here. testsuite/css/parser/selector.css | 240 +++++++++++++++++----------------- testsuite/css/parser/selector.ref.css | 240 +++++++++++++++++----------------- 2 files changed, 240 insertions(+), 240 deletions(-) commit 1f298c385fc198dc9c5a84c103116d8c76a25ef3 Author: Matthias Clasen Date: Mon Dec 21 14:25:46 2015 -0500 Drop the css parser enum test We are no longer using and non-css properties, and css enums are all parsed with custom code. testsuite/css/parser/enum.css | 32 -------------------------------- testsuite/css/parser/enum.errors | 6 ------ testsuite/css/parser/enum.ref.css | 7 ------- 3 files changed, 45 deletions(-) commit e567f23bcddeb223da1fb8e53c137824676ec9df Author: Matthias Clasen Date: Mon Dec 21 14:17:28 2015 -0500 Update another css parser test This test was using the engine property, which has been deprecated and thus generates an error now. Instead, use the font property. testsuite/css/parser/Makefile.am | 1 - testsuite/css/parser/declarations-valid-18.css | 2 +- testsuite/css/parser/declarations-valid-18.errors | 1 - testsuite/css/parser/declarations-valid-18.ref.css | 8 ++++++++ 4 files changed, 9 insertions(+), 3 deletions(-) commit dcc3dd12119b6a16b440fef7909683169f70c9d6 Author: Matthias Clasen Date: Mon Dec 21 14:14:36 2015 -0500 Update css parser test for declarations Use existing CSS properties instead of made-up ones. testsuite/css/parser/declarations.css | 38 +++++++++++++++---------------- testsuite/css/parser/declarations.ref.css | 16 ++++++------- 2 files changed, 27 insertions(+), 27 deletions(-) commit 0035d526c3c995eeb0a7047d39c3503fc23ee0aa Author: Matthias Clasen Date: Mon Dec 21 14:11:10 2015 -0500 test-css-parser: Drop unused property The rgba-property is no longer used in any tests, drop it. testsuite/css/parser/test-css-parser.c | 6 ------ 1 file changed, 6 deletions(-) commit 6eb4102bf25263f8023e80a72d8da133f9ab5dee Author: Matthias Clasen Date: Mon Dec 21 14:08:58 2015 -0500 Update css parser tests for colors Use the color property instead of a made-up rgba-valued property. testsuite/css/parser/colors-errors.css | 16 ++++++++-------- testsuite/css/parser/colors-red.css | 30 +++++++++++++++--------------- testsuite/css/parser/colors-red.ref.css | 30 +++++++++++++++--------------- 3 files changed, 38 insertions(+), 38 deletions(-) commit a21025e096f3796370ba72b60bfb41f188c223bc Author: Matthias Clasen Date: Mon Dec 21 14:07:08 2015 -0500 test-css-parser: Drop unused property The border-property is no longer used in any tests, drop it. testsuite/css/parser/test-css-parser.c | 6 ------ 1 file changed, 6 deletions(-) commit b56980eba288f22062ad062c1b33705171c39467 Author: Matthias Clasen Date: Mon Dec 21 14:06:07 2015 -0500 Update css parser test for borders Use the border-image-width property instead of a made-up border-valued property. testsuite/css/parser/border.css | 28 ++++++++++++++-------------- testsuite/css/parser/border.ref.css | 14 +++++++------- 2 files changed, 21 insertions(+), 21 deletions(-) commit 0c9c6b882efdccacbf656a1fbe76634552031d8a Author: Matthias Clasen Date: Mon Dec 21 14:01:03 2015 -0500 Update border-radius-shorthand tests The name of the css file is in the error output, so we have to update that after the file was recently renamed. .../css/parser/border-radius-shorthand.errors | 26 +++++++++++----------- 1 file changed, 13 insertions(+), 13 deletions(-) commit 01f2d4dd0f2ecbdf6d3666156643b9a89989b61c Author: Matthias Clasen Date: Mon Dec 21 13:59:24 2015 -0500 Update pseudo-class test We have some more pseudo-classes now, and some are printed out with their CSS name. testsuite/css/parser/pseudo-classes-known.css | 8 ++++++++ testsuite/css/parser/pseudo-classes-known.ref.css | 12 ++++++++++-- 2 files changed, 18 insertions(+), 2 deletions(-) commit 6d86ce516da52898b07e613d64e029323b08f7b8 Author: Matthias Clasen Date: Mon Dec 21 13:53:56 2015 -0500 test-css-parser: Drop unused properties We don't have any tests involving these style properties, so don't install those. testsuite/css/parser/test-css-parser.c | 55 ---------------------------------- 1 file changed, 55 deletions(-) commit a5ccef74702e50c8d2978279b53349657e767fd7 Author: Matthias Clasen Date: Mon Dec 21 13:51:23 2015 -0500 Don't test parsing boolean values in css CSS doesn't have any boolean properties. testsuite/css/parser/Makefile.am | 3 --- testsuite/css/parser/boolean.css | 48 ------------------------------------ testsuite/css/parser/boolean.errors | 8 ------ testsuite/css/parser/boolean.ref.css | 31 ----------------------- 4 files changed, 90 deletions(-) commit fc2879108d577ced23b46ca636be72e1883c3666 Author: Carlos Garnacho Date: Mon Dec 21 19:13:41 2015 +0100 wayland: Don't trigger grab on missing capabilities Those might not be currently there in the first place. gdk/wayland/gdkdevice-wayland.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) commit 3075dac106a551591363e3f84026697c41a94a2a Author: Matthias Clasen Date: Mon Dec 21 12:53:05 2015 -0500 image: Don't assume baseline parameters are non-NULL The GetSize callback *can* assume that minimum and natural are non-NULL. Buy minimum_baseline and natural_baseline can and will be NULL, so handle that. This was causing crashes e.g. in pavucontrol. gtk/gtkimage.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit 485c28d30078089736bb15871b49a2b5f76bd1f4 Author: Cosimo Cecchi Date: Sun Dec 20 17:30:52 2015 -0800 menu: port arrow rendering to use a GtkBuiltinIcon At the same time, remove one spurious background/frame rendering, and simplify the code a great deal. gtk/gtkmenu.c | 289 ++++++++++++------------------- gtk/gtkmenuprivate.h | 5 +- gtk/theme/Adwaita/_common.scss | 12 +- gtk/theme/Adwaita/gtk-contained-dark.css | 6 +- gtk/theme/Adwaita/gtk-contained.css | 6 +- 5 files changed, 134 insertions(+), 184 deletions(-) commit 729801c2a1bd8844fcb74e08c1543a3a6a6a44a9 Author: Cosimo Cecchi Date: Sun Dec 20 18:48:08 2015 -0800 menuitem: trivial doc improvement gtk/gtkmenuitem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 105b45dce0cfa33eb0f60d672ab94d9a1b5ab75d Author: Cosimo Cecchi Date: Sun Dec 20 18:29:48 2015 -0800 cssgadget: print more information when warning gtk/gtkcssgadget.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) commit 5611e81bbc936090875174fe912dd952fc863440 Author: Cosimo Cecchi Date: Sun Dec 20 18:23:46 2015 -0800 cssgadget: fix fallback case We should be resetting the height here, not the width. gtk/gtkcssgadget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 655132b87c8214d8f9b403d15198afabe688c7d4 Author: Cosimo Cecchi Date: Sun Dec 20 18:44:10 2015 -0800 menu: deprecate double-arrows style property It does not sound like a good idea anymore to have a style property change the layout of the menu this drastically. gtk/gtkmenu.c | 106 +++++++--------------------------------------------------- 1 file changed, 13 insertions(+), 93 deletions(-) commit b664ba50c0db397e4cba0c35fb7936fe8152d9e7 Author: Cosimo Cecchi Date: Sun Dec 20 11:19:23 2015 -0800 menu: deprecate arrow-placement style property It does not sound like a good idea anymore to have a style property change the layout of the menu this drastically. gtk/gtkmenu.c | 152 ++++++++++------------------------------------------------ 1 file changed, 25 insertions(+), 127 deletions(-) commit 8a0a11dae482edb490a6e66d4f06a9dcf653a82c Author: Lapo Calamandrei Date: Mon Dec 21 16:58:03 2015 +0100 Adwaita: set scrollbar style props in a general wildcard trying to make webkit happy. gtk/theme/Adwaita/_common.scss | 20 ++--- gtk/theme/Adwaita/gtk-contained-dark.css | 132 +++++++++++++++---------------- gtk/theme/Adwaita/gtk-contained.css | 132 +++++++++++++++---------------- 3 files changed, 143 insertions(+), 141 deletions(-) commit 7c6ca26bfbf35ffa2a9e2e272eefec2242185838 Author: Lapo Calamandrei Date: Mon Dec 21 16:18:04 2015 +0100 Adwaita: fix split headerbar styling applications with split headerbars has a container in the titlebar slot so the .titlebar style there needs to be reset. Since we can't go backward with selectors I assumed that any csd application sports a headerbar hence relying on that styling and resetting the .titlebar styleclass. gtk/theme/Adwaita/_common.scss | 15 +- gtk/theme/Adwaita/gtk-contained-dark.css | 326 ++++++++++++++++--------------- gtk/theme/Adwaita/gtk-contained.css | 326 ++++++++++++++++--------------- 3 files changed, 345 insertions(+), 322 deletions(-) commit 6f889e832c2cb02b70f2d5b891938c571a37c7b1 Author: Matthias Clasen Date: Mon Dec 21 08:26:58 2015 -0500 css: Support CSS names for pseudo states What we call :insensitive is called :disabled in CSS, and :inconsistent is :indeterminate. Recognize these names, but still support the old ones. gtk/gtkcssselector.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) commit 2599ca4d9f97b55d2ce3c5787e694e29e5949c4d Author: Matthias Clasen Date: Mon Dec 21 07:46:37 2015 -0500 Adwaita: Attempt a fixing split headers Remove decorations from headerbars which are wrapped in some other containers (like boxes, or paneds), to prevent double decorations in those cases. gtk/theme/Adwaita/_common.scss | 2 +- gtk/theme/Adwaita/gtk-contained-dark.css | 214 +++++++++++++++---------------- gtk/theme/Adwaita/gtk-contained.css | 214 +++++++++++++++---------------- 3 files changed, 215 insertions(+), 215 deletions(-) commit 698fe18521504dbfc27562583d8df4a4d1ade7a3 Author: Matthias Clasen Date: Mon Dec 21 06:58:29 2015 -0500 Add missing tests to Makefile.am testsuite/css/parser/Makefile.am | 54 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) commit 3daeb7018278e1274310111147fd6e090bc7c9be Author: Matthias Clasen Date: Mon Dec 21 06:45:32 2015 -0500 Fix the build testsuite/css/parser/Makefile.am | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit d081b309d5b87bff1b68e189289de5b3c0ef7dc6 Author: Matthias Clasen Date: Sun Dec 20 17:33:24 2015 -0500 Add some css parser tests These tests exercise many allowed ways to specify various properties. testsuite/css/parser/background-clip.css | 27 +++++ testsuite/css/parser/background-clip.ref.css | 27 +++++ testsuite/css/parser/background-image.css | 88 +++++++++++++++ testsuite/css/parser/background-image.ref.css | 87 +++++++++++++++ testsuite/css/parser/background-origin.css | 27 +++++ testsuite/css/parser/background-origin.ref.css | 27 +++++ testsuite/css/parser/background-repeat.css | 16 +++ testsuite/css/parser/background-repeat.ref.css | 16 +++ testsuite/css/parser/background-size.css | 16 +++ testsuite/css/parser/background-size.ref.css | 16 +++ testsuite/css/parser/border-color.css | 34 ++++++ testsuite/css/parser/border-color.ref.css | 34 ++++++ testsuite/css/parser/border-radius-shorthand.css | 113 +++++++++++++++++++ .../css/parser/border-radius-shorthand.errors | 13 +++ .../css/parser/border-radius-shorthand.ref.css | 104 +++++++++++++++++ testsuite/css/parser/border-radius.css | 123 ++++++--------------- testsuite/css/parser/border-radius.errors | 13 --- testsuite/css/parser/border-radius.ref.css | 114 ++++++------------- testsuite/css/parser/border-style.css | 90 +++++++++++++++ testsuite/css/parser/border-style.ref.css | 90 +++++++++++++++ testsuite/css/parser/border-width.css | 34 ++++++ testsuite/css/parser/border-width.ref.css | 34 ++++++ testsuite/css/parser/box-shadow.css | 35 ++++++ testsuite/css/parser/box-shadow.ref.css | 35 ++++++ testsuite/css/parser/color.css | 65 +++++++++++ testsuite/css/parser/color.ref.css | 65 +++++++++++ testsuite/css/parser/font-family.css | 54 +-------- testsuite/css/parser/font-family.ref.css | 16 +-- testsuite/css/parser/font-size.css | 79 +++++++++++++ testsuite/css/parser/font-size.ref.css | 79 +++++++++++++ testsuite/css/parser/font-stretch.css | 47 ++++++++ testsuite/css/parser/font-stretch.ref.css | 47 ++++++++ testsuite/css/parser/font-style.css | 23 ++++ testsuite/css/parser/font-style.ref.css | 23 ++++ testsuite/css/parser/font-variant.css | 19 ++++ testsuite/css/parser/font-variant.ref.css | 19 ++++ testsuite/css/parser/font-weight.css | 63 +++++++++++ testsuite/css/parser/font-weight.ref.css | 63 +++++++++++ testsuite/css/parser/letter-spacing.css | 23 ++++ testsuite/css/parser/letter-spacing.ref.css | 23 ++++ testsuite/css/parser/margin.css | 34 ++++++ testsuite/css/parser/margin.ref.css | 34 ++++++ testsuite/css/parser/opacity.css | 23 ++++ testsuite/css/parser/opacity.ref.css | 23 ++++ testsuite/css/parser/outline-color.css | 19 ++++ testsuite/css/parser/outline-color.ref.css | 19 ++++ testsuite/css/parser/outline-offset.css | 23 ++++ testsuite/css/parser/outline-offset.ref.css | 23 ++++ testsuite/css/parser/outline-radius.css | 62 +++++++++++ testsuite/css/parser/outline-radius.ref.css | 62 +++++++++++ testsuite/css/parser/outline-style.css | 51 +++++++++ testsuite/css/parser/outline-style.ref.css | 51 +++++++++ testsuite/css/parser/outline-width.css | 19 ++++ testsuite/css/parser/outline-width.ref.css | 19 ++++ testsuite/css/parser/padding.css | 34 ++++++ testsuite/css/parser/padding.ref.css | 34 ++++++ testsuite/css/parser/text-decoration-color.css | 27 +++++ testsuite/css/parser/text-decoration-color.ref.css | 27 +++++ testsuite/css/parser/text-decoration-line.css | 23 ++++ testsuite/css/parser/text-decoration-line.ref.css | 23 ++++ testsuite/css/parser/text-decoration-style.css | 23 ++++ testsuite/css/parser/text-decoration-style.ref.css | 23 ++++ testsuite/css/parser/text-shadow.css | 23 ++++ testsuite/css/parser/text-shadow.ref.css | 23 ++++ 64 files changed, 2407 insertions(+), 236 deletions(-) commit a54fadced69dba4e004fecb97e5e1207cb38df52 Author: Lapo Calamandrei Date: Mon Dec 21 11:50:56 2015 +0100 Adwaita: make progressbars and scales the same size gtk/theme/Adwaita/_common.scss | 24 +++++++++++------------- gtk/theme/Adwaita/gtk-contained-dark.css | 22 +++++++++++----------- gtk/theme/Adwaita/gtk-contained.css | 22 +++++++++++----------- 3 files changed, 33 insertions(+), 35 deletions(-) commit 124923213f0da25fb3bb8e48111ff0f223dbd0a4 Author: Lapo Calamandrei Date: Mon Dec 21 11:28:45 2015 +0100 Adwaita: progressbar sizing and progress component positioning shrinked progressbars a bit and moved the progress component start and end over the trough border. gtk/theme/Adwaita/_common.scss | 16 +++++++++++++++- gtk/theme/Adwaita/gtk-contained-dark.css | 11 ++++++++++- gtk/theme/Adwaita/gtk-contained.css | 11 ++++++++++- 3 files changed, 35 insertions(+), 3 deletions(-) commit 436a258bb01b393bd61e42ae3b568849b94478b7 Author: Matthias Clasen Date: Sun Dec 20 23:50:40 2015 -0500 Fix a typo gtk/gtkcssimagegradient.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 04737364992dff8e6ca555d0b3ddc7bd1a9cf8ea Author: Matthias Clasen Date: Sun Dec 20 17:51:47 2015 -0500 Fix parsing of font-weight The parser was turning a 400 into a 200 and a 700 into a 500. gtk/gtkcssenumvalue.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 0520ca3bdff9a8fc16c3a4110a28052051b4602e Author: Matthias Clasen Date: Sun Dec 20 17:03:06 2015 -0500 buttonbox: Fix size request A copy-paste mistake was making us always request too little space, causing the buttons to be jumbled or cut off. https://bugzilla.gnome.org/show_bug.cgi?id=759664 gtk/gtkbbox.c | 1 - 1 file changed, 1 deletion(-) commit 6a67df79a8f40c488f9098170109eacba45ec2cc Author: Matthias Clasen Date: Sun Dec 20 14:40:49 2015 -0500 inspector: Avoid criticals in the css editro We can't keep text iters around after text buffer has been changed. Just clear the list errors when the buffer changes before we've passed it again. gtk/inspector/css-editor.c | 3 +++ 1 file changed, 3 insertions(+) commit c3d611fcf28c572ab4af96ba586020103390f94b Author: Michael Catanzaro Date: Sun Dec 20 11:52:30 2015 -0600 entry: Fix typo gtk/gtkentry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit e37e8670480d830b7af6b92ca72b05f9e1fe0f5c Author: Aurimas Černius Date: Sun Dec 20 15:41:08 2015 +0200 Updated Lithuanian translation po-properties/lt.po | 2062 ++++++++++++++++++++++++++------------------------- po/lt.po | 791 +++++++++++--------- 2 files changed, 1501 insertions(+), 1352 deletions(-) commit ea01921d09e1dc008780e1b1b31da50cd3384672 Author: Matthias Clasen Date: Sun Dec 20 01:04:59 2015 -0500 modelbutton: Stop saving cairo state GtkBuiltinIcon does this now on its own. gtk/gtkmodelbutton.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) commit 9ac80c2510ba0cf8d5ea79624baeb9273183f475 Author: Matthias Clasen Date: Sun Dec 20 01:04:13 2015 -0500 checkbutton: stop saving cairo state GtkBuiltinIcon now does this on its own. gtk/gtkcheckbutton.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) commit db7f269c0386c99266839cfbba3d43b84695d6c9 Author: Matthias Clasen Date: Sun Dec 20 00:54:47 2015 -0500 Some updates to the CSS docs Remove references to regions and engines, emphasize element names over type names, update the list of pseudo-states. gtk/gtkcssprovider.c | 149 ++++++++++++++++++++++++--------------------------- 1 file changed, 71 insertions(+), 78 deletions(-) commit c9e27636b65f8950bb0cd29318b43ea47792a672 Author: Cosimo Cecchi Date: Sat Dec 19 13:01:53 2015 -0800 checkmenuitem: port indicator gadget to GtkBuiltinIcon Saves a lot of code. gtk/gtkcheckmenuitem.c | 94 ++++++++++++-------------------------------------- 1 file changed, 22 insertions(+), 72 deletions(-) commit ce6cd494753711d8c68b2268d64082be4e0d36d5 Author: Cosimo Cecchi Date: Sat Dec 19 12:29:39 2015 -0800 menuitem: port arrow gadget to GtkBuiltinIcon Saves a lot of code. gtk/gtkmenuitem.c | 97 ++++++-------------------------- gtk/gtkmenuitemprivate.h | 1 - gtk/theme/Adwaita/_common.scss | 6 +- gtk/theme/Adwaita/gtk-contained-dark.css | 6 +- gtk/theme/Adwaita/gtk-contained.css | 6 +- 5 files changed, 30 insertions(+), 86 deletions(-) commit 22ec899f23d358bca95528a2973eaf9b5943ca4d Author: Cosimo Cecchi Date: Sat Dec 19 12:10:45 2015 -0800 menuitem: simplify code Only cast once. gtk/gtkmenuitem.c | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) commit aadc13c4ec1619b7ed31fdf44005f5c81529d092 Author: Cosimo Cecchi Date: Sat Dec 19 12:07:39 2015 -0800 builtinicon: save/restore cairo context when rendering gtk/gtkbuiltinicon.c | 2 ++ gtk/gtkexpander.c | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) commit 4ec99db368e1f7c34a7c182ed28bd6b9a3e210ba Author: Cosimo Cecchi Date: Fri Dec 18 17:59:34 2015 -0800 checkmenuitem: deprecate indicator-size style property We can now use min-width/min-height. gtk/gtkcheckmenuitem.c | 34 +++++++++++--------------------- gtk/theme/Adwaita/_common.scss | 4 ++-- gtk/theme/Adwaita/gtk-contained-dark.css | 12 ++++++----- gtk/theme/Adwaita/gtk-contained.css | 12 ++++++----- 4 files changed, 27 insertions(+), 35 deletions(-) commit 5a87b5bbce82d3ab89cdb6df589c56e16688bbe1 Author: Cosimo Cecchi Date: Fri Dec 18 17:52:16 2015 -0800 menuitem: deprecate toggle-spacing style property We can move this to just use the actual GtkCssGadget of the menu item. gtk/Makefile.am | 1 + gtk/gtkcheckmenuitem.c | 6 +++++ gtk/gtkcheckmenuitem.h | 6 ----- gtk/gtkcheckmenuitemprivate.h | 32 +++++++++++++++++++++++++ gtk/gtkmenu.c | 41 ++++++++++++++------------------ gtk/gtkmenuitem.c | 10 +++++++- gtk/gtkmodelmenuitem.c | 1 + gtk/gtkradiomenuitem.c | 1 + gtk/theme/Adwaita/_common.scss | 12 ++++++---- gtk/theme/Adwaita/gtk-contained-dark.css | 12 ++++------ gtk/theme/Adwaita/gtk-contained.css | 12 ++++------ 11 files changed, 84 insertions(+), 50 deletions(-) commit 3af5c83cd3f236761ea84b3618057a2aec87f0a2 Author: Cosimo Cecchi Date: Fri Dec 18 14:45:15 2015 -0800 checkmenuitem: use a gadget for the check indicator This will make margins and other CSS properties work correctly on the indicator. gtk/gtkcheckmenuitem.c | 200 ++++++++++++++++++++----------- gtk/gtkmenuitem.c | 6 + gtk/gtkmenuitemprivate.h | 1 + gtk/theme/Adwaita/_common.scss | 2 + gtk/theme/Adwaita/gtk-contained-dark.css | 8 ++ gtk/theme/Adwaita/gtk-contained.css | 8 ++ 6 files changed, 158 insertions(+), 67 deletions(-) commit 0e24d6cd85bd8a0ecab67bec1c611b774948e9e5 Author: Cosimo Cecchi Date: Fri Dec 18 14:20:39 2015 -0800 theme: fix menu check/radio styling This is a leftover from the CssNode port of GtkCheckMenuItem and GtkRadioMenuItem. gtk/theme/Adwaita/_common.scss | 14 ++++++++--- gtk/theme/Adwaita/gtk-contained-dark.css | 42 ++++++++++++++++++++------------ gtk/theme/Adwaita/gtk-contained.css | 42 ++++++++++++++++++++------------ 3 files changed, 62 insertions(+), 36 deletions(-) commit b602dc2eed3a01f63dea2ea361f47d60d9311584 Author: Cosimo Cecchi Date: Fri Dec 18 10:10:28 2015 -0800 menuitem: trivial cleanup gtk/gtkmenuitem.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit 871a8c0e16ec615c1badeb565bb6e4092b459c82 Author: Cosimo Cecchi Date: Fri Dec 18 09:59:23 2015 -0800 checkmenuitem: prefer early return gtk/gtkcheckmenuitem.c | 93 +++++++++++++++++++++++++------------------------- 1 file changed, 46 insertions(+), 47 deletions(-) commit 7959c3fb6ea7f4e7b360a5832b717926c2574fb0 Author: Cosimo Cecchi Date: Thu Dec 17 21:54:46 2015 -0800 menuitem: deprecate arrow-scaling style property With this, we can also remove the custom measure function of the arrow gadget. gtk/gtkmenuitem.c | 48 ++++++++------------------------ gtk/theme/Adwaita/_common.scss | 2 ++ gtk/theme/Adwaita/gtk-contained-dark.css | 4 ++- gtk/theme/Adwaita/gtk-contained.css | 4 ++- gtk/theme/HighContrast/_common.scss | 2 ++ gtk/theme/HighContrast/gtk.css | 4 ++- 6 files changed, 24 insertions(+), 40 deletions(-) commit 2d5d7d8cf20878986fc908a51b07dc68c7e564d8 Author: Cosimo Cecchi Date: Thu Dec 17 21:41:40 2015 -0800 menuitem: convert arrow rendering to GtkCssGadget This also deprecates the arrow-spacing style property, which can be now replaced with a simple margin. gtk/gtkmenuitem.c | 178 +++++++++++++++++++++---------- gtk/gtkmenuitemprivate.h | 1 + gtk/theme/Adwaita/_common.scss | 10 +- gtk/theme/Adwaita/gtk-contained-dark.css | 6 +- gtk/theme/Adwaita/gtk-contained.css | 6 +- gtk/theme/HighContrast/_common.scss | 6 ++ gtk/theme/HighContrast/gtk.css | 6 ++ 7 files changed, 149 insertions(+), 64 deletions(-) commit f49a5bf116376ec9b2522b5fc4e720b8b1aca151 Author: Cosimo Cecchi Date: Thu Dec 17 19:24:24 2015 -0800 menuitem: deprecate width-chars style property Instead, we can just set min-width. gtk/gtkmenuitem.c | 30 ++++-------------------------- gtk/theme/Adwaita/_common.scss | 1 + gtk/theme/Adwaita/gtk-contained-dark.css | 3 ++- gtk/theme/Adwaita/gtk-contained.css | 3 ++- gtk/theme/HighContrast/_common.scss | 6 ++++-- gtk/theme/HighContrast/gtk.css | 3 +++ 6 files changed, 16 insertions(+), 30 deletions(-) commit f2adb5779fec92340b1e2968d96a5f580267bd06 Author: Cosimo Cecchi Date: Thu Dec 17 19:12:06 2015 -0800 menuitem: port to gadgets This is not a complete conversion yet - more changes will come in later commits. gtk/gtkmenuitem.c | 1023 +++++++++++++++++++++++----------------------- gtk/gtkmenuitemprivate.h | 2 + 2 files changed, 521 insertions(+), 504 deletions(-) commit 11d9da08a9ca7762698f2588b3078667422a535c Author: Cosimo Cecchi Date: Thu Dec 17 18:50:12 2015 -0800 menuitem: use gtk_container_class_handle_border_width() gtk/gtkmenuitem.c | 55 ++++++++++++++++++++++--------------------------------- 1 file changed, 22 insertions(+), 33 deletions(-) commit 35ed13ac5451838c0f9b0523e099f30d6e182b0f Author: Cosimo Cecchi Date: Thu Dec 17 17:46:31 2015 -0800 menuitem: really ignore horizontal-padding This style property has been documented as been ignored for a long time, but we were still reading it in some cases. gtk/deprecated/gtkimagemenuitem.c | 11 +++++------ gtk/gtkcheckmenuitem.c | 6 ++---- 2 files changed, 7 insertions(+), 10 deletions(-) commit f792d20507b2714c964f11c576dd9a5c5be96a6d Author: Matthias Clasen Date: Sat Dec 19 23:53:31 2015 -0500 statusbar: Deprecate style properties We were not really using the shadow-type style property anyway, so lets just deprecate it. Themes can directly theme the frame. gtk/gtkstatusbar.c | 14 +++++++++----- gtk/theme/Adwaita/_common.scss | 2 -- gtk/theme/Adwaita/gtk-contained-dark.css | 1 - gtk/theme/Adwaita/gtk-contained.css | 1 - 4 files changed, 9 insertions(+), 9 deletions(-) commit 57dd855d103fb8f3c445f9754acbdcc02e40d4c5 Author: Matthias Clasen Date: Sat Dec 19 23:24:27 2015 -0500 Adwaita: Drop some deprecated style properties These can now be replaces with min-width/min-height. gtk/theme/Adwaita/_common.scss | 18 ++++++++---------- gtk/theme/Adwaita/gtk-contained-dark.css | 14 ++++++++------ gtk/theme/Adwaita/gtk-contained.css | 14 ++++++++------ 3 files changed, 24 insertions(+), 22 deletions(-) commit c0683d9267cb676df3777f9b27a9a89494e319d0 Author: Matthias Clasen Date: Sat Dec 19 23:23:09 2015 -0500 checkbutton: Fix regression from builtin icon The leaking of cairo transforms from builtin icon drawing was causing the label to be drawn at the wrong position. gtk/gtkcheckbutton.c | 32 ++++++++++++++------------------ 1 file changed, 14 insertions(+), 18 deletions(-) commit f7236b261b9d74b311888954349534face432b1c Author: Matthias Clasen Date: Sat Dec 19 21:56:05 2015 -0500 modelbutton: Fix state confusion Checked buttons were getting the wrong image. gtk/gtkmodelbutton.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit f0fba02dca17e38146cfcc8b288ecfe0572e2eb9 Author: Matthias Clasen Date: Sat Dec 19 20:46:26 2015 -0500 Adwaita: Try harder to fix arrow rendering Fiddle with specificity to keep hovered modelbutton arrows from rendering background. gtk/theme/Adwaita/_common.scss | 3 ++- gtk/theme/Adwaita/gtk-contained-dark.css | 8 +++++--- gtk/theme/Adwaita/gtk-contained.css | 8 +++++--- 3 files changed, 12 insertions(+), 7 deletions(-) commit 7aeb57cdfd1ee337c34d09f4e82050dbcb91da9b Author: Matthias Clasen Date: Sat Dec 19 20:16:51 2015 -0500 modelbutton: Hide checks initially Manually constructed model buttons were always ending up with a check. Fix that by hiding the indictator node initially. gtk/gtkmodelbutton.c | 2 ++ 1 file changed, 2 insertions(+) commit 0b7226e96eb5e52b24330a716287dd15de6047cf Author: Matthias Clasen Date: Sat Dec 19 17:34:21 2015 -0500 Adwaita: Fix treeview headers The borders went missing on these, at some point. https://bugzilla.gnome.org/show_bug.cgi?id=759567 gtk/theme/Adwaita/_common.scss | 4 +--- gtk/theme/Adwaita/gtk-contained-dark.css | 2 +- gtk/theme/Adwaita/gtk-contained.css | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) commit bca47552289f7ecdba48dc3994f2d54628ff5209 Author: Matthias Clasen Date: Sat Dec 19 14:53:57 2015 -0500 modelbutton: Use a builtin icon for the arrow No need to do this manually. gtk/gtkmodelbutton.c | 124 ++++++++++--------------------- gtk/theme/Adwaita/_common.scss | 5 ++ gtk/theme/Adwaita/gtk-contained-dark.css | 7 ++ gtk/theme/Adwaita/gtk-contained.css | 7 ++ 4 files changed, 60 insertions(+), 83 deletions(-) commit d36c93b91bad5bcb5fe0ac208c308a96e4851764 Author: Matthias Clasen Date: Sat Dec 19 11:22:18 2015 -0500 expander: Fix drawing in rtl GtkBuiltinIcon leaves the cairo context in unclean state when drawing, work around that. gtk/gtkexpander.c | 2 ++ 1 file changed, 2 insertions(+) commit 7d801a4f6987fda1138fef37c2b72c5c77945d0c Author: Matthias Clasen Date: Sat Dec 19 11:11:34 2015 -0500 Fix a case a height/width confusion gtk/gtkexpander.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit d51de8cff80ef0b2be5d82f28c3b08868f79875e Author: Matthias Clasen Date: Sat Dec 19 00:48:10 2015 -0500 expander: Use a builtin icon This saves quite a bit of code. gtk/gtkexpander.c | 93 +++++-------------------------------------------------- 1 file changed, 7 insertions(+), 86 deletions(-) commit 22738ad5af630da5f36dc4d701ec054b0573946a Author: Dušan Kazik Date: Sat Dec 19 13:46:14 2015 +0000 Updated Slovak translation po/sk.po | 138 ++++++++++++++++++++++++++++++++++----------------------------- 1 file changed, 75 insertions(+), 63 deletions(-) commit 5da69479271d35bde4c358b33b55bcba36a5845e Author: Pedro Albuquerque Date: Sat Dec 19 07:37:02 2015 +0000 Updated Portuguese translation po/pt.po | 157 +++++++++++++++++++++++++++++++++++---------------------------- 1 file changed, 88 insertions(+), 69 deletions(-) commit bb3e4feee663f5fd685e6f39fa5e3e8c8b34bb95 Author: Pedro Albuquerque Date: Sat Dec 19 07:33:52 2015 +0000 Updated Portuguese translation po-properties/pt.po | 1529 ++++++++++++++++++++++++++------------------------- 1 file changed, 769 insertions(+), 760 deletions(-) commit f54e0a283b614aa6b512b0577a0373f380b3f92a Author: Matthias Clasen Date: Sat Dec 19 00:33:20 2015 -0500 label: Allocate gadget before using it Move the gtk_css_gadget_allocate call before the gtk_label_update_layout_width call. This fixes the statusbar label in widget-factory page 2 coming up fully ellipsized. gtk/gtklabel.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) commit 35e98dce9ba645d35697a9e757437d0e2599de83 Author: Benjamin Otte Date: Sat Dec 19 05:47:48 2015 +0100 notebook: Sync menu labels with page list in visibile_cb It's where it changes. Size requests have nothing to do with that. gtk/gtknotebook.c | 32 ++++++++++++-------------------- 1 file changed, 12 insertions(+), 20 deletions(-) commit c3548328f7fa00117dfc1b4caece7471fd28d171 Author: Benjamin Otte Date: Fri Dec 18 01:01:33 2015 +0100 notebook: Don't allocate during size requests wat? gtk/gtknotebook.c | 2 -- 1 file changed, 2 deletions(-) commit dd90e020a2380c284b54094d331436e29c518eac Author: Benjamin Otte Date: Sat Dec 19 06:10:37 2015 +0100 label: Don't use _gtk_mis_get_padding_and_border() The function takes into account CSS padding and border, which these days is handled by the gadget code. Use gtk_misc_get_padding() instead. gtk/gtklabel.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) commit 47325a827bcff0f3155dacdc57ca360afdc89e83 Author: Christoph Reiter Date: Thu Dec 17 19:52:23 2015 +0100 imagedefinition: The storage type is not a boolean gtk/gtkimagedefinition.c | 2 +- gtk/gtkimagedefinitionprivate.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit a3fd5a010b59187b5ce739b0eb07d6ccd2b02887 Author: Matthias Clasen Date: Fri Dec 18 22:57:16 2015 -0500 Simplify actionbar We don't need a frame widget here, just render a top border on the box. gtk/gtkactionbar.c | 3 ++- gtk/theme/Adwaita/_common.scss | 5 +---- gtk/theme/Adwaita/gtk-contained-dark.css | 6 ++---- gtk/theme/Adwaita/gtk-contained.css | 6 ++---- gtk/ui/gtkactionbar.ui | 12 ++---------- 5 files changed, 9 insertions(+), 23 deletions(-) commit b90fa7dcd18160ed060d0205872bdbe231410e80 Author: Matthias Clasen Date: Fri Dec 18 22:37:57 2015 -0500 Adwaita: fix action bar styling Make action bar buttons have some padding again. gtk/theme/Adwaita/_common.scss | 7 +++++-- gtk/theme/Adwaita/gtk-contained-dark.css | 8 ++++++-- gtk/theme/Adwaita/gtk-contained.css | 8 ++++++-- 3 files changed, 17 insertions(+), 6 deletions(-) commit ac65952f0db0211e0debc760c0fafc9521c02356 Author: Matthias Clasen Date: Fri Dec 18 20:53:02 2015 -0500 icon helper: suppress style_changed when transient Transient nodes should not propagate style-changed signals that can cause widgets to get reallocated. This was causing treeviews and iconviews with pixbuf cells to be constantly resized and redrawn. gtk/gtkiconhelper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 7acb670e708bc2931d6f8e1afec423b9d7b3c15c Author: Matthias Clasen Date: Fri Dec 18 19:32:24 2015 -0500 Add more icon entry tests This test shows that changing icon types works. tests/testentryicons.c | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) commit 18e8842a7e0f458fb1fda2d3ddb8585aa7284324 Author: Matthias Clasen Date: Fri Dec 18 18:10:08 2015 -0500 entry: Don't clear when setting icons Clearing the icon doesn't appear to be necessary with todays code, and it has the unfortunate side-effect of temoorarily hiding the icon's window, which breaks grabs and makes us miss the button release event when the icon is changed from a button press handler. gtk/gtkentry.c | 43 +++++++++++++------------------------------ 1 file changed, 13 insertions(+), 30 deletions(-) commit 6f5b19a0a534764dad7b8bd0f397a46dc06bef9d Author: Matthias Clasen Date: Fri Dec 18 16:55:21 2015 -0500 css node: Use g_set_object Replace unref + assignment + ref combinations by g_set_object_calls. gtk/gtkcssnode.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) commit 51ba8421c3f5189ec21c4ed953befd7ad6507343 Author: Matthias Clasen Date: Fri Dec 18 10:54:49 2015 -0500 entry: Remove some dead code These defines are no longer used. gtk/gtkentry.c | 2 -- 1 file changed, 2 deletions(-) commit e8aa9b0440e03e7002323922f862342db51c5f32 Author: Timm Bäder Date: Thu Dec 17 12:34:30 2015 +0100 Add a way to highlight resizing widgets https://bugzilla.gnome.org/show_bug.cgi?id=759586 docs/reference/gtk/running.sgml | 4 ++++ gtk/gtkdebug.h | 3 ++- gtk/gtkmain.c | 1 + gtk/gtkwidget.c | 22 ++++++++++++++++++++++ gtk/gtkwidgetprivate.h | 4 ++++ gtk/inspector/visual.c | 14 ++++++++++++++ gtk/inspector/visual.ui | 34 ++++++++++++++++++++++++++++++++++ 7 files changed, 81 insertions(+), 1 deletion(-) commit 20a6ee30b7dd3f471b086d206c8cf51ff3341b48 Author: Timm Bäder Date: Fri Dec 18 15:54:46 2015 +0100 GtkWidget: Don't mix code and declarations gtk/gtkwidget.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) commit 666e4135e84b0391b4194e4fe3243fbd12eeace1 Author: Matthias Clasen Date: Fri Dec 18 09:26:16 2015 -0500 expander: Deprecate style properties This can all be done with CSS properties now. gtk/gtkexpander.c | 98 +++++++++++++++++++++++++++++++------------------------ 1 file changed, 55 insertions(+), 43 deletions(-) commit 53787d29add024635ae873e0f2085ef3f1ff92a1 Author: Matthias Clasen Date: Fri Dec 18 08:29:49 2015 -0500 expander: Let gadget render focus This lets us drop lots of allocation fiddling, and reduces the code that is consulting the style properties we want to get rid of. gtk/gtkexpander.c | 129 +----------------------------------------------------- 1 file changed, 1 insertion(+), 128 deletions(-) commit d81f8c102566e5806ebe0b8d57e3e508b10b6f60 Author: Matthias Clasen Date: Fri Dec 18 07:37:52 2015 -0500 box: Add a way to get the gadget This will be used in GtkButtonBox. gtk/gtkbox.c | 6 ++++++ gtk/gtkboxprivate.h | 3 +++ 2 files changed, 9 insertions(+) commit acd339a9a55f46e098a1e638f866238b6d78daa1 Author: Matthias Clasen Date: Fri Dec 18 06:48:04 2015 -0500 buttonbox: Convert to gadgets Set a css name and use a gadget for button box allocation and drawing. gtk/gtkbbox.c | 258 ++++++++++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 226 insertions(+), 32 deletions(-) commit 2e254076381d66a9f6cbaa4745ad33791a4f3734 Author: Matthias Clasen Date: Thu Dec 17 15:16:25 2015 -0500 Fix a problem with entry gadgets place_windows is accessing the gadgets allocation, so make sure to allocate the gadget before calling it. gtk/gtkentry.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) commit fab31e16ed57774f0b6dbd97bab682dd72c6957c Author: Daniel Mustieles Date: Thu Dec 17 19:14:57 2015 +0100 Updated Spanish translation po/es.po | 312 +++++++++++++++++++++++++++++++++------------------------------ 1 file changed, 164 insertions(+), 148 deletions(-) commit 54fa65f544bef281640d18a4a725005f6199a956 Author: William Hua Date: Thu Dec 17 12:38:35 2015 -0500 gdkborder: change types from gint16 to gint gdk/gdktypes.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit 5190d010d95010a845715c719c3b85a75e0c513a Author: William Hua Date: Thu Dec 17 12:18:03 2015 -0500 gtkborder: restore original struct definition We're going to add back the original struct definition removed by a6e4de28, because using the typedef breaks all sorts of things like gtkmm and WebKit, and having separate struct definitions allows us to change the types in GdkBorder from gint16s to gints without breaking ABI. gtk/gtkborder.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) commit 8c355d8fe671b5158f45d66d2973d587fa1d8602 Author: Paolo Borelli Date: Tue Dec 15 21:25:25 2015 +0100 Win32: call dnd exit when finalizing the display Since we init dnd when opening the display, call the corresponding exit function (which is unused at the moment) when finalizing the display. gdk/win32/gdkdisplay-win32.c | 1 + 1 file changed, 1 insertion(+) commit 2e5616b27ea72947d9b61cf2be6d61d65a2d1df7 Author: Paolo Borelli Date: Mon Dec 14 19:40:25 2015 +0100 Win32: move CoInitialize to dnd init Functions requiring CoInitialize are called just in two places: - the filechooser thread which calls its own CoInitializeEx - the dnd code Moving CoInitialize in the dnd specific init is cleaner and we can pair it with the corresponding CoUninitialize since CoUninitialize should be called as many times as CoInitialize. Note that it is ok to call this function multiple times, so it will not break if another codepath will need it in the future. The patch also replaces the deprecated CoInitialize with the equivalent call to CoInitializeEx (already used in the filechooser). gdk/win32/gdkdnd-win32.c | 4 ++++ gdk/win32/gdkmain-win32.c | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) commit f6b0067718471bebaa3beeafc9d0260a53dd7e26 Author: Timm Bäder Date: Thu Dec 17 14:49:59 2015 +0100 GtkSeparator: Don't leak the gadget gtk/gtkseparator.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) commit 35c243b26f851680b276c9604ada01fb0a242b77 Author: Matthias Clasen Date: Sat Dec 5 22:17:51 2015 -0500 entry: use a gadget Use a gadget for the entry. Selection and progress still just use a CSS node. Most things seem to work correctly with non-zero margin or padding. gtk/gtkentry.c | 489 ++++++++++++++++++++++++++++++---------------------- gtk/gtkspinbutton.c | 4 - 2 files changed, 280 insertions(+), 213 deletions(-) commit 776778efc84c13dec2aea26e8ef375f303ce9494 Author: Lionel Landwerlin Date: Thu Dec 17 01:14:31 2015 +0000 inspector: Ensure clip is always shown gtk/inspector/misc-info.c | 1 + 1 file changed, 1 insertion(+) commit 117ab5092294b98a8f0a7385bd377aed5bfdbad3 Author: Matthias Clasen Date: Wed Dec 16 19:24:43 2015 -0500 inspector: Always show clip It is less confusing than hiding it sometimes. gtk/inspector/misc-info.c | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) commit 0e820765278f2a0dec214cd0398e5e005204002e Author: Matthias Clasen Date: Wed Dec 16 19:14:39 2015 -0500 gadget: Don't warn about unset clip Instead of warning about an unset clip, simply ignore empty content clips. gtk/gtkcssgadget.c | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) commit 7778c237e65eaebfc0659c1436e3136faca9397b Author: Matthias Clasen Date: Wed Dec 16 19:07:26 2015 -0500 cellview: Convert to gadgets gtk/gtkcellview.c | 364 +++++++++++++++++++++++++++++++----------------------- 1 file changed, 210 insertions(+), 154 deletions(-) commit f3c95e1c63575ec818b65b448de4991a9e158547 Author: Matthias Clasen Date: Wed Dec 16 17:52:47 2015 -0500 gadget: Avoid warning for empty containers Empty boxes end up setting the clip to { 0, 0, 0, 0}, so warning for a width or height of 0 triggers false positives. Instead, initialize the clip to clearly invalid values. gtk/gtkcssgadget.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) commit 09d9674d696c417d23a498c460cb4ad9c5323d02 Author: Matthias Clasen Date: Wed Dec 16 17:41:04 2015 -0500 gadget: Add more information to warnings We have the gadget at hand, so we should print out some information that helps tracking down where it comes from. gtk/gtkcssgadget.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) commit 083a17acd4865acdc954e76cab5b4e8ee92d70b2 Author: Matthias Clasen Date: Wed Dec 16 17:32:24 2015 -0500 gadget: Update docs Make it clear that out_clip must be set. gtk/gtkcsscustomgadget.c | 3 +++ 1 file changed, 3 insertions(+) commit ec5596ce20a7979923d82b432d688578bb311f28 Author: Matthias Clasen Date: Wed Dec 16 17:27:14 2015 -0500 gadget: Warn if clip is not set This leads to hard-to-track-down drawing errors, so better warn explicitly about it. gtk/gtkcssgadget.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) commit 2417184a1f1e95e0c5ac3493a6af8e0ae914c916 Author: Matthias Clasen Date: Wed Dec 16 17:12:12 2015 -0500 frame: Fix gadget conversion The GtkCssAllocateFunc must set the clip to meaningful values. gtk/gtkframe.c | 2 ++ 1 file changed, 2 insertions(+) commit 576028bdec90b27a42e8a65755dc0b2e235cdf5a Author: Matthias Clasen Date: Wed Dec 9 23:00:35 2015 -0500 frame: Convert to gadgets As part of this conversion, remove the hardcoded padding around the label. Unfortunately, we cannot use the main gadget for drawing the frame decoration, since we want to draw a custom border instead of the stock css border that gadgets insist on drawing for us. Therefore, add an extra gadget with name border and use it just for rendering the frame. gtk/gtkframe.c | 511 +++++++++++++++++-------------- gtk/theme/Adwaita/_common.scss | 7 +- gtk/theme/Adwaita/gtk-contained-dark.css | 13 +- gtk/theme/Adwaita/gtk-contained.css | 13 +- 4 files changed, 306 insertions(+), 238 deletions(-) commit 3be4971e05e6aeebeddcd7a38ceebc95330b4f03 Author: Carlos Garnacho Date: Wed Dec 16 20:25:54 2015 +0100 GtkPopover: Ensure we unset modality before unparenting the popover Otherwise the gtk_grab_remove() calls on widget destruction will happen on the default window group, which may leave the real window group of the popover with a dangling pointer if it is not the default one. This could be seen on the inspector, open a popover in the properties list and close the window with alt-F4. gtk/gtkpopover.c | 5 +++++ 1 file changed, 5 insertions(+) commit 197e42efd8a0c6adea9fd49f5469687349e887d4 Author: Benjamin Otte Date: Wed Dec 16 20:39:51 2015 +0100 label: Position the text properly The PangoLayout needs to be positioned according to the content allocation of the gadget, not the widget's allocation. gtk/gtkcssgadget.c | 35 +++++++++++++++++++++++++++++++++++ gtk/gtkcssgadgetprivate.h | 3 +++ gtk/gtklabel.c | 11 +++++++---- 3 files changed, 45 insertions(+), 4 deletions(-) commit 2e362eafc7a22e007fddb4ee9c76dfffdbbf02b7 Author: Benjamin Otte Date: Wed Dec 16 19:48:30 2015 +0100 cssnode: Redo first/last-child change tracking Invisible nodes don't change the first/last-child status of the nodes after/before them. That means we don't have to just check the state of the adjacent node when modifying this state, but all their siblings until we hit a visible node. The same way, a node is not the first child if it has no previous sibling, it is the first child if it has no previous visible sibling. This is important for caching in the global lookup cache. gtk/gtkcssnode.c | 72 ++++++++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 62 insertions(+), 10 deletions(-) commit 36653bea4189221c1b3d391890793f50fde3c758 Author: Benjamin Otte Date: Wed Dec 16 18:44:58 2015 +0100 checkbutton: Use a builtin icon Also, add support to uiltin icons to look up the default size from a style property. gtk/gtkbuiltinicon.c | 72 ++++++++++++++++++++++++++--- gtk/gtkbuiltiniconprivate.h | 3 ++ gtk/gtkcheckbutton.c | 107 +++++++++----------------------------------- 3 files changed, 90 insertions(+), 92 deletions(-) commit abbd6b11f6c01810a2bf3a9fa5a32b2d4224228c Author: Matthias Clasen Date: Wed Dec 16 13:48:08 2015 -0500 switch: Deprecate style properties CSS min-width and min-height on the slider node fit this perfectly. We still fall back to the slider-width and slider-height style properties if the CSS properties are not set. gtk/gtkswitch.c | 35 ++++++++++++++++++++++------------- 1 file changed, 22 insertions(+), 13 deletions(-) commit 4e05148befb73a253d957ccb0449e7252b470886 Author: Matthias Clasen Date: Wed Dec 16 13:16:16 2015 -0500 Simplify some code Deal with the min-width/min-height fallback the same way as in GtkBuiltinIcon. gtk/gtkprogressbar.c | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) commit 3f7eefb922811430c0c04671f15a02c15592fd8c Author: Carlos Garnacho Date: Wed Dec 16 19:28:53 2015 +0100 inspector: Use seat grabs for the "inspect widget" feature And remove some usages of GdkDeviceManager API. gtk/inspector/inspect-button.c | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) commit 32c9db8600b93deb9bb43e163f90f338512ed424 Author: Carlos Garnacho Date: Wed Dec 16 19:27:34 2015 +0100 GtkTreeView: Add ignore deprecation statements We still need access to floating devices at places. gtk/gtktreeview.c | 2 ++ 1 file changed, 2 insertions(+) commit 4f9f3f04c0eb426cee87f71fe8307f61af3bdf90 Author: Carlos Garnacho Date: Wed Dec 16 19:27:06 2015 +0100 GtkWindow: Add ignore deprecation statements We still need access to floating devices at places gtk/gtkwindow.c | 2 ++ 1 file changed, 2 insertions(+) commit 4a7589ea1254938536b3c891ddae8c35ff1dfcb1 Author: Carlos Garnacho Date: Wed Dec 16 19:26:21 2015 +0100 GtkWindow: Avoid GdkDeviceManager API We can iterate over the seats' pointers, instead of over master pointers. gtk/gtkwindow.c | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) commit 0f98f225d1b81e0c8bd0bbcf901ef8368bdde096 Author: Carlos Garnacho Date: Wed Dec 16 19:24:51 2015 +0100 GtkWidget: Add some ignore deprecation statements We still need access to floating devices here. gtk/gtkwidget.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) commit 04d7bd49d0ef2af6df12e16d99de7c591c23ebea Author: Carlos Garnacho Date: Wed Dec 16 19:24:20 2015 +0100 GtkMenu: Avoid GdkDeviceManager API We used to pick a master pointer "at random", use the default seat pointer instead. gtk/gtkmenu.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) commit 26f3d02f0354321a13b6608930116b1744f0c549 Author: Carlos Garnacho Date: Wed Dec 16 19:23:25 2015 +0100 GtkComboBox: Avoid GdkDeviceManager API We used to pick a master pointer "at random", use the default seat pointer instead. gtk/gtkcombobox.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) commit e2c8d3c6808c6cf7e4f625d5d5eb984f924152ee Author: Carlos Garnacho Date: Wed Dec 16 19:22:41 2015 +0100 scrolledwindow: Remove unneeded code We no longer take a grab here, no need to undo it on grab_notify gtk/gtkscrolledwindow.c | 4 ---- 1 file changed, 4 deletions(-) commit 24afce5650b2ed14eb5bc066d0f93a0ae636b200 Author: Carlos Garnacho Date: Wed Dec 16 19:21:33 2015 +0100 x11: Make fallback window dragging use seat grabs Also, gdk_seat_ungrab() will undo the implicit grab when EWMH dragging is used. gdk/x11/gdkwindow-x11.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) commit 7ead57be8c3d67b00608f67e2c63a796da8e8388 Author: Carlos Garnacho Date: Wed Dec 16 19:20:28 2015 +0100 x11: Add some ignore deprecation statements In those places we still need access to floating devices, or we need to use the GdkDeviceManager as its GdkEventTranslator interface. gdk/x11/gdkdevice-xi2.c | 4 ++++ gdk/x11/gdkdisplay-x11.c | 5 +++++ gdk/x11/gdkmain-x11.c | 4 ++++ 3 files changed, 13 insertions(+) commit c3f1565c18f6798c17091cb9295b8f74caa49755 Author: Carlos Garnacho Date: Wed Dec 16 19:15:08 2015 +0100 x11: Avoid gdk_device_manager_get_client_pointer() We can use the pointer of the default seat instead. gdk/x11/gdkdisplay-x11.c | 2 +- gdk/x11/gdkdnd-x11.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) commit 1fbf2fe4d70b0f326f3695e47e0bcd4896ff952b Author: Carlos Garnacho Date: Wed Dec 16 19:12:18 2015 +0100 wayland: Avoid GdkDeviceManager APIs In most places, we can do with the pointer/keyboard of the default seat instead of the client pointer. We can also remove some code from gdk_input_init() because we know for sure there's no floating devices to care about here. gdk/wayland/gdkdisplay-wayland.c | 59 ++------------------------------------ gdk/wayland/gdkselection-wayland.c | 8 ++---- gdk/wayland/gdkwindow-wayland.c | 6 ++-- 3 files changed, 7 insertions(+), 66 deletions(-) commit 598dedfe36495e68aeb5c29f7a16271f82c3cfc8 Author: Carlos Garnacho Date: Wed Dec 16 19:08:52 2015 +0100 broadway: Add a few ignore deprecations statements around GdkDeviceManager There's places where we still need to deal with floating devices, which are unseen by seats. Ignore deprecations and keep using GdkDeviceManager until we can forget about floating devices. gdk/broadway/gdkdevice-broadway.c | 4 ++++ gdk/broadway/gdkdisplay-broadway.c | 2 ++ gdk/broadway/gdkeventsource.c | 2 ++ 3 files changed, 8 insertions(+) commit 3e1e02c2bcf542ccdbc7e90e4b213cb5c9e06d26 Author: Carlos Garnacho Date: Wed Dec 16 19:07:20 2015 +0100 GdkDisplay: Add a few ignore deprecations statements around GdkDeviceManager There's places where we still need to deal with floating devices, which are unseen by seats. Ignore deprecations and keep using GdkDeviceManager until we can forget about floating devices. gdk/gdkdisplay.c | 4 ++++ 1 file changed, 4 insertions(+) commit 50859d9efe46db5694e0bb98a101a4c0bcd5762e Author: Carlos Garnacho Date: Wed Dec 16 19:05:49 2015 +0100 GdkWindow: Add a few ignore deprecations statements around GdkDeviceManager There's places where we still need to deal with floating devices, which are unseen by seats. Ignore deprecations and keep using GdkDeviceManager until we can forget about floating devices. gdk/gdkwindow.c | 5 +++++ 1 file changed, 5 insertions(+) commit 644fa138c34db5c60688e650ff7dd54d4dce73f1 Author: Carlos Garnacho Date: Wed Dec 16 19:04:32 2015 +0100 GdkDisplay: Iterate through seats' pointers/keyboards in older grab functions Instead of using the GdkDeviceManager. gdk/gdkdisplay.c | 57 +++++++++++++++++++++----------------------------------- 1 file changed, 21 insertions(+), 36 deletions(-) commit ce7bb7c739601c80464d61579b106f2e6d53e8a3 Author: Carlos Garnacho Date: Wed Dec 16 19:02:31 2015 +0100 GdkWindow: Iterate through seats' pointers/keyboards in older grab functions Instead of using the GdkDeviceManager. gdk/gdkwindow.c | 34 ++++++++++------------------------ 1 file changed, 10 insertions(+), 24 deletions(-) commit 7a926cc7e0e12e70c920e28bdce1d2c4ecbf63a0 Author: Carlos Garnacho Date: Wed Dec 16 19:00:39 2015 +0100 gdkevents: Fallback to the event device seat There's places where we don't set a seat yet, plus the places outside GTK+ where events are created, we should warn and fall back to the master device seat with these. gdk/gdkevents.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) commit b0d72a36d8c81d9035a15136e9d67593baf20989 Author: Carlos Garnacho Date: Wed Dec 16 18:59:57 2015 +0100 gdkevents: Ensure the seat data is copied in events gdk/gdkevents.c | 1 + 1 file changed, 1 insertion(+) commit c70da9b7ae62d26e40e99b521bb1e81e0b677af7 Author: Carlos Garnacho Date: Wed Dec 16 19:35:38 2015 +0100 gdk: Set seat on events generated in common code gdk/gdkwindow.c | 4 ++++ 1 file changed, 4 insertions(+) commit 13b9515e63a5b9daa4a84d066419415b97523f53 Author: Cosimo Cecchi Date: Wed Dec 16 10:40:18 2015 -0800 border: silence a GIScanner warning gtk/gtkborder.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) commit ea3df2473588eb2060a181161b51ef9e6efc1623 Author: Cosimo Cecchi Date: Wed Dec 16 10:38:05 2015 -0800 gadget: fix copy/paste error in documentation gtk/gtkcssgadget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 990dc9961a413975a3c37709b6998a9a9fabd373 Author: Cosimo Cecchi Date: Wed Dec 16 10:35:46 2015 -0800 gdkevents: fix a compiler warning gdk/gdkevents.c | 1 - 1 file changed, 1 deletion(-) commit 0291978acc10a8cc4bcff8dbc2600703facd3a0e Author: Matthias Clasen Date: Wed Dec 16 13:11:24 2015 -0500 check button: Deprecate indicator-size CSS min-width/min-height can do just the same. We still fall back to the indicator-size style property if the CSS properties are not set. gtk/gtkcheckbutton.c | 33 +++++++++++++++++++++++++-------- 1 file changed, 25 insertions(+), 8 deletions(-) commit bb67a06bd6eb200694b41513d1213367364fe7d4 Author: Matthias Clasen Date: Wed Dec 16 12:27:53 2015 -0500 check button: Deprecate and ignore ::indicator-spacing This can be done just as well with CSS margins, so do that instead for Adwaita. gtk/gtkcheckbutton.c | 34 +++++++++++++++----------------- gtk/theme/Adwaita/_common.scss | 8 ++++++++ gtk/theme/Adwaita/gtk-contained-dark.css | 5 +++++ gtk/theme/Adwaita/gtk-contained.css | 5 +++++ 4 files changed, 34 insertions(+), 18 deletions(-) commit 86ecdc7a4403c0e0e0355555b71e397f155111d2 Author: Matthias Clasen Date: Wed Dec 16 11:37:49 2015 -0500 model button: Document iconic layout Document how the CSS nodes look if iconic is TRUE. Add a .model style class for this case and use it in Adwaita. gtk/gtkmodelbutton.c | 12 ++++++++++++ gtk/theme/Adwaita/_common.scss | 2 +- gtk/theme/Adwaita/gtk-contained-dark.css | 6 +++--- gtk/theme/Adwaita/gtk-contained.css | 6 +++--- 4 files changed, 19 insertions(+), 7 deletions(-) commit 2f544655f99361ebe1fee30f5c10ce3212461fea Author: Matthias Clasen Date: Wed Dec 16 10:55:52 2015 -0500 Revise CSS node documentation Clarify the use of brackets in the CSS node diagrams: [] means optional nodes or classes, <> means child widgets. gtk/gtkcheckbutton.c | 6 ++++-- gtk/gtkcheckmenuitem.c | 4 ++-- gtk/gtkexpander.c | 4 ++-- gtk/gtkflowbox.c | 4 ++-- gtk/gtkgrid.c | 2 +- gtk/gtklevelbar.c | 4 ++-- gtk/gtkmenu.c | 4 +++- gtk/gtkmenuitem.c | 2 +- gtk/gtkmodelbutton.c | 6 +++--- gtk/gtknotebook.c | 13 +++++++------ gtk/gtkpaned.c | 4 +++- gtk/gtkradiobutton.c | 6 ++++-- gtk/gtkradiomenuitem.c | 4 ++-- gtk/gtkscale.c | 10 +++++----- gtk/gtktreeview.c | 6 +++--- gtk/gtkwindow.c | 3 ++- 16 files changed, 46 insertions(+), 36 deletions(-) commit fe9301ac1bf272b43ec81dcf7693151d393f5db2 Author: Benjamin Otte Date: Wed Dec 16 16:28:34 2015 +0100 widget-factory: Make things compile again 1e1064398c7607d197c563c42f8901ac67982a9f broke the build. When I run make, I should make sure to run it in the right directory. And not in the gtk/ subdirectory that will never build widget-factory... demos/widget-factory/widget-factory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 1e1064398c7607d197c563c42f8901ac67982a9f Author: Benjamin Otte Date: Wed Dec 16 15:43:05 2015 +0100 widget-factory: Disconnect clipboard watcher on close The clipboard emit events after the button we connected it to was already destroyed (on application close for example), so make sure we don't try to use that dead button. demos/widget-factory/widget-factory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit b456db8cf4c8c7d52d4a5c90948bd659b0716de6 Author: Olivier Fourdan Date: Mon Dec 14 16:34:00 2015 +0100 wayland: Check transient loop Gdk Wayland backend walks up the transient windows tree, but does not check for cycles when doing so. As a result, if two or more windows are transient to each other, the Wayland gdk backend will enter an infinite loop. While this is clearly a bug in the application, gtk+/gdk should be more robust and handle such errors more gracefully. To avoid looping infinitely at various point in the code, check for a possible loop when setting the transient relationship and deny the request to set a window transient for another if that would create a loop. Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=759299 gdk/wayland/gdkwindow-wayland.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) commit 0b191974935d7d24b59f9cb4083c1221b36be2bd Author: Emmanuele Bassi Date: Wed Dec 16 12:42:27 2015 +0000 Fix the fix to the last commit I should not push while compilation is still going on gdk/gdkpixbuf-drawable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 00102e35ea09c3b6bce7227aaaa1aba37eae11ae Author: Emmanuele Bassi Date: Wed Dec 16 12:41:16 2015 +0000 Fix previous commit The scale parameter was missing. gdk/gdkpixbuf-drawable.c | 2 ++ 1 file changed, 2 insertions(+) commit 1f076257059f15f37c2c93853c3eff2ec2be2aa1 Author: Lars Uebernickel Date: Wed Dec 9 17:48:26 2015 +0100 gdk_pixbuf_get_from_window: honor device scale gdk_pixbuf_get_from_window() paints the given window onto a new cairo surface. Create that new surface with the same device scale as the window so that the result is not scaled down on hidpi screens. This is similar to 657a43e (which was reverted), but doesn't modify the behavior of gdk_pixbuf_get_from_surface(). https://bugzilla.gnome.org/show_bug.cgi?id=757147 gdk/gdkpixbuf-drawable.c | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) commit a56a8a8c0262420bc6acce38686c08257cde537c Author: Bastien Nocera Date: Wed Dec 16 12:20:47 2015 +0100 shortcuts: Make sure that hidden shortcuts stay hidden When doing a gtk_widget_show_all() on the shortcuts window, accelerators for both RTL and LTR directions are being shown. Make sure that no-show-all is set by default on hidden shortcuts, and updated if the widget direction changes. https://bugzilla.gnome.org/show_bug.cgi?id=759541 gtk/gtkshortcutsshortcut.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)