diff --git a/cold.c b/cold.c index 4794d90..74f28a1 100644 --- a/cold.c +++ b/cold.c @@ -55,7 +55,7 @@ GtkWidget *get_rules_page_new(){ gtk_paned_set_start_child (GTK_PANED(hpaned), GTK_WIDGET (frame1)); gtk_paned_set_end_child (GTK_PANED(hpaned), GTK_WIDGET (frame2)); - gtk_widget_set_size_request (hpaned, 600, 600); + gtk_widget_set_size_request (hpaned, W, H); gtk_widget_set_size_request (frame1, 100, 0); // < utile seulement pour la largeur min/max // gtk_widget_set_size_request (frame2, 50, 100); diff --git a/cold.h b/cold.h index 5eaf001..e683998 100644 --- a/cold.h +++ b/cold.h @@ -1,5 +1,7 @@ #include #include +#define W 1830 +#define H 1000 void print_text(GtkWidget *widget, gpointer data); diff --git a/exec.o b/exec.o index 4fcb0fc..4154afa 100755 Binary files a/exec.o and b/exec.o differ diff --git a/hot.c b/hot.c index 113d7fb..53c2080 100644 --- a/hot.c +++ b/hot.c @@ -19,6 +19,9 @@ GtkWidget *get_space_page_new(){ gtk_progress_bar_set_show_text (buffer, TRUE); gtk_box_append (controls_box, GTK_WIDGET(buffer));//gtk_button_new_with_label ("---- buffer ----")); + + + GtkBox *XYZ_box = GTK_BOX(gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2)); // spacing = 2 // GtkWidget *scale_X = gtk_scale_button_new (0, 360, 10, NULL); < à étudier // (double min, double max, double step, const char** icons) @@ -40,8 +43,8 @@ GtkWidget *get_space_page_new(){ GtkWidget *space_grid = gtk_grid_new(); gtk_grid_attach (GTK_GRID(space_grid), GTK_WIDGET(get_scrolled_gl_area()), 0, 0, 1, 1); - gtk_grid_attach (GTK_GRID(space_grid), GTK_WIDGET(XYZ_box), 1, 0, 1, 1); - gtk_grid_attach (GTK_GRID(space_grid), GTK_WIDGET(bottom_grid), 0, 1, 2, 1); // ?! échec x_size +// gtk_grid_attach (GTK_GRID(space_grid), GTK_WIDGET(XYZ_box), 1, 0, 1, 1); +// gtk_grid_attach (GTK_GRID(space_grid), GTK_WIDGET(bottom_grid), 0, 1, 2, 1); // ?! échec x_size // gtk_grid_attach (GTK_GRID(space_grid), gtk_button_new_with_label ("?"), 1, 1, 1, 1); return space_grid; diff --git a/warm.c b/warm.c index e4b24f4..3e5293e 100644 --- a/warm.c +++ b/warm.c @@ -7,8 +7,8 @@ GtkScrolledWindow *get_scrolled_gl_area(){ GtkScrolledWindow *scrolled = GTK_SCROLLED_WINDOW(gtk_scrolled_window_new()); - gtk_scrolled_window_set_min_content_width (scrolled, 628); // ad hoc ... - gtk_scrolled_window_set_min_content_height (scrolled, 600); + gtk_scrolled_window_set_min_content_width (scrolled, W); + gtk_scrolled_window_set_min_content_height (scrolled, H); // GtkAdjustment *width = gtk_adjustment_new (600, 300, 1000, 1, 1, 1000); // GtkAdjustment *height = gtk_adjustment_new (600, 300, 1000, 1, 1, 1000); // (value, lower, upper, step_increment, page_increment, page_size)