#define W 1830 #define H 1000
This commit is contained in:
parent
71a63c7848
commit
7cb3804d01
2
cold.c
2
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_start_child (GTK_PANED(hpaned), GTK_WIDGET (frame1));
|
||||||
gtk_paned_set_end_child (GTK_PANED(hpaned), GTK_WIDGET (frame2));
|
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 (frame1, 100, 0); // < utile seulement pour la largeur min/max
|
||||||
// gtk_widget_set_size_request (frame2, 50, 100);
|
// gtk_widget_set_size_request (frame2, 50, 100);
|
||||||
|
|
||||||
|
|
2
cold.h
2
cold.h
|
@ -1,5 +1,7 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
#define W 1830
|
||||||
|
#define H 1000
|
||||||
|
|
||||||
void print_text(GtkWidget *widget, gpointer data);
|
void print_text(GtkWidget *widget, gpointer data);
|
||||||
|
|
||||||
|
|
7
hot.c
7
hot.c
|
@ -19,6 +19,9 @@ GtkWidget *get_space_page_new(){
|
||||||
gtk_progress_bar_set_show_text (buffer, TRUE);
|
gtk_progress_bar_set_show_text (buffer, TRUE);
|
||||||
gtk_box_append (controls_box, GTK_WIDGET(buffer));//gtk_button_new_with_label ("---- buffer ----"));
|
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
|
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
|
// GtkWidget *scale_X = gtk_scale_button_new (0, 360, 10, NULL); < à étudier
|
||||||
// (double min, double max, double step, const char** icons)
|
// (double min, double max, double step, const char** icons)
|
||||||
|
@ -40,8 +43,8 @@ GtkWidget *get_space_page_new(){
|
||||||
|
|
||||||
GtkWidget *space_grid = gtk_grid_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(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(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(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);
|
// gtk_grid_attach (GTK_GRID(space_grid), gtk_button_new_with_label ("?"), 1, 1, 1, 1);
|
||||||
|
|
||||||
return space_grid;
|
return space_grid;
|
||||||
|
|
4
warm.c
4
warm.c
|
@ -7,8 +7,8 @@
|
||||||
|
|
||||||
GtkScrolledWindow *get_scrolled_gl_area(){
|
GtkScrolledWindow *get_scrolled_gl_area(){
|
||||||
GtkScrolledWindow *scrolled = GTK_SCROLLED_WINDOW(gtk_scrolled_window_new());
|
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_width (scrolled, W);
|
||||||
gtk_scrolled_window_set_min_content_height (scrolled, 600);
|
gtk_scrolled_window_set_min_content_height (scrolled, H);
|
||||||
// GtkAdjustment *width = gtk_adjustment_new (600, 300, 1000, 1, 1, 1000);
|
// GtkAdjustment *width = gtk_adjustment_new (600, 300, 1000, 1, 1, 1000);
|
||||||
// GtkAdjustment *height = 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)
|
// (value, lower, upper, step_increment, page_increment, page_size)
|
||||||
|
|
Loading…
Reference in New Issue