diff --git a/cold.c b/cold.c index cd9dab8..ec57ad4 100644 --- a/cold.c +++ b/cold.c @@ -258,8 +258,14 @@ void activate (GtkApplication *app, gpointer user_data) { gtk_notebook_append_page (edit_notebook, get_edit_discuss_page_new(), gtk_label_new ("interpret")); gtk_notebook_append_page (edit_notebook, get_edit_help_page_new(), gtk_label_new ("help")); - if (0) gtk_window_set_child (window, GTK_WIDGET(edit_notebook)); - else gtk_window_set_child (window, GTK_WIDGET(run_notebook)); + GtkWidget *run_xor_edit_horizontal_pane = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL); + GtkWidget *frame_edits = gtk_frame_new ("Situations"); // facilitate each situation identification + gtk_widget_set_size_request (run_xor_edit_horizontal_pane, W_IMAGE, H_STYLES_PANE); + gtk_widget_set_size_request (GTK_WIDGET (frame_edits), 0, H_STYLES_PANE); // < utile pour la largeur min/max + gtk_paned_set_start_child (GTK_PANED(run_xor_edit_horizontal_pane), GTK_WIDGET (run_notebook)); + gtk_paned_set_end_child (GTK_PANED(run_xor_edit_horizontal_pane), GTK_WIDGET (edit_notebook)); + gtk_paned_set_position (GTK_PANED (run_xor_edit_horizontal_pane), W_IMAGE + 90); // ! WARNING ! '90' is AD HOC + gtk_window_set_child (window, GTK_WIDGET(run_xor_edit_horizontal_pane)); gtk_window_present (GTK_WINDOW (window)); } diff --git a/cold.o b/cold.o index a6ab77d..196e8cd 100644 Binary files a/cold.o and b/cold.o differ diff --git a/hot.c b/hot.c index 70abca0..b0b44c8 100644 --- a/hot.c +++ b/hot.c @@ -15,28 +15,28 @@ GtkWidget *get_scroll_interest_0(){ GtkBox *get_objects_box(){ GtkBox *objects_box = GTK_BOX(gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0)); - gtk_box_append (objects_box, GTK_WIDGET (gtk_label_new (" membrane "))); - gtk_box_append (objects_box, GTK_WIDGET (gtk_label_new (" co-enzyme A "))); - gtk_box_append (objects_box, GTK_WIDGET (gtk_label_new (" ribosome "))); - gtk_box_append (objects_box, GTK_WIDGET (gtk_label_new (" cytochrome C "))); - gtk_box_append (objects_box, GTK_WIDGET (gtk_label_new (" ATP synthase "))); - gtk_box_append (objects_box, GTK_WIDGET (gtk_label_new (" chromosome "))); + gtk_box_append (objects_box, GTK_WIDGET (gtk_label_new (" membrane "))); + gtk_box_append (objects_box, GTK_WIDGET (gtk_label_new (" co-enzyme A "))); + gtk_box_append (objects_box, GTK_WIDGET (gtk_label_new (" ribosome "))); + gtk_box_append (objects_box, GTK_WIDGET (gtk_label_new (" cytochrome C "))); + gtk_box_append (objects_box, GTK_WIDGET (gtk_label_new (" ATP synthase "))); + gtk_box_append (objects_box, GTK_WIDGET (gtk_label_new (" chromosome "))); return objects_box; } GtkBox *get_situations_box(){ GtkBox *situations_box = GTK_BOX(gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0)); - gtk_box_append (situations_box, GTK_WIDGET (gtk_label_new (" transcription "))); - gtk_box_append (situations_box, GTK_WIDGET (gtk_label_new (" épissage "))); - gtk_box_append (situations_box, GTK_WIDGET (gtk_label_new (" translation "))); - gtk_box_append (situations_box, GTK_WIDGET (gtk_label_new (" transport Na/K "))); - gtk_box_append (situations_box, GTK_WIDGET (gtk_label_new (" ubiquitination "))); - gtk_box_append (situations_box, GTK_WIDGET (gtk_label_new (" rotation du moteur flagellaire "))); + gtk_box_append (situations_box, GTK_WIDGET (gtk_label_new (" transcription "))); + gtk_box_append (situations_box, GTK_WIDGET (gtk_label_new (" épissage "))); + gtk_box_append (situations_box, GTK_WIDGET (gtk_label_new (" translation "))); + gtk_box_append (situations_box, GTK_WIDGET (gtk_label_new (" transport Na/K "))); + gtk_box_append (situations_box, GTK_WIDGET (gtk_label_new (" ubiquitination "))); + gtk_box_append (situations_box, GTK_WIDGET (gtk_label_new (" rotation du moteur flagellaire "))); return situations_box; } static GtkWidget *get_frame_objects(){ - GtkWidget *frame_objects = gtk_frame_new ("Objects"); // defines each class of object transparence + GtkWidget *frame_objects = gtk_frame_new (" Objects"); // defines each class of object transparence gtk_widget_set_size_request (frame_objects, 0, H_STYLES_PANE); // < utile seulement pour la largeur min/max // compute_child_allocation (frame_objects, GdkRectangle); // gtk_frame_set_child (frame_objects, get_scroll_interest_0()); @@ -45,7 +45,7 @@ static GtkWidget *get_frame_objects(){ } static GtkWidget *get_frame_situations(){ - GtkWidget *frame_situations = gtk_frame_new ("Situations"); // facilitates each situation identification + GtkWidget *frame_situations = gtk_frame_new (" Situations"); // facilitates each situation identification gtk_widget_set_size_request (GTK_WIDGET (frame_situations), 0, H_STYLES_PANE); // < utile seulement pour la largeur min/max gtk_frame_set_child (GTK_FRAME (frame_situations), GTK_WIDGET (get_situations_box())); return frame_situations; @@ -53,9 +53,6 @@ static GtkWidget *get_frame_situations(){ GtkWidget *get_objects_and_situations_horizontal_pane(){ GtkWidget *objects_and_situations_horizontal_pane = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL); - GtkWidget *frame_situations = gtk_frame_new ("Situations"); // facilitate each situation identification - gtk_widget_set_size_request (objects_and_situations_horizontal_pane, W_IMAGE, H_STYLES_PANE); - gtk_widget_set_size_request (GTK_WIDGET (frame_situations), 100, H_STYLES_PANE); // < utile seulement pour la largeur min/max gtk_paned_set_start_child (GTK_PANED(objects_and_situations_horizontal_pane), GTK_WIDGET (get_frame_objects())); gtk_paned_set_end_child (GTK_PANED(objects_and_situations_horizontal_pane), GTK_WIDGET (get_frame_situations())); return objects_and_situations_horizontal_pane; diff --git a/hot.o b/hot.o index 4e44abb..2d1eed0 100644 Binary files a/hot.o and b/hot.o differ diff --git a/myprogram b/myprogram index 1b9f16c..8d95fb6 100755 Binary files a/myprogram and b/myprogram differ