25 #include "pips_config.h"
31 #include <sys/resource.h>
52 unsigned short int bitmap[256];
60 #include "callgraph.icon"
62 #include "parallel.icon"
63 } }, {
"sequential", {
64 #include "sequential.icon"
70 #include "logo_pips_small.xbm"
77 SERVER_IMAGE, XV_WIDTH, 64, XV_HEIGHT, 64, SERVER_IMAGE_BITS,
87 char * inverted_pips_icon;
104 SERVER_IMAGE_X_BITS, logo_pips_small_bits, XV_WIDTH, logo_pips_small_width,
105 XV_HEIGHT, logo_pips_small_height, NULL);
107 inverted_pips_icon = (
char *)
malloc(
sizeof(logo_pips_small_bits));
108 for (i = 0; i <
sizeof(logo_pips_small_bits); i++)
109 inverted_pips_icon[i] = ~logo_pips_small_bits[i];
111 SERVER_IMAGE_X_BITS, inverted_pips_icon, XV_WIDTH,
112 logo_pips_small_width, XV_HEIGHT, logo_pips_small_height, NULL);
113 free(inverted_pips_icon);
120 Server_image
image = NULL;
131 Rect image_rect, label_rect;
134 width = xv_get(
image, XV_WIDTH);
135 height = xv_get(
image, XV_HEIGHT);
137 rect_construct(&image_rect, 0, 0, width, height);
142 icon = (Icon) xv_get(frame, FRAME_ICON);
147 xv_set(icon, ICON_IMAGE,
image, XV_WIDTH, width, XV_HEIGHT, height
149 ICON_LABEL, icon_text, ICON_LABEL_RECT, &label_rect, NULL);
151 icon = (Icon) xv_create(NULL, ICON, ICON_IMAGE,
image, XV_WIDTH,
153 ICON_IMAGE_RECT, &image_rect, ICON_LABEL, icon_text,
154 ICON_LABEL_RECT, &label_rect, NULL);
156 xv_set(frame, FRAME_ICON, icon, NULL);
GtkWidget * main_frame
If we are in the Emacs mode, the log_frame is no longer really used:
static pips_icons_type pips_icons_data[LAST_ICON]
static Server_image pips_icon_server_image[LAST_ICON]
void set_pips_icon(Frame frame, char *icon_name, char *icon_text)
Server_image wpips_positive_server_image
To store the negative image for a blinking icon in the interrupt button:
Server_image create_status_window_pips_image()
void create_icons()
include "logo_pips_small.xpm"
Server_image wpips_negative_server_image
code taken from http://fast-edge.googlecode.com and adapted to c99