summaryrefslogtreecommitdiff
path: root/src/gpm-prefs-core.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-06-29 19:04:08 +0200
committerraveit65 <[email protected]>2020-07-08 18:19:10 +0200
commit1f08913e3dea33b4cbc738d38190c232fe808a91 (patch)
treec1ac7b7e8eea07cf8caf4f41a0fb49d7cc2b8080 /src/gpm-prefs-core.c
parent5a8b0d7a26fbbb4e7a29c7476ff5af98e028fdac (diff)
downloadmate-power-manager-1f08913e3dea33b4cbc738d38190c232fe808a91.tar.bz2
mate-power-manager-1f08913e3dea33b4cbc738d38190c232fe808a91.tar.xz
Remove unused variable from gpm_notebook_scroll_event_cb
Diffstat (limited to 'src/gpm-prefs-core.c')
-rw-r--r--src/gpm-prefs-core.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gpm-prefs-core.c b/src/gpm-prefs-core.c
index 93177b6..b43dd12 100644
--- a/src/gpm-prefs-core.c
+++ b/src/gpm-prefs-core.c
@@ -492,7 +492,6 @@ static void
prefs_setup_ups (GpmPrefs *prefs)
{
GtkWidget *notebook;
- GtkWidget *window;
gint page;
const GpmActionPolicy ups_low_actions[] =
@@ -524,12 +523,12 @@ prefs_setup_ups (GpmPrefs *prefs)
GPM_SETTINGS_SLEEP_DISPLAY_UPS,
display_times);
- window = gpm_window (prefs);
notebook = GET_WIDGET ("notebook_preferences");
gtk_widget_add_events (notebook, GDK_SCROLL_MASK);
- g_signal_connect (GTK_NOTEBOOK (notebook), "scroll-event",
- G_CALLBACK (gpm_dialog_page_scroll_event_cb),
- window);
+ g_signal_connect (GTK_NOTEBOOK (notebook),
+ "scroll-event",
+ G_CALLBACK (gpm_notebook_scroll_event_cb),
+ NULL);
if (prefs->priv->has_ups == FALSE) {
page = gtk_notebook_page_num (GTK_NOTEBOOK (notebook), GET_WIDGET ("box_ups"));