[egg-list-box/flow-box-enhancements] Fix compiler warnings
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [egg-list-box/flow-box-enhancements] Fix compiler warnings
- Date: Sun, 29 Sep 2013 16:57:02 +0000 (UTC)
commit 31912232cd0d8431e54fb630a79fd44b984e1bcf
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Sep 29 11:09:20 2013 -0400
Fix compiler warnings
egg-flow-box-accessible.c | 2 +-
egg-flow-box.c | 39 ---------------------------------------
2 files changed, 1 insertions(+), 40 deletions(-)
---
diff --git a/egg-flow-box-accessible.c b/egg-flow-box-accessible.c
index 16b81fe..3702f1c 100644
--- a/egg-flow-box-accessible.c
+++ b/egg-flow-box-accessible.c
@@ -160,7 +160,6 @@ egg_flow_box_accessible_ref_selection (AtkSelection *selection,
gint idx)
{
GtkWidget *box;
- GtkWidget *widget;
AtkObject *accessible;
FindSelectedData data;
@@ -224,6 +223,7 @@ egg_flow_box_accessible_is_child_selected (AtkSelection *selection,
static void atk_selection_interface_init (AtkSelectionIface *iface)
{
iface->add_selection = egg_flow_box_accessible_add_selection;
+ iface->remove_selection = egg_flow_box_accessible_remove_selection;
iface->clear_selection = egg_flow_box_accessible_clear_selection;
iface->ref_selection = egg_flow_box_accessible_ref_selection;
iface->get_selection_count = egg_flow_box_accessible_get_selection_count;
diff --git a/egg-flow-box.c b/egg-flow-box.c
index e65792e..e09e25d 100644
--- a/egg-flow-box.c
+++ b/egg-flow-box.c
@@ -1158,8 +1158,6 @@ egg_flow_box_size_allocate (GtkWidget *widget,
gint extra_line_pixels = 0, extra_per_line = 0, extra_line_extra = 0;
gint i, this_line_size;
GSequenceIter *iter;
- gint focus_width;
- gint focus_pad;
child_allocation.x = 0;
child_allocation.y = 0;
@@ -2553,7 +2551,6 @@ autoscroll_cb (GtkWidget *widget,
gdouble factor;
gdouble increment;
gdouble value;
- gboolean handled;
if (priv->orientation == GTK_ORIENTATION_HORIZONTAL)
adjustment = priv->vadjustment;
@@ -2880,7 +2877,6 @@ egg_flow_box_select_all_between (EggFlowBox *box,
EggFlowBoxChild *child2)
{
GSequenceIter *iter, *iter1, *iter2;
- EggFlowBoxChildPrivate *priv;
if (child1)
iter1 = CHILD_PRIV (child1)->iter;
@@ -3138,14 +3134,7 @@ egg_flow_box_focus (GtkWidget *widget,
EggFlowBox *box = EGG_FLOW_BOX (widget);
GtkWidget *focus_child;
GSequenceIter *iter;
-
- gboolean had_focus = FALSE;
- GtkWidget *recurse_into;
- EggFlowBoxChild *current_focus_child;
EggFlowBoxChild *next_focus_child;
- gboolean modify_selection_pressed;
- gboolean extend_selection_pressed;
- GdkModifierType state = 0;
focus_child = gtk_container_get_focus_child (GTK_CONTAINER (box));
next_focus_child = NULL;
@@ -3203,31 +3192,6 @@ egg_flow_box_focus (GtkWidget *widget,
return TRUE;
}
-typedef struct {
- EggFlowBoxChild *child;
- GtkStateFlags state;
-} ChildFlags;
-
-static ChildFlags *
-child_flags_find_or_add (ChildFlags *array,
- gint *array_length,
- EggFlowBoxChild *to_find)
-{
- gint i;
-
- for (i = 0; i < *array_length; i++)
- {
- if (array[i].child == to_find)
- return &array[i];
- }
-
- *array_length = *array_length + 1;
- array[*array_length - 1].child = to_find;
- array[*array_length - 1].state = 0;
-
- return &array[*array_length - 1];
-}
-
static void
egg_flow_box_add_move_binding (GtkBindingSet *binding_set,
guint keyval,
@@ -3307,7 +3271,6 @@ egg_flow_box_move_cursor (EggFlowBox *box,
gint page_size;
GSequenceIter *iter;
gint start;
- gint end;
GtkAdjustment *adjustment;
gboolean vertical;
@@ -3397,7 +3360,6 @@ egg_flow_box_move_cursor (EggFlowBox *box,
iter = CHILD_PRIV (child)->iter;
gtk_widget_get_allocation (GTK_WIDGET (child), &allocation);
start = vertical ? allocation.x : allocation.y;
- end = start;
if (count < 0)
{
@@ -3449,7 +3411,6 @@ egg_flow_box_move_cursor (EggFlowBox *box,
}
}
gtk_widget_get_allocation (GTK_WIDGET (child), &allocation);
- end = vertical ? allocation.x : allocation.y;
}
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]