diff options
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkcolorsel.c | 4 | ||||
-rw-r--r-- | gtk/testgtk.c | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/gtk/gtkcolorsel.c b/gtk/gtkcolorsel.c index 5ce2e8811..db8ab8aed 100644 --- a/gtk/gtkcolorsel.c +++ b/gtk/gtkcolorsel.c @@ -24,6 +24,10 @@ * across all the color info (currently RGBA). - Elliot */ +#ifndef M_PI +#define M_PI 3.14159265358979323846 +#endif /* M_PI */ + #define DEGTORAD(a) (2.0*M_PI*a/360.0) #define SQR(a) (a*a) diff --git a/gtk/testgtk.c b/gtk/testgtk.c index 83c2da51d..4b40d6a10 100644 --- a/gtk/testgtk.c +++ b/gtk/testgtk.c @@ -3983,7 +3983,7 @@ create_notebook () GtkWidget *submenu; GtkWidget *menuitem; GSList *group; - GdkColor transparent; + GdkColor *transparent = NULL; if (!window) { @@ -4009,11 +4009,11 @@ create_notebook () gtk_widget_realize (notebook); book_open = gdk_pixmap_create_from_xpm_d (notebook->window, &book_open_mask, - &transparent, + transparent, book_open_xpm); book_closed = gdk_pixmap_create_from_xpm_d (notebook->window, &book_closed_mask, - &transparent, + transparent, book_closed_xpm); create_pages (GTK_NOTEBOOK (notebook), 1, 5); |