From 8c88737028b19c32aff2441990b47e03175c4526 Mon Sep 17 00:00:00 2001 From: Jean Sirmai Date: Sat, 27 Jul 2024 12:02:23 +0200 Subject: [PATCH] WIP: in 'rules' two panes >> (1) rules tree & (2) a single rule --- src/widget/rules.c | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/src/widget/rules.c b/src/widget/rules.c index cd1abde..9dc663c 100644 --- a/src/widget/rules.c +++ b/src/widget/rules.c @@ -33,18 +33,6 @@ #define H_IMAGE_LOCAL 960 static GtkWidget *rec_selected_rules_vpaned_new() { - GtkPaned *selected_rule_pane = GTK_PANED (gtk_paned_new (GTK_ORIENTATION_VERTICAL)); - gtk_widget_set_size_request (GTK_WIDGET (selected_rule_pane), W_IMAGE_LOCAL, H_IMAGE_LOCAL); - // if mode EDIT set_shrink FALSE < TODO - gtk_paned_set_shrink_start_child (selected_rule_pane, FALSE); - gtk_paned_set_shrink_end_child (selected_rule_pane, FALSE); - - GtkBox *up_box = GTK_BOX (gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2)); - gtk_box_append (up_box, GTK_WIDGET (gtk_picture_new_for_filename - ("/home/jean/Gem-Graph/gem-graph-client/data/image/glutamate.png"))); - gtk_box_append (up_box, GTK_WIDGET (gtk_separator_new (GTK_ORIENTATION_VERTICAL))); - gtk_box_append (up_box, GTK_WIDGET (gtk_picture_new_for_filename - ("/home/jean/Gem-Graph/gem-graph-client/data/image/glutamine.png"))); GtkBox *bottom_box = GTK_BOX (gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2)); gtk_box_append (bottom_box, GTK_WIDGET (gtk_separator_new (GTK_ORIENTATION_VERTICAL))); @@ -53,11 +41,9 @@ static GtkWidget *rec_selected_rules_vpaned_new() { gtk_box_append (bottom_box, GTK_WIDGET (gtk_separator_new (GTK_ORIENTATION_VERTICAL))); gtk_box_append (bottom_box, GTK_WIDGET (gtk_picture_new_for_filename ("/home/jean/Gem-Graph/gem-graph-client/data/image/ADP.png"))); - gtk_paned_set_start_child (selected_rule_pane, GTK_WIDGET (up_box)); - gtk_paned_set_end_child (selected_rule_pane, GTK_WIDGET (bottom_box)); - gtk_paned_set_position (selected_rule_pane, 50); + gtk_widget_set_size_request (GTK_WIDGET (bottom_box), W_IMAGE_LOCAL, H_IMAGE_LOCAL); - return GTK_WIDGET (selected_rule_pane); + return GTK_WIDGET (bottom_box); } static GtkWidget *rec_rules_tree_hpaned_new(){