summaryrefslogtreecommitdiff
path: root/src/trg-torrent-graph.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-09-18 16:21:04 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-09-18 16:21:04 +0000
commit79cd86dbfd5b2ea0963c84b48088ec189acfc795 (patch)
tree535769200823fdaa1fec9795fe986668cb33bdee /src/trg-torrent-graph.c
parent63763bb00502e3c235e478ec50e097904c774696 (diff)
Big changeset, may break stuff. Unfortunately you can't magically jump into the UI thread using gdk_threads_enter/leave() on Windows, the only way is to schedule a callback using g_idle_add. This required a lot of reworking. Good news, Windows support actually works now \o/
Diffstat (limited to 'src/trg-torrent-graph.c')
-rw-r--r--src/trg-torrent-graph.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/trg-torrent-graph.c b/src/trg-torrent-graph.c
index 3f599ae..b5fd187 100644
--- a/src/trg-torrent-graph.c
+++ b/src/trg-torrent-graph.c
@@ -91,6 +91,7 @@ trg_torrent_graph_get_property(GObject * object, guint property_id,
switch (property_id) {
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID(object, property_id, pspec);
+ break;
}
}
@@ -101,6 +102,7 @@ trg_torrent_graph_set_property(GObject * object, guint property_id,
switch (property_id) {
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID(object, property_id, pspec);
+ break;
}
}
@@ -518,8 +520,6 @@ static GObject *trg_torrent_graph_constructor(GType type,
gtk_box_set_homogeneous(GTK_BOX(object), FALSE);
- gtk_widget_set_size_request(GTK_WIDGET(object), -1, GRAPH_MIN_HEIGHT);
-
priv->disp = gtk_drawing_area_new();
g_signal_connect(G_OBJECT(priv->disp), "expose_event",
G_CALLBACK(trg_torrent_graph_expose), object);