WIP: in 'rules' two panes >> (1) rules tree & (2) a single rule
This commit is contained in:
parent
52b9a000ef
commit
8c88737028
|
@ -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(){
|
||||
|
|
Loading…
Reference in New Issue