[gtk+] inspector: Remove an unncessary context menu
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] inspector: Remove an unncessary context menu
- Date: Thu, 10 Mar 2016 00:30:11 +0000 (UTC)
commit e5a5f0a59ac74fb20dd1d920398e9e13e971fcaf
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Mar 9 18:58:48 2016 -0500
inspector: Remove an unncessary context menu
Now that we have the style properties on the same page again,
we don't need the context menu anymore.
gtk/inspector/css-node-tree.c | 23 -----------------------
1 files changed, 0 insertions(+), 23 deletions(-)
---
diff --git a/gtk/inspector/css-node-tree.c b/gtk/inspector/css-node-tree.c
index fe486cd..92e142c 100644
--- a/gtk/inspector/css-node-tree.c
+++ b/gtk/inspector/css-node-tree.c
@@ -216,28 +216,6 @@ show_node_popover (GtkInspectorCssNodeTree *cnt,
g_signal_connect (popover, "unmap", G_CALLBACK (gtk_widget_destroy), NULL);
}
-static gboolean
-button_pressed (GtkWidget *widget,
- GdkEventButton *event,
- GtkInspectorCssNodeTree *cnt)
-{
- static gboolean in_press = FALSE;
-
- if (in_press)
- return FALSE;
-
- if (!gdk_event_triggers_context_menu ((GdkEvent *)event))
- return FALSE;
-
- in_press = TRUE;
- gtk_widget_event (cnt->priv->node_tree, (GdkEvent *) event);
- in_press = FALSE;
-
- show_node_popover (cnt, event->x, event->y);
-
- return TRUE;
-}
-
static void
gtk_inspector_css_node_tree_set_node (GtkInspectorCssNodeTree *cnt,
GtkCssNode *node);
@@ -318,7 +296,6 @@ gtk_inspector_css_node_tree_class_init (GtkInspectorCssNodeTreeClass *klass)
gtk_widget_class_bind_template_callback (widget_class, row_activated);
gtk_widget_class_bind_template_callback (widget_class, selection_changed);
- gtk_widget_class_bind_template_callback (widget_class, button_pressed);
}
static int
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]