File: pixmaps.c

package info (click to toggle)
diasce 1.0.5-1.1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,964 kB
  • ctags: 1,732
  • sloc: ansic: 26,805; sh: 2,999; makefile: 399; yacc: 318
file content (50 lines) | stat: -rw-r--r-- 2,588 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
 * diasce
 * Copyright (C) 2001  Ander Lozano P�rez
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 * Ander Lozano P�rez
 * ander1@wanadoo.es
 */

#include "main.h"
#include "xpm.h"

//*******************************************************************

void pix_inicializar(void)
{
	GdkBitmap *mask;
	GtkStyle *style;
	GtkWidget *widget;
	
	style=gtk_widget_get_style(david_ventana);
	widget=lookup_widget(david_ventana,"archivos_arbol");
	
	pixmaps[PROYECTO]=gdk_pixmap_create_from_xpm_d(widget->window,&mask,&style->bg[GTK_STATE_NORMAL],xpm_proyecto);
	pixmaps[CABECERAS]=gdk_pixmap_create_from_xpm_d(widget->window,&mask,&style->bg[GTK_STATE_NORMAL],xpm_cabeceras);
	pixmaps[FUENTES]=gdk_pixmap_create_from_xpm_d(widget->window,&mask,&style->bg[GTK_STATE_NORMAL],xpm_fuentes);
	pixmaps[OTROS]=gdk_pixmap_create_from_xpm_d(widget->window,&mask,&style->bg[GTK_STATE_NORMAL],xpm_otros);
	pixmaps[ARCHIVO]=gdk_pixmap_create_from_xpm_d(widget->window,&mask,&style->bg[GTK_STATE_NORMAL],xpm_archivo);
	pixmaps[CLASES]=gdk_pixmap_create_from_xpm_d(widget->window,&mask,&style->bg[GTK_STATE_NORMAL],xpm_clases);
	pixmaps[FUNCIONES]=gdk_pixmap_create_from_xpm_d(widget->window,&mask,&style->bg[GTK_STATE_NORMAL],xpm_funciones);
	pixmaps[UNIONES]=gdk_pixmap_create_from_xpm_d(widget->window,&mask,&style->bg[GTK_STATE_NORMAL],xpm_uniones);
	pixmaps[ESTRUCURAS]=gdk_pixmap_create_from_xpm_d(widget->window,&mask,&style->bg[GTK_STATE_NORMAL],xpm_estructuras);
	pixmaps[BARIABLES]=gdk_pixmap_create_from_xpm_d(widget->window,&mask,&style->bg[GTK_STATE_NORMAL],xpm_bariables);
	pixmaps[ENUMERACIONES]=gdk_pixmap_create_from_xpm_d(widget->window,&mask,&style->bg[GTK_STATE_NORMAL],xpm_enumeraciones);
	pixmaps[TIPOS]=gdk_pixmap_create_from_xpm_d(widget->window,&mask,&style->bg[GTK_STATE_NORMAL],xpm_tipos);
	pixmaps[MIEMBRO]=gdk_pixmap_create_from_xpm_d(widget->window,&mask,&style->bg[GTK_STATE_NORMAL],xpm_miembro);
}