Compare commits

..

1 Commits

Author SHA1 Message Date
Matthias Clasen 8609cd5686 Try to fix cairo node serialization
Place the saved png at the right offset.

This depends on
https://gitlab.freedesktop.org/cairo/cairo/-/merge_requests/118
to make the cairo recording surface produce a proper png.
2021-01-30 19:47:45 -05:00
8 changed files with 789 additions and 738 deletions
-55
View File
@@ -1,58 +1,3 @@
Overview of Changes in 4.1.0
============================
* GtkCheckButton:
- Add back an activate signal
* GtkSearchBar, GtkSearchEntry:
- Capture events in the bubble phase
* GtkEmojiChooser:
- Adapt to small screen sizes
* GtkVideo:
- Fix issues with GL support
* Themes:
- Set sort arrows in CSS
- Set menu button arrows in CSS
- Make scrollbars larger
- Supprt circular menubuttons
* CSS:
- Implement transform-origin
- Support overlines on text
- Support colors in cross-fade()
- More complete text-decoration-line support
* Text layout:
- Use subpixel positioning with new enough cairo
* Inspector:
- Fix slowness in navigation
- Redo the controllers and shortcuts pages
* Accessibility:
- Create AT context objects lazily
* Wayland:
- Fix decoration negotiation under kwin
* GSK:
- Optimize gradient shaders
- Implement repeating gradients in shaders
* Translation updates
- Czech
- Greek
- Hungarian
- Persian
- Punjabi
- Romanian
- Swedish
- Ukrainian
Overview of Changes in 4.0.2
============================
-11
View File
@@ -700,16 +700,6 @@ out:
g_free (source_dir);
}
static void
dark_mode_cb (GtkToggleButton *button,
GParamSpec *pspec,
NodeEditorWindow *self)
{
g_object_set (gtk_widget_get_settings (GTK_WIDGET (self)),
"gtk-application-prefer-dark-theme", gtk_toggle_button_get_active (button),
NULL);
}
static void
node_editor_window_finalize (GObject *object)
{
@@ -824,7 +814,6 @@ node_editor_window_class_init (NodeEditorWindowClass *class)
gtk_widget_class_bind_template_callback (widget_class, export_image_cb);
gtk_widget_class_bind_template_callback (widget_class, testcase_save_clicked_cb);
gtk_widget_class_bind_template_callback (widget_class, testcase_name_entry_changed_cb);
gtk_widget_class_bind_template_callback (widget_class, dark_mode_cb);
}
static GtkWidget *
-9
View File
@@ -139,15 +139,6 @@
<property name="icon-name">open-menu-symbolic</property>
</object>
</child>
<child type="end">
<object class="GtkToggleButton" id="dark_bg_button">
<property name="valign">center</property>
<property name="has-frame">0</property>
<property name="icon-name">display-brightness-symbolic</property>
<property name="tooltip-text" translatable="yes">Use a dark background</property>
<signal name="notify::active" handler="dark_mode_cb" swapped="0"/>
</object>
</child>
</object>
</child>
<child>
+1 -1
View File
@@ -1394,7 +1394,7 @@ parse_cairo_node (GtkCssParser *parser)
if (surface != NULL)
{
cairo_t *cr = gsk_cairo_node_get_draw_context (node);
cairo_set_source_surface (cr, surface, 0, 0);
cairo_set_source_surface (cr, surface, bounds.origin.x, bounds.origin.y);
cairo_paint (cr);
cairo_destroy (cr);
}
+3 -3
View File
@@ -724,13 +724,13 @@ gtk_list_box_init (GtkListBox *box)
* gtk_list_box_get_selected_row:
* @box: a #GtkListBox
*
* Gets the selected row, or %NULL if no rows are selected.
* Gets the selected row.
*
* Note that the box may allow multiple selection, in which
* case you should use gtk_list_box_selected_foreach() to
* find all selected rows.
*
* Returns: (transfer none) (nullable): the selected row or %NULL
* Returns: (transfer none): the selected row
*/
GtkListBoxRow *
gtk_list_box_get_selected_row (GtkListBox *box)
@@ -746,7 +746,7 @@ gtk_list_box_get_selected_row (GtkListBox *box)
* @index_: the index of the row
*
* Gets the n-th child in the list (not counting headers).
* If @index_ is negative or larger than the number of items in the
* If @_index is negative or larger than the number of items in the
* list, %NULL is returned.
*
* Returns: (transfer none) (nullable): the child #GtkWidget or %NULL
+458 -468
View File
File diff suppressed because it is too large Load Diff
+322 -186
View File
File diff suppressed because it is too large Load Diff
+5 -5
View File
@@ -422,11 +422,11 @@ testdata = [
'textview-border-windows.css',
'textview-border-windows.ref.ui',
'textview-border-windows.ui',
# these tests needs a better way to perform delayed actions
# they are not in xfail since they succeed on some platforms
#'textview-margins.css',
#'textview-margins.ref.ui',
#'textview-margins.ui',
'textview-margins.css',
'textview-margins.ref.ui',
'textview-margins.ui',
# this test needs a better way to perform delayed actions
# it is not in xfail since it succeeds on some platforms
#'textview-tags.ref.ui',
#'textview-tags.ui',
'treeview-crash-too-wide.ref.ui',