mirror of
git://projects.qi-hardware.com/cae-tools.git
synced 2024-12-22 23:26:27 +02:00
Move draw_circle from util.c to gui_util.c
- solidify/util.h, solidify/util.c (draw_circle), solidify/gui_util.h, solidify/gui_util.c: moved draw_circle from util.c to gui_util.c - solidify/util.c: this file is now empty. Remove it. - solidify/level.c, solidify/overlap.c: include gui_util.h instead of util.h - solidify/Makefile: replace util.o with gui_util.o
This commit is contained in:
parent
abb945e76b
commit
fd7b7223ab
@ -12,8 +12,8 @@
|
|||||||
|
|
||||||
SHELL = /bin/bash
|
SHELL = /bin/bash
|
||||||
|
|
||||||
OBJS = array.o face.o histo.o level.o matrix.o overlap.o povray.o project.o \
|
OBJS = array.o face.o gui_util.o histo.o level.o matrix.o overlap.o povray.o \
|
||||||
solidify.o style.o util.o
|
project.o solidify.o style.o
|
||||||
|
|
||||||
CFLAGS_WARN = -Wall -Wshadow -Wmissing-prototypes \
|
CFLAGS_WARN = -Wall -Wshadow -Wmissing-prototypes \
|
||||||
-Wmissing-declarations -Wno-format-zero-length
|
-Wmissing-declarations -Wno-format-zero-length
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* util.c - Common utility functions
|
* gui_util.c - GUI helper functions
|
||||||
*
|
*
|
||||||
* Written 2010 by Werner Almesberger
|
* Written 2010 by Werner Almesberger
|
||||||
* Copyright 2010 by Werner Almesberger
|
* Copyright 2010 by Werner Almesberger
|
||||||
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
#include "util.h"
|
#include "gui_util.h"
|
||||||
|
|
||||||
|
|
||||||
void draw_circle(GdkDrawable *da, GdkGC *gc, int x, int y, int r)
|
void draw_circle(GdkDrawable *da, GdkGC *gc, int x, int y, int r)
|
21
solidify/gui_util.h
Normal file
21
solidify/gui_util.h
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
/*
|
||||||
|
* gui_util.h - GUI helper functions
|
||||||
|
*
|
||||||
|
* Written 2009 by Werner Almesberger
|
||||||
|
* Copyright 2009 by Werner Almesberger
|
||||||
|
*
|
||||||
|
* 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef GUI_UTIL_H
|
||||||
|
#define GUI_UTIL_H
|
||||||
|
|
||||||
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
|
|
||||||
|
void draw_circle(GdkDrawable *da, GdkGC *gc, int x, int y, int r);
|
||||||
|
|
||||||
|
#endif /* !GUI_UTIL_H */
|
@ -16,9 +16,9 @@
|
|||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
#include "util.h"
|
|
||||||
#include "array.h"
|
#include "array.h"
|
||||||
#include "face.h"
|
#include "face.h"
|
||||||
|
#include "gui_util.h"
|
||||||
#include "style.h"
|
#include "style.h"
|
||||||
#include "level.h"
|
#include "level.h"
|
||||||
|
|
||||||
|
@ -17,9 +17,9 @@
|
|||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
#include "util.h"
|
|
||||||
#include "face.h"
|
#include "face.h"
|
||||||
#include "solid.h"
|
#include "solid.h"
|
||||||
|
#include "gui_util.h"
|
||||||
#include "style.h"
|
#include "style.h"
|
||||||
#include "overlap.h"
|
#include "overlap.h"
|
||||||
|
|
||||||
|
@ -15,7 +15,6 @@
|
|||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <gtk/gtk.h>
|
|
||||||
|
|
||||||
|
|
||||||
#define alloc_size(s) \
|
#define alloc_size(s) \
|
||||||
@ -32,7 +31,4 @@
|
|||||||
abort(); \
|
abort(); \
|
||||||
stralloc_tmp; })
|
stralloc_tmp; })
|
||||||
|
|
||||||
|
|
||||||
void draw_circle(GdkDrawable *da, GdkGC *gc, int x, int y, int r);
|
|
||||||
|
|
||||||
#endif /* !UTIL_H */
|
#endif /* !UTIL_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user