[libgames-support] Rename possibly confusing variable



commit 6993aef24a4fb63883459269e64ea5c819b87771
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sat Sep 19 18:16:37 2015 -0500

    Rename possibly confusing variable

 games/scores/context.vala |    8 ++++----
 games/scores/dialog.vala  |    4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/games/scores/context.vala b/games/scores/context.vala
index df6e986..562a957 100644
--- a/games/scores/context.vala
+++ b/games/scores/context.vala
@@ -34,7 +34,7 @@ public class Context : Object
     /* All these variables are needed by dialog and as parameters to Dialog constructor. */
     private Category? current_category = null;
     private Style style;
-    private string dialog_label;
+    private string category_type;
     private Gtk.Window? game_window;
     private string app_name;
 
@@ -57,7 +57,7 @@ public class Context : Object
     public delegate Category CategoryRequestFunc (string category_key);
     private CategoryRequestFunc category_request;
 
-    public Context (string app_name, string dialog_label, Gtk.Window? game_window, CategoryRequestFunc 
category_request, Style style)
+    public Context (string app_name, string category_type, Gtk.Window? game_window, CategoryRequestFunc 
category_request, Style style)
     {
         this.game_window = game_window;
         this.category_request = (key) => { return category_request (key); };
@@ -77,7 +77,7 @@ public class Context : Object
         }
 
         var base_name = app_name;
-        this.dialog_label = dialog_label;
+        this.category_type = category_type;
         this.app_name = app_name;
 
         user_score_dir = Path.build_filename (Environment.get_user_data_dir (), base_name, "scores", null);
@@ -288,7 +288,7 @@ public class Context : Object
     internal void run_dialog_internal (Score? new_high_score) throws Error
         requires (game_window != null)
     {
-        var dialog = new Dialog (this, dialog_label, style, new_high_score, current_category, game_window, 
app_name);
+        var dialog = new Dialog (this, category_type, style, new_high_score, current_category, game_window, 
app_name);
         dialog.run ();
         dialog.destroy ();
 
diff --git a/games/scores/dialog.vala b/games/scores/dialog.vala
index ab9649f..4039db0 100644
--- a/games/scores/dialog.vala
+++ b/games/scores/dialog.vala
@@ -36,7 +36,7 @@ private class Dialog : Gtk.Dialog
     private Score? new_high_score;
     private Category? scores_active_category;
 
-    public Dialog (Context context, string dialog_label, Style style, Score? new_high_score, Category? 
current_cat, Gtk.Window window, string app_name)
+    public Dialog (Context context, string category_type, Style style, Score? new_high_score, Category? 
current_cat, Gtk.Window window, string app_name)
     {
         Object (use_header_bar : 1);
 
@@ -102,7 +102,7 @@ private class Dialog : Gtk.Dialog
         var hdiv = new Gtk.Separator (Gtk.Orientation.HORIZONTAL);
         vbox.pack_start (hdiv, false, false, 0);
 
-        var label = new Gtk.Label (dialog_label);
+        var label = new Gtk.Label (category_type);
         label.use_markup = true;
         label.halign = Gtk.Align.CENTER;
         catbar.pack_start (label, false, false, 0);


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