summaryrefslogtreecommitdiff
path: root/src/math-window.h
diff options
context:
space:
mode:
authorSteve Zesch <[email protected]>2012-11-24 20:44:45 -0500
committerSteve Zesch <[email protected]>2012-11-24 20:44:45 -0500
commit6b24c91d3aa81fdb99500c8c2c12f830fabaefb6 (patch)
tree6a0038ecfaa77e156ee2cc9059220685091217d7 /src/math-window.h
parenta10375c2851e8569353c0da9921b8d0d9cbea2e6 (diff)
downloadmate-calc-6b24c91d3aa81fdb99500c8c2c12f830fabaefb6.tar.bz2
mate-calc-6b24c91d3aa81fdb99500c8c2c12f830fabaefb6.tar.xz
Update codebase.
Diffstat (limited to 'src/math-window.h')
-rw-r--r--src/math-window.h50
1 files changed, 22 insertions, 28 deletions
diff --git a/src/math-window.h b/src/math-window.h
index 463b078..22360fa 100644
--- a/src/math-window.h
+++ b/src/math-window.h
@@ -1,20 +1,12 @@
-/* Copyright (c) 1987-2008 Sun Microsystems, Inc. All Rights Reserved.
- * Copyright (c) 2008-2009 Robert Ancell
+/*
+ * Copyright (C) 1987-2008 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright (C) 2008-2011 Robert Ancell.
*
- * 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, 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., 51 Franklin Street, Fifth Floor, Boston, MA
- * 02110-1301, USA.
+ * 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. See http://www.gnu.org/copyleft/gpl.html the full text of the
+ * license.
*/
#ifndef MATH_WINDOW_H
@@ -31,29 +23,31 @@ G_BEGIN_DECLS
typedef struct MathWindowPrivate MathWindowPrivate;
-typedef struct {
- GtkWindow parent_instance;
- MathWindowPrivate* priv;
+typedef struct
+{
+ GtkApplicationWindow parent_instance;
+ MathWindowPrivate *priv;
} MathWindow;
-typedef struct {
- GtkWindowClass parent_class;
+typedef struct
+{
+ GtkApplicationWindowClass parent_class;
- void (*quit) (MathWindow* window);
+ void (*quit)(MathWindow *window);
} MathWindowClass;
GType math_window_get_type(void);
-MathWindow* math_window_new(MathEquation* equation);
+MathWindow *math_window_new(GtkApplication *app, MathEquation *equation);
-GtkWidget* math_window_get_menu_bar(MathWindow* window);
+MathEquation *math_window_get_equation(MathWindow *window);
-MathEquation* math_window_get_equation(MathWindow* window);
+MathDisplay *math_window_get_display(MathWindow *window);
-MathDisplay* math_window_get_display(MathWindow* window);
+MathButtons *math_window_get_buttons(MathWindow *window);
-MathButtons* math_window_get_buttons(MathWindow* window);
+void math_window_critical_error(MathWindow *window, const gchar *title, const gchar *contents);
-void math_window_critical_error(MathWindow* window, const gchar* title, const gchar* contents);
+G_END_DECLS
#endif /* MATH_WINDOW_H */