[gtk+/quartz-integration: 441/563] GtkLabelAccessible: avoid some pointless variables



commit 1537d64c214bff9c9f3fac610e15064a46dde4c9
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Jun 26 00:38:20 2011 -0400

    GtkLabelAccessible: avoid some pointless variables

 gtk/a11y/gtklabelaccessible.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/gtk/a11y/gtklabelaccessible.c b/gtk/a11y/gtklabelaccessible.c
index a770112..ca3d04c 100644
--- a/gtk/a11y/gtklabelaccessible.c
+++ b/gtk/a11y/gtklabelaccessible.c
@@ -391,13 +391,12 @@ static gint
 gtk_label_accessible_get_n_selections (AtkText *text)
 {
   GtkWidget *widget;
-  gint start, end;
 
   widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (text));
   if (widget == NULL)
     return 0;
 
-  if (gtk_label_get_selection_bounds (GTK_LABEL (widget), &start, &end))
+  if (gtk_label_get_selection_bounds (GTK_LABEL (widget), NULL, NULL))
     return 1;
 
   return 0;
@@ -416,11 +415,11 @@ gtk_label_accessible_get_selection (AtkText *text,
   if (widget == NULL)
     return NULL;
 
-  label = GTK_LABEL (widget);
-
   if (selection_num != 0)
     return NULL;
 
+  label = GTK_LABEL (widget);
+
   if (gtk_label_get_selection_bounds (label, start_pos, end_pos))
     {
       const gchar *text;



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