[anjuta] anjuta-tabber: don't iterate list to check if node is first/last
- From: Carl-Anton Ingmarsson <carlantoni src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] anjuta-tabber: don't iterate list to check if node is first/last
- Date: Sun, 14 Apr 2013 18:51:50 +0000 (UTC)
commit b125900140e69cb046da8c3b45872e3046ed6e0e
Author: Carl-Anton Ingmarsson <ca ingmarsson gmail com>
Date: Fri Apr 12 02:57:01 2013 +0200
anjuta-tabber: don't iterate list to check if node is first/last
https://bugzilla.gnome.org/show_bug.cgi?id=697923
libanjuta/anjuta-tabber.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libanjuta/anjuta-tabber.c b/libanjuta/anjuta-tabber.c
index 8c43229..85020a9 100644
--- a/libanjuta/anjuta-tabber.c
+++ b/libanjuta/anjuta-tabber.c
@@ -460,9 +460,9 @@ anjuta_tabber_size_allocate(GtkWidget* widget, GtkAllocation* allocation)
gtk_style_context_get_padding (context, state, &tab_padding);
gtk_style_context_restore (context);
- if (child == g_list_first (tabber->priv->children))
+ if (child->prev == NULL)
begin_tab += tab_overlap;
- if (child == g_list_last (tabber->priv->children))
+ if (child->next == NULL)
end_tab += tab_overlap;
gtk_widget_get_preferred_width (child_widget, &minimal,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]