Merge branch 'matthiasc/for-master' into 'master'

treeviewcolumn: Clip header buttons

Closes #4045

See merge request GNOME/gtk!3682
This commit is contained in:
Matthias Clasen 2021-06-18 04:37:48 +00:00
commit be1b979e51
2 changed files with 2 additions and 1 deletions

View File

@ -348,7 +348,7 @@ _gdk_macos_seat_new (GdkMacosDisplay *display)
init_devices (self);
return g_steal_pointer (&self);
return GDK_SEAT (g_steal_pointer (&self));
}
static GdkDeviceToolType

View File

@ -855,6 +855,7 @@ gtk_tree_view_column_create_button (GtkTreeViewColumn *tree_column)
priv->button = gtk_button_new ();
g_object_ref_sink (priv->button);
gtk_widget_set_focus_on_click (priv->button, FALSE);
gtk_widget_set_overflow (priv->button, GTK_OVERFLOW_HIDDEN);
g_signal_connect (priv->button, "clicked",
G_CALLBACK (gtk_tree_view_column_button_clicked),