some widgets under the 'before' | 'after' images of the selected rule
This commit is contained in:
parent
ba87f7212d
commit
1173689ae2
|
@ -32,6 +32,32 @@
|
||||||
#include "../../../include/signal.h"
|
#include "../../../include/signal.h"
|
||||||
|
|
||||||
|
|
||||||
|
static void *get_under_rule_before()
|
||||||
|
{
|
||||||
|
GtkBox *under_rule_before_box = GTK_BOX (gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2));
|
||||||
|
gtk_box_append (under_rule_before_box,
|
||||||
|
GTK_WIDGET (gtk_label_new (" - - - - - - - - - (some widget here) - - - - - - - - - ")));
|
||||||
|
gtk_box_append (under_rule_before_box,
|
||||||
|
GTK_WIDGET (gtk_label_new ("| <> [ rule_before ] <> |")));
|
||||||
|
gtk_box_append (under_rule_before_box,
|
||||||
|
GTK_WIDGET (gtk_label_new (" - - - - - - - - - (some other widget there) - - - - - - - - - ")));
|
||||||
|
return GTK_WIDGET (under_rule_before_box);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
static void *get_under_rule_after()
|
||||||
|
{
|
||||||
|
GtkBox *under_rule_after_box = GTK_BOX (gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2));
|
||||||
|
gtk_box_append (under_rule_after_box,
|
||||||
|
GTK_WIDGET (gtk_label_new (" - - - - - - - - - (some widget here) - - - - - - - - - ")));
|
||||||
|
gtk_box_append (under_rule_after_box,
|
||||||
|
GTK_WIDGET (gtk_label_new ("| <> [ rule_after ] <> |")));
|
||||||
|
gtk_box_append (under_rule_after_box,
|
||||||
|
GTK_WIDGET (gtk_label_new (" - - - - - - - - - (some other widget there) - - - - - - - - - ")));
|
||||||
|
return GTK_WIDGET (under_rule_after_box);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
static void *get_rule_before()
|
static void *get_rule_before()
|
||||||
{
|
{
|
||||||
GtkBox *rule_before = GTK_BOX (gtk_box_new (GTK_ORIENTATION_VERTICAL, 2));
|
GtkBox *rule_before = GTK_BOX (gtk_box_new (GTK_ORIENTATION_VERTICAL, 2));
|
||||||
|
@ -39,7 +65,7 @@ static void *get_rule_before()
|
||||||
gtk_box_append (rule_before, GTK_WIDGET (gtk_picture_new_for_filename
|
gtk_box_append (rule_before, GTK_WIDGET (gtk_picture_new_for_filename
|
||||||
("/home/jean/Gem-Graph/gem-graph-client/data/image/AMP.png")));
|
("/home/jean/Gem-Graph/gem-graph-client/data/image/AMP.png")));
|
||||||
gtk_box_append (rule_before, GTK_WIDGET (gtk_separator_new (GTK_ORIENTATION_VERTICAL)));
|
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_box_append (rule_before, GTK_WIDGET (get_under_rule_before()));
|
||||||
gtk_widget_set_size_request (GTK_WIDGET (rule_before), W_IMAGE_LOCAL / 2, H_IMAGE_LOCAL / 2);
|
gtk_widget_set_size_request (GTK_WIDGET (rule_before), W_IMAGE_LOCAL / 2, H_IMAGE_LOCAL / 2);
|
||||||
return GTK_WIDGET (rule_before);
|
return GTK_WIDGET (rule_before);
|
||||||
}
|
}
|
||||||
|
@ -51,7 +77,7 @@ static void *get_rule_after()
|
||||||
gtk_box_append (rule_after, GTK_WIDGET (gtk_picture_new_for_filename
|
gtk_box_append (rule_after, GTK_WIDGET (gtk_picture_new_for_filename
|
||||||
("/home/jean/Gem-Graph/gem-graph-client/data/image/ADP.png")));
|
("/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_separator_new (GTK_ORIENTATION_VERTICAL)));
|
||||||
gtk_box_append (rule_after, GTK_WIDGET (gtk_label_new ("rule_after")));
|
gtk_box_append (rule_after, GTK_WIDGET (get_under_rule_after()));
|
||||||
gtk_widget_set_size_request (GTK_WIDGET (rule_after), W_IMAGE_LOCAL / 2, H_IMAGE_LOCAL / 2);
|
gtk_widget_set_size_request (GTK_WIDGET (rule_after), W_IMAGE_LOCAL / 2, H_IMAGE_LOCAL / 2);
|
||||||
return GTK_WIDGET (rule_after);
|
return GTK_WIDGET (rule_after);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue