[egg-list-box/row-widget: 6/7] listbox: Remove some warnings



commit 6e9972dde60607c750af63801c0c2c1cf2e62862
Author: Alexander Larsson <alexl redhat com>
Date:   Fri Jun 7 15:28:24 2013 +0200

    listbox: Remove some warnings

 Makefile.am               |    1 +
 egg-list-box-accessible.c |    4 ----
 egg-list-box-accessible.h |    1 +
 egg-list-box.c            |   13 +------------
 4 files changed, 3 insertions(+), 16 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 5a12f85..6c280c1 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -2,6 +2,7 @@ NULL =
 
 AM_CPPFLAGS = \
        -include config.h \
+       -Wall \
        $(LISTBOX_CFLAGS) \
        $(NULL)
 
diff --git a/egg-list-box-accessible.c b/egg-list-box-accessible.c
index f13b9f7..156eed1 100644
--- a/egg-list-box-accessible.c
+++ b/egg-list-box-accessible.c
@@ -66,8 +66,6 @@ egg_list_box_accessible_add_selection (AtkSelection *selection,
                                        gint          idx)
 {
   GtkWidget *box;
-  GList *children;
-  GtkWidget *child;
   EggListBoxRow *row;
 
   box = gtk_accessible_get_widget (GTK_ACCESSIBLE (selection));
@@ -142,8 +140,6 @@ egg_list_box_accessible_is_child_selected (AtkSelection *selection,
                                            gint          idx)
 {
   GtkWidget *box;
-  GtkWidget *widget;
-  GList *children;
   EggListBoxRow *row;
 
   box = gtk_accessible_get_widget (GTK_ACCESSIBLE (selection));
diff --git a/egg-list-box-accessible.h b/egg-list-box-accessible.h
index 6a094e2..ff1b296 100644
--- a/egg-list-box-accessible.h
+++ b/egg-list-box-accessible.h
@@ -49,6 +49,7 @@ GType egg_list_box_accessible_get_type (void);
 
 void _egg_list_box_accessible_update_selected (EggListBox *box, EggListBoxRow *child);
 void _egg_list_box_accessible_update_cursor   (EggListBox *box, EggListBoxRow *child);
+void _egg_list_box_accessible_selection_changed (EggListBox *box);
 
 G_END_DECLS
 
diff --git a/egg-list-box.c b/egg-list-box.c
index e85e852..c6851fc 100644
--- a/egg-list-box.c
+++ b/egg-list-box.c
@@ -478,8 +478,6 @@ egg_list_box_get_selected_row (EggListBox *list_box)
 EggListBoxRow *
 egg_list_box_get_row_at_index (EggListBox *list_box, gint index)
 {
-  EggListBoxRow *row, *found_row;
-  EggListBoxRowPrivate *row_priv;
   EggListBoxPrivate *priv = list_box->priv;
   GSequenceIter *iter;
 
@@ -1667,9 +1665,7 @@ egg_list_box_real_size_allocate (GtkWidget *widget, GtkAllocation *allocation)
   GtkAllocation separator_allocation;
   EggListBoxRow *row;
   GdkWindow *window;
-  GtkWidget *child;
   GSequenceIter *iter;
-  GtkStyleContext *context;
   int child_min;
 
 
@@ -1690,7 +1686,6 @@ egg_list_box_real_size_allocate (GtkWidget *widget, GtkAllocation *allocation)
                            allocation->x, allocation->y,
                            allocation->width, allocation->height);
 
-  context = gtk_widget_get_style_context (GTK_WIDGET (list_box));
   child_allocation.x = 0;
   child_allocation.y = 0;
   child_allocation.width = allocation->width;
@@ -2036,8 +2031,6 @@ egg_list_box_row_get_property (GObject    *obj,
                                GValue     *value,
                                GParamSpec *pspec)
 {
-  EggListBoxRow *row = EGG_LIST_BOX_ROW (obj);
-
   switch (property_id)
     {
     default:
@@ -2052,8 +2045,6 @@ egg_list_box_row_set_property (GObject      *obj,
                            const GValue *value,
                            GParamSpec   *pspec)
 {
-  EggListBoxRow *row = EGG_LIST_BOX_ROW (obj);
-
   switch (property_id)
     {
     default:
@@ -2110,7 +2101,6 @@ egg_list_box_row_real_draw (GtkWidget* widget, cairo_t* cr)
   GtkStateFlags state;
   GtkBorder border;
   gint focus_pad;
-  int i;
 
   gtk_widget_get_allocation (widget, &allocation);
   context = gtk_widget_get_style_context (widget);
@@ -2145,7 +2135,7 @@ egg_list_box_row_get_full_border (EggListBoxRow *row,
   GtkWidget *widget = GTK_WIDGET (row);
   GtkStyleContext *context;
   GtkStateFlags state;
-  GtkBorder default_border, padding, border;
+  GtkBorder padding, border;
   int focus_width, focus_pad;
 
   context = gtk_widget_get_style_context (widget);
@@ -2243,7 +2233,6 @@ egg_list_box_row_real_size_allocate (GtkWidget *widget, GtkAllocation *allocatio
     {
       GtkAllocation child_allocation;
       GtkBorder border;
-      gint baseline;
 
       egg_list_box_row_get_full_border (row, &border);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]