[gtk+/wip/baedert/children: 62/68] separatortoolitem: Remove button-event/motion-event handlers
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/children: 62/68] separatortoolitem: Remove button-event/motion-event handlers
- Date: Wed, 7 Dec 2016 07:57:21 +0000 (UTC)
commit 180d7adccbe8d3ef5d947caf2558da6f937f88fb
Author: Timm Bäder <mail baedert org>
Date: Fri Dec 2 11:34:56 2016 +0100
separatortoolitem: Remove button-event/motion-event handlers
These only exist for the window dragging which does not exist anymore
currently. It will be reintroduced later in a form that does not require
these handlers.
gtk/gtkseparatortoolitem.c | 33 ---------------------------------
1 files changed, 0 insertions(+), 33 deletions(-)
---
diff --git a/gtk/gtkseparatortoolitem.c b/gtk/gtkseparatortoolitem.c
index 650dd5f..10a2146 100644
--- a/gtk/gtkseparatortoolitem.c
+++ b/gtk/gtkseparatortoolitem.c
@@ -88,10 +88,6 @@ static void gtk_separator_tool_item_realize (GtkWidget
static void gtk_separator_tool_item_unrealize (GtkWidget *widget);
static void gtk_separator_tool_item_map (GtkWidget *widget);
static void gtk_separator_tool_item_unmap (GtkWidget *widget);
-static gboolean gtk_separator_tool_item_button_event (GtkWidget *widget,
- GdkEventButton *event);
-static gboolean gtk_separator_tool_item_motion_event (GtkWidget *widget,
- GdkEventMotion *event);
G_DEFINE_TYPE_WITH_PRIVATE (GtkSeparatorToolItem, gtk_separator_tool_item, GTK_TYPE_TOOL_ITEM)
@@ -129,9 +125,6 @@ gtk_separator_tool_item_class_init (GtkSeparatorToolItemClass *class)
widget_class->unrealize = gtk_separator_tool_item_unrealize;
widget_class->map = gtk_separator_tool_item_map;
widget_class->unmap = gtk_separator_tool_item_unmap;
- widget_class->button_press_event = gtk_separator_tool_item_button_event;
- widget_class->button_release_event = gtk_separator_tool_item_button_event;
- widget_class->motion_notify_event = gtk_separator_tool_item_motion_event;
toolitem_class->create_menu_proxy = gtk_separator_tool_item_create_menu_proxy;
@@ -333,32 +326,6 @@ gtk_separator_tool_item_unmap (GtkWidget *widget)
}
static gboolean
-gtk_separator_tool_item_motion_event (GtkWidget *widget,
- GdkEventMotion *event)
-{
- GtkSeparatorToolItem *separator = GTK_SEPARATOR_TOOL_ITEM (widget);
- GtkSeparatorToolItemPrivate *priv = separator->priv;
-
- /* We want window dragging to work on empty toolbar areas,
- * so we only eat button events on visible separators
- */
- return priv->draw;
-}
-
-static gboolean
-gtk_separator_tool_item_button_event (GtkWidget *widget,
- GdkEventButton *event)
-{
- GtkSeparatorToolItem *separator = GTK_SEPARATOR_TOOL_ITEM (widget);
- GtkSeparatorToolItemPrivate *priv = separator->priv;
-
- /* We want window dragging to work on empty toolbar areas,
- * so we only eat button events on visible separators
- */
- return priv->draw;
-}
-
-static gboolean
gtk_separator_tool_item_draw (GtkWidget *widget,
cairo_t *cr)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]