[gegl-edit] Fixed gtk warnings
- From: Isaac Wagner <isaacbw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl-edit] Fixed gtk warnings
- Date: Thu, 9 Aug 2012 22:05:31 +0000 (UTC)
commit 3524550bcc0c69d559e4cf994494ebbe25f4ea37
Author: Isaac Wagner <isaacbw src gnome org>
Date: Wed Aug 8 22:56:05 2012 -0400
Fixed gtk warnings
gegl-edit/gegl-edit.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/gegl-edit/gegl-edit.c b/gegl-edit/gegl-edit.c
index fbece5f..2afc269 100644
--- a/gegl-edit/gegl-edit.c
+++ b/gegl-edit/gegl-edit.c
@@ -695,24 +695,22 @@ G_MODULE_EXPORT void activated_save(GtkMenuItem *menuitem, gpointer user_data)
G_MODULE_EXPORT void activated_new(GtkMenuItem *menuitem, gpointer user_data)
{
CallbackData *data = user_data;
- GeglNode* gegl = gegl_node_new();
-
while(g_queue_get_length(data->graph_stack) > 0)
{
GtkWidget *view = GTK_WIDGET(g_queue_pop_head(data->view_stack));
gtk_container_remove(GTK_CONTAINER(data->view_box), view);
- gtk_box_pack_start(GTK_BOX(data->view_box), GTK_WIDGET(g_queue_peek_head(data->view_stack)), TRUE, TRUE, 0);
- gtk_widget_destroy(view);
-
- GeglNode *node = g_queue_pop_head(data->graph_stack);
+ g_queue_pop_head(data->graph_stack);
}
GtkWidget *view = graph_gtk_view_new();
+ GeglNode* gegl = gegl_node_new();
+
gtk_box_pack_start(GTK_BOX(data->view_box), view, TRUE, TRUE, 0);
gtk_widget_show(view);
load_graph(GRAPH_GTK_VIEW(view), gegl, data);
g_queue_push_head(data->view_stack, view);
+
g_queue_push_head(data->graph_stack, gegl);
g_signal_connect(view, "canvas-rightclicked", G_CALLBACK(canvas_rightclicked), data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]