diff console/libgnt/gnttree.c @ 14836:bfcdd361357e

[gaim-migrate @ 17605] Do things right and fix the compile warnings. committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 28 Oct 2006 19:52:30 +0000
parents 6ec7e963d186
children 97977138cf29
line wrap: on
line diff
--- a/console/libgnt/gnttree.c	Sat Oct 28 19:37:48 2006 +0000
+++ b/console/libgnt/gnttree.c	Sat Oct 28 19:52:30 2006 +0000
@@ -1,5 +1,6 @@
+#include "gntmarshal.h"
+#include "gntstyle.h"
 #include "gnttree.h"
-#include "gntmarshal.h"
 #include "gntutils.h"
 
 #include <string.h>
@@ -474,13 +475,6 @@
 	g_signal_emit(tree, signals[SIG_SELECTION_CHANGED], 0, old->key, current->key);
 }
 
-static GntTreeRow *
-get_nth_row(GntTree *tree, int n)
-{
-	gpointer key = g_list_nth_data(tree->list, n);
-	return g_hash_table_lookup(tree->hash, key);
-}
-
 static gboolean
 action_down(GntWidget *widget, GList *null)
 {
@@ -577,8 +571,6 @@
 {
 	GntTree *tree = GNT_TREE(widget);
 	GntTreeRow *old = tree->current;
-	GntTreeRow *row;
-	int dist;
 
 	if (text[0] == '\r')
 	{
@@ -720,7 +712,7 @@
 	gnt_widget_class_register_action(parent_class, "page-down", action_page_down,
 				"\033" GNT_KEY_PGDOWN, NULL);
 
-	gnt_style_read_actions(G_OBJECT_CLASS_TYPE(klass), klass);
+	gnt_style_read_actions(G_OBJECT_CLASS_TYPE(klass), parent_class);
 
 	GNTDEBUG;
 }