[gtk+] treeview: Stop rendering focus outline
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] treeview: Stop rendering focus outline
- Date: Mon, 8 Jan 2018 16:40:47 +0000 (UTC)
commit 9a68c068a8e1cb9b4bc39d88469c7251ff02ff7d
Author: Timm Bäder <mail baedert org>
Date: Mon Jan 8 16:36:44 2018 +0100
treeview: Stop rendering focus outline
This is done on a widget-level via css these days.
gtk/gtktreeview.c | 26 +-------------------------
1 files changed, 1 insertions(+), 25 deletions(-)
---
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index e7a34db..7620d22 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -4476,27 +4476,6 @@ invalidate_empty_focus (GtkTreeView *tree_view)
gtk_widget_queue_draw (GTK_WIDGET (tree_view));
}
-/* Draws background and a focus rectangle near the edge of the bin_window;
- * used when the tree is empty.
- */
-static void
-snapshot_empty (GtkTreeView *tree_view,
- GtkSnapshot *snapshot)
-{
- GtkWidget *widget = GTK_WIDGET (tree_view);
- GtkStyleContext *context;
-
- context = gtk_widget_get_style_context (widget);
-
- if (gtk_widget_has_visible_focus (widget))
- {
- gtk_snapshot_render_focus (snapshot, context,
- 0, 0,
- gtk_widget_get_width (widget),
- gtk_widget_get_height (widget));
- }
-}
-
typedef enum {
GTK_TREE_VIEW_GRID_LINE,
GTK_TREE_VIEW_TREE_LINE,
@@ -4657,10 +4636,7 @@ gtk_tree_view_bin_snapshot (GtkWidget *widget,
context = gtk_widget_get_style_context (widget);
if (tree_view->priv->tree == NULL)
- {
- snapshot_empty (tree_view, snapshot);
- return;
- }
+ return;
bin_window_width = gtk_widget_get_width (GTK_WIDGET (tree_view));
bin_window_height = gtk_widget_get_height(GTK_WIDGET (tree_view));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]