WIP: using size_requests about images and labels...
This commit is contained in:
parent
8a94b02013
commit
ba87f7212d
|
@ -32,17 +32,39 @@
|
|||
#include "../../../include/signal.h"
|
||||
|
||||
|
||||
void *get_selected_rule() {
|
||||
|
||||
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)));
|
||||
gtk_box_append (bottom_box, GTK_WIDGET (gtk_picture_new_for_filename
|
||||
static void *get_rule_before()
|
||||
{
|
||||
GtkBox *rule_before = GTK_BOX (gtk_box_new (GTK_ORIENTATION_VERTICAL, 2));
|
||||
gtk_box_append (rule_before, GTK_WIDGET (gtk_separator_new (GTK_ORIENTATION_VERTICAL)));
|
||||
gtk_box_append (rule_before, GTK_WIDGET (gtk_picture_new_for_filename
|
||||
("/home/jean/Gem-Graph/gem-graph-client/data/image/AMP.png")));
|
||||
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_widget_set_size_request (GTK_WIDGET (bottom_box), W_IMAGE_LOCAL, H_IMAGE_LOCAL);
|
||||
|
||||
return GTK_WIDGET (bottom_box);
|
||||
gtk_box_append (rule_before, GTK_WIDGET (gtk_separator_new (GTK_ORIENTATION_VERTICAL)));
|
||||
gtk_box_append (rule_before, GTK_WIDGET (gtk_label_new ("rule_before")));
|
||||
gtk_widget_set_size_request (GTK_WIDGET (rule_before), W_IMAGE_LOCAL / 2, H_IMAGE_LOCAL / 2);
|
||||
return GTK_WIDGET (rule_before);
|
||||
}
|
||||
|
||||
static void *get_rule_after()
|
||||
{
|
||||
GtkBox *rule_after = GTK_BOX (gtk_box_new (GTK_ORIENTATION_VERTICAL, 2));
|
||||
gtk_box_append (rule_after, GTK_WIDGET (gtk_separator_new (GTK_ORIENTATION_VERTICAL)));
|
||||
gtk_box_append (rule_after, GTK_WIDGET (gtk_picture_new_for_filename
|
||||
("/home/jean/Gem-Graph/gem-graph-client/data/image/ADP.png")));
|
||||
gtk_box_append (rule_after, GTK_WIDGET (gtk_separator_new (GTK_ORIENTATION_VERTICAL)));
|
||||
gtk_box_append (rule_after, GTK_WIDGET (gtk_label_new ("rule_after")));
|
||||
gtk_widget_set_size_request (GTK_WIDGET (rule_after), W_IMAGE_LOCAL / 2, H_IMAGE_LOCAL / 2);
|
||||
return GTK_WIDGET (rule_after);
|
||||
}
|
||||
|
||||
void *get_selected_rule() {
|
||||
|
||||
GtkBox *selected_rule = GTK_BOX (gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2));
|
||||
gtk_box_append (selected_rule, GTK_WIDGET (gtk_separator_new (GTK_ORIENTATION_VERTICAL)));
|
||||
gtk_box_append (selected_rule, GTK_WIDGET (get_rule_before()));
|
||||
gtk_box_append (selected_rule, GTK_WIDGET (gtk_separator_new (GTK_ORIENTATION_VERTICAL)));
|
||||
gtk_box_append (selected_rule, GTK_WIDGET (get_rule_after()));
|
||||
gtk_widget_set_size_request (GTK_WIDGET (selected_rule), W_IMAGE_LOCAL, H_IMAGE_LOCAL);
|
||||
|
||||
return GTK_WIDGET (selected_rule);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue