Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix: Pluma crashes with mouse wheel over a tab
  • Loading branch information
sc0w committed May 21, 2018
1 parent d6d1cdb commit cced651
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 34 deletions.
14 changes: 0 additions & 14 deletions pluma/pluma-notebook.c
Expand Up @@ -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)
Expand All @@ -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);

Expand Down
20 changes: 0 additions & 20 deletions pluma/pluma-tab-label.c
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit cced651

Please sign in to comment.