summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-05-21 15:22:32 +0200
committerPablo Barciela <[email protected]>2018-05-21 15:22:32 +0200
commitcced651e89d44f2119fd0fe29435141e4d57bbe8 (patch)
treeb944200d50120365e5a7476878d373f897284447
parentd6d1cdb0e241ee3a07200ad0561a8105b6243c2b (diff)
downloadpluma-cced651e89d44f2119fd0fe29435141e4d57bbe8.tar.bz2
pluma-cced651e89d44f2119fd0fe29435141e4d57bbe8.tar.xz
Fix: Pluma crashes with mouse wheel over a tab
Fixes https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=898637
-rw-r--r--pluma/pluma-notebook.c14
-rw-r--r--pluma/pluma-tab-label.c20
2 files changed, 0 insertions, 34 deletions
diff --git a/pluma/pluma-notebook.c b/pluma/pluma-notebook.c
index 5b8f388d..39502ec2 100644
--- a/pluma/pluma-notebook.c
+++ b/pluma/pluma-notebook.c
@@ -864,16 +864,6 @@ close_button_clicked_cb (PlumaTabLabel *tab_label, PlumaNotebook *notebook)
g_signal_emit (notebook, signals[TAB_CLOSE_REQUEST], 0, tab);
}
-static gboolean
-tab_label_scroll_cb (PlumaTabLabel *tab_label,
- GdkEventScroll *event,
- PlumaNotebook *notebook)
-{
- g_signal_emit_by_name (notebook, "scroll-event", &event);
-
- return FALSE;
-}
-
static GtkWidget *
create_tab_label (PlumaNotebook *nb,
PlumaTab *tab)
@@ -886,10 +876,6 @@ create_tab_label (PlumaNotebook *nb,
"close-clicked",
G_CALLBACK (close_button_clicked_cb),
nb);
- g_signal_connect (tab_label,
- "scroll-event",
- G_CALLBACK (tab_label_scroll_cb),
- nb);
g_object_set_data (G_OBJECT (tab), "tab-label", tab_label);
diff --git a/pluma/pluma-tab-label.c b/pluma/pluma-tab-label.c
index b1b30266..5130507c 100644
--- a/pluma/pluma-tab-label.c
+++ b/pluma/pluma-tab-label.c
@@ -114,16 +114,6 @@ close_button_clicked_cb (GtkWidget *widget,
g_signal_emit (tab_label, signals[CLOSE_CLICKED], 0, NULL);
}
-static gboolean
-scroll_event_cb(GtkWidget *widget,
- GdkEventScroll *event,
- PlumaTabLabel *tab_label)
-{
- g_signal_emit_by_name(tab_label, "scroll-event", &event);
-
- return FALSE;
-}
-
static void
sync_tip (PlumaTab *tab, PlumaTabLabel *tab_label)
{
@@ -294,16 +284,6 @@ pluma_tab_label_init (PlumaTabLabel *tab_label)
G_CALLBACK (close_button_clicked_cb),
tab_label);
- g_signal_connect (close_button,
- "scroll-event",
- G_CALLBACK (scroll_event_cb),
- tab_label);
-
- g_signal_connect (ebox,
- "scroll-event",
- G_CALLBACK (scroll_event_cb),
- tab_label);
-
spinner = gtk_spinner_new ();
gtk_box_pack_start (GTK_BOX (hbox), spinner, FALSE, FALSE, 0);
tab_label->priv->spinner = spinner;