[gtk+] GailProgressBar: make value setters work



commit ba6107d39ae155bab086f3d2673e047f64571a51
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Feb 17 13:20:27 2011 -0500

    GailProgressBar: make value setters work

 modules/other/gail/gailprogressbar.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/modules/other/gail/gailprogressbar.c b/modules/other/gail/gailprogressbar.c
index 0e22764..cfa6315 100644
--- a/modules/other/gail/gailprogressbar.c
+++ b/modules/other/gail/gailprogressbar.c
@@ -92,6 +92,8 @@ gail_progress_bar_get_current_value (AtkValue   *obj,
 
   widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (obj));
 
+  memset (value, 0, sizeof (GValue));
+  g_value_init (value, G_TYPE_DOUBLE);
   g_value_set_double (value, gtk_progress_bar_get_fraction (GTK_PROGRESS_BAR (widget)));
 }
 
@@ -101,6 +103,8 @@ gail_progress_bar_get_maximum_value (AtkValue   *obj,
 {
   g_return_if_fail (GAIL_IS_PROGRESS_BAR (obj));
 
+  memset (value, 0, sizeof (GValue));
+  g_value_init (value, G_TYPE_DOUBLE);
   g_value_set_double (value, 1.0);
 }
 
@@ -110,6 +114,8 @@ gail_progress_bar_get_minimum_value (AtkValue    *obj,
 {
   g_return_if_fail (GAIL_IS_PROGRESS_BAR (obj));
 
+  memset (value, 0, sizeof (GValue));
+  g_value_init (value, G_TYPE_DOUBLE);
   g_value_set_double (value, 0.0);
 }
 



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