FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora/Linux Management Tools

 
 
LinkBack Thread Tools
 
Old 10-04-2008, 08:15 PM
Guido GŁnther
 
Default : virt-manager: add sparkline "filled" property

add "filled" property so sparklines can be filled or not without recompiling
-- Guido

diff -r 59fd3136f525 src/graphWidgets/sparkline.c
--- a/src/graphWidgets/sparkline.c Thu Oct 02 15:15:53 2008 +0200
+++ b/src/graphWidgets/sparkline.c Sat Oct 04 12:16:11 2008 +0200
@@ -41,7 +41,8 @@

enum {
PROP_0,
- PROP_DATAARRAY
+ PROP_DATAARRAY,
+ PROP_FILLED,
};

static gpointer parent_class;
@@ -88,7 +89,6 @@
priv = GTK_SPARKLINE_GET_PRIVATE (sparkline);

priv->filled = TRUE;
- // priv->filled = FALSE;
priv->data_array = g_value_array_new(0);

g_signal_connect (G_OBJECT (sparkline), "expose_event",
@@ -124,6 +124,13 @@
0,
G_PARAM_READABLE | G_PARAM_WRITABLE),
G_PARAM_READABLE | G_PARAM_WRITABLE));
+ g_object_class_install_property (object_class,
+ PROP_FILLED,
+ g_param_spec_boolean ("filled",
+ "Filled",
+ "fill space under sparcline",
+ TRUE,
+ G_PARAM_READABLE | G_PARAM_WRITABLE));

g_type_class_add_private (object_class, sizeof (GtkSparklinePrivate));
}
@@ -153,6 +160,10 @@
{
case PROP_DATAARRAY:
g_value_set_boxed(value, priv->data_array);
+ break;
+
+ case PROP_FILLED:
+ g_value_set_boolean(value, priv->filled);
break;

default:
@@ -178,6 +189,10 @@
g_value_array_free(priv->data_array);
priv->data_array = g_value_array_copy(g_value_get_boxed(value));
gtk_widget_queue_draw(GTK_WIDGET(object));
+ break;
+
+ case PROP_FILLED:
+ priv->filled = g_value_get_boolean(value);
break;

default:

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 10-06-2008, 10:28 AM
"Daniel P. Berrange"
 
Default : virt-manager: add sparkline "filled" property

On Sat, Oct 04, 2008 at 10:15:02PM +0200, Guido G?nther wrote:
> add "filled" property so sparklines can be filled or not without recompiling

ACK

Daniel
--
|: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 

Thread Tools




All times are GMT. The time now is 01:23 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org