[gnome-disk-utility/udisks2-port] Make GduVolumeGrid derive from GtkWidget instead of GtkDrawingArea
- From: David Zeuthen <davidz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-disk-utility/udisks2-port] Make GduVolumeGrid derive from GtkWidget instead of GtkDrawingArea
- Date: Sun, 13 Mar 2011 21:50:43 +0000 (UTC)
commit aff31bfd28e8119664f0aa2e7cedd39dd253ef05
Author: David Zeuthen <davidz redhat com>
Date: Sun Mar 13 17:50:34 2011 -0400
Make GduVolumeGrid derive from GtkWidget instead of GtkDrawingArea
Signed-off-by: David Zeuthen <davidz redhat com>
src/palimpsest/gduvolumegrid.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/palimpsest/gduvolumegrid.c b/src/palimpsest/gduvolumegrid.c
index f9e4826..3c037ec 100644
--- a/src/palimpsest/gduvolumegrid.c
+++ b/src/palimpsest/gduvolumegrid.c
@@ -98,7 +98,7 @@ grid_element_free (GridElement *element)
typedef struct _GduVolumeGridClass GduVolumeGridClass;
struct _GduVolumeGrid
{
- GtkDrawingArea parent;
+ GtkWidget parent;
UDisksClient *client;
GDBusObjectProxy *block_device;
@@ -117,7 +117,7 @@ struct _GduVolumeGrid
struct _GduVolumeGridClass
{
- GtkDrawingAreaClass parent_class;
+ GtkWidgetClass parent_class;
/* signals */
void (*changed) (GduVolumeGrid *grid);
@@ -163,7 +163,7 @@ static void on_interface_proxy_properties_changed (GDBusProxyManager *manager,
const gchar *const *invalidated_properties,
gpointer user_data);
-G_DEFINE_TYPE (GduVolumeGrid, gdu_volume_grid, GTK_TYPE_DRAWING_AREA)
+G_DEFINE_TYPE (GduVolumeGrid, gdu_volume_grid, GTK_TYPE_WIDGET)
static guint get_depth (GList *elements);
@@ -610,6 +610,7 @@ static void
gdu_volume_grid_init (GduVolumeGrid *grid)
{
gtk_widget_set_can_focus (GTK_WIDGET (grid), TRUE);
+ gtk_widget_set_app_paintable (GTK_WIDGET (grid), TRUE);
}
GtkWidget *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]