mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-05-16 13:40:18 +00:00
Compare commits
2 Commits
5da518f50e
...
d167b53b17
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d167b53b17 | ||
| a44ec5f624 |
@@ -304,21 +304,28 @@ tab_scroll_right_down_clicked (GtkWidget *widget, chanview *cv)
|
|||||||
static gboolean
|
static gboolean
|
||||||
tab_scroll_cb (GtkWidget *widget, GdkEventScroll *event, gpointer cv)
|
tab_scroll_cb (GtkWidget *widget, GdkEventScroll *event, gpointer cv)
|
||||||
{
|
{
|
||||||
if (prefs.hex_gui_tab_scrollchans)
|
|
||||||
{
|
|
||||||
int direction = cv_scroll_direction (event);
|
int direction = cv_scroll_direction (event);
|
||||||
|
|
||||||
|
if (prefs.hex_gui_tab_scrollchans)
|
||||||
|
{
|
||||||
if (direction != 0)
|
if (direction != 0)
|
||||||
|
{
|
||||||
mg_switch_page (1, direction);
|
mg_switch_page (1, direction);
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
int direction = cv_scroll_direction (event);
|
|
||||||
|
|
||||||
if (direction < 0)
|
if (direction < 0)
|
||||||
|
{
|
||||||
tab_scroll_left_up_clicked (widget, cv);
|
tab_scroll_left_up_clicked (widget, cv);
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
else if (direction > 0)
|
else if (direction > 0)
|
||||||
|
{
|
||||||
tab_scroll_right_down_clicked (widget, cv);
|
tab_scroll_right_down_clicked (widget, cv);
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|||||||
Reference in New Issue
Block a user