diff options
author | Steve Zesch <[email protected]> | 2012-11-24 20:44:45 -0500 |
---|---|---|
committer | Steve Zesch <[email protected]> | 2012-11-24 20:44:45 -0500 |
commit | 6b24c91d3aa81fdb99500c8c2c12f830fabaefb6 (patch) | |
tree | 6a0038ecfaa77e156ee2cc9059220685091217d7 /src/math-buttons.h | |
parent | a10375c2851e8569353c0da9921b8d0d9cbea2e6 (diff) | |
download | mate-calc-6b24c91d3aa81fdb99500c8c2c12f830fabaefb6.tar.bz2 mate-calc-6b24c91d3aa81fdb99500c8c2c12f830fabaefb6.tar.xz |
Update codebase.
Diffstat (limited to 'src/math-buttons.h')
-rw-r--r-- | src/math-buttons.h | 52 |
1 files changed, 24 insertions, 28 deletions
diff --git a/src/math-buttons.h b/src/math-buttons.h index e09c4c2..405a3de 100644 --- a/src/math-buttons.h +++ b/src/math-buttons.h @@ -1,19 +1,11 @@ -/* Copyright (c) 2008-2009 Robert Ancell +/* + * 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_BUTTONS_H @@ -29,32 +21,36 @@ G_BEGIN_DECLS typedef struct MathButtonsPrivate MathButtonsPrivate; -typedef struct { +typedef struct +{ GtkVBox parent_instance; - MathButtonsPrivate* priv; + MathButtonsPrivate *priv; } MathButtons; -typedef struct { - GtkVBoxClass parent_class; +typedef struct +{ + GtkVBoxClass parent_class; } MathButtonsClass; typedef enum { - BASIC, - ADVANCED, - FINANCIAL, - PROGRAMMING + BASIC, + ADVANCED, + FINANCIAL, + PROGRAMMING } ButtonMode; GType math_buttons_get_type(void); -MathButtons* math_buttons_new(MathEquation* equation); +MathButtons *math_buttons_new(MathEquation *equation); + +void math_buttons_set_mode(MathButtons *buttons, ButtonMode mode); -void math_buttons_set_mode(MathButtons* buttons, ButtonMode mode); +ButtonMode math_buttons_get_mode(MathButtons *buttons); -ButtonMode math_buttons_get_mode(MathButtons* buttons); +void math_buttons_set_programming_base(MathButtons *buttons, gint base); -void math_buttons_set_programming_base(MathButtons* buttons, gint base); +gint math_buttons_get_programming_base(MathButtons *buttons); -gint math_buttons_get_programming_base(MathButtons* buttons); +G_END_DECLS #endif /* MATH_BUTTONS_H */ |