math-buttons: Remove widget background color tints
[gcalctool.git] / src / math-window.h
blob40caef20e7d59fd407949278b407d8f6ea0af3fb
1 /*
2 * Copyright (C) 1987-2008 Sun Microsystems, Inc. All Rights Reserved.
3 * Copyright (C) 2008-2011 Robert Ancell.
5 * This program is free software: you can redistribute it and/or modify it under
6 * the terms of the GNU General Public License as published by the Free Software
7 * Foundation, either version 2 of the License, or (at your option) any later
8 * version. See http://www.gnu.org/copyleft/gpl.html the full text of the
9 * license.
12 #ifndef MATH_WINDOW_H
13 #define MATH_WINDOW_H
15 #include <glib-object.h>
16 #include "math-equation.h"
17 #include "math-display.h"
18 #include "math-buttons.h"
20 G_BEGIN_DECLS
22 #define MATH_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), math_window_get_type(), MathWindow))
24 typedef struct MathWindowPrivate MathWindowPrivate;
26 typedef struct
28 GtkWindow parent_instance;
29 MathWindowPrivate *priv;
30 } MathWindow;
32 typedef struct
34 GtkWindowClass parent_class;
36 void (*quit)(MathWindow *window);
37 } MathWindowClass;
39 GType math_window_get_type(void);
41 MathWindow *math_window_new(MathEquation *equation);
43 GtkWidget *math_window_get_menu_bar(MathWindow *window);
45 MathEquation *math_window_get_equation(MathWindow *window);
47 MathDisplay *math_window_get_display(MathWindow *window);
49 MathButtons *math_window_get_buttons(MathWindow *window);
51 void math_window_critical_error(MathWindow *window, const gchar *title, const gchar *contents);
53 G_END_DECLS
55 #endif /* MATH_WINDOW_H */