[gtk+/wip/listbox] GtkListBox: Remove some unnecessary code
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/listbox] GtkListBox: Remove some unnecessary code
- Date: Tue, 11 Jun 2013 13:22:39 +0000 (UTC)
commit d51cf3ae5ba51453316798b4accd823932d76ff9
Author: Alexander Larsson <alexl redhat com>
Date: Tue Jun 11 15:22:09 2013 +0200
GtkListBox: Remove some unnecessary code
the unhighlight call already NULLs out drag_highlighted_row
gtk/gtklistbox.c | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtklistbox.c b/gtk/gtklistbox.c
index 958c756..20e8d98 100644
--- a/gtk/gtklistbox.c
+++ b/gtk/gtklistbox.c
@@ -1871,7 +1871,6 @@ void
gtk_list_box_drag_highlight_row (GtkListBox *list_box, GtkListBoxRow *row)
{
GtkListBoxPrivate *priv = list_box->priv;
- GtkListBoxRow *old_highlight;
g_return_if_fail (list_box != NULL);
g_return_if_fail (row != NULL);
@@ -1881,11 +1880,7 @@ gtk_list_box_drag_highlight_row (GtkListBox *list_box, GtkListBoxRow *row)
gtk_list_box_drag_unhighlight_row (list_box);
gtk_drag_highlight (GTK_WIDGET (row));
-
- old_highlight = priv->drag_highlighted_row;
priv->drag_highlighted_row = g_object_ref (row);
- if (old_highlight)
- g_object_unref (old_highlight);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]