Skip to content
Permalink
Browse files

Fix: Pluma crashes with mouse wheel over a tab

  • Loading branch information...
sc0w committed May 21, 2018
1 parent d7a6b50 commit ffd69abf6362097fbd47bce6c076b5f147608549
Showing with 0 additions and 34 deletions.
  1. +0 −14 pluma/pluma-notebook.c
  2. +0 −20 pluma/pluma-tab-label.c
@@ -838,16 +838,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)
@@ -860,10 +850,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);

@@ -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;

0 comments on commit ffd69ab

Please sign in to comment.
You can’t perform that action at this time.