X-Git-Url: http://git.maemo.org/git/?p=scdataviz;a=blobdiff_plain;f=graphwidget.h;h=cb2e3903b5c1b3e704c57fa268071947f9be5310;hp=d580adfc74ec92b1194745a73e721ce33291dbf2;hb=b5cfdf4d4f01bf9f8def7d69fd58e254886ed2d5;hpb=07dd48ff5e45f3168ebaf267f33d92f5332c0b94;ds=sidebyside diff --git a/graphwidget.h b/graphwidget.h index d580adf..cb2e390 100644 --- a/graphwidget.h +++ b/graphwidget.h @@ -5,39 +5,40 @@ ** Login ** -Copyright (C) 2008 Joseph Pingenot -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU Lesser General Public License as published by -the Free Software Foundation, either version 3 of the License, 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 Lesser General Public License for more details. + Copyright (C) 2008 Joseph Pingenot -You should have received a copy of the GNU Lesser General Public License -along with this program. If not, see . + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published by + the Free Software Foundation, either version 3 of the License, 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 Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . ** Started on Thu Jul 17 10:51:32 2008 Johnny Q. Hacker -** Last update Thu Jul 17 10:51:32 2008 Johnny Q. Hacker +** Last update Thu Oct 8 14:28:34 2009 Johnny Q. Hacker */ -#ifndef GRAPH_H_ -# define GRAPH_H_ +#ifndef GRAPHWIDGET_H_ +#define GRAPHWIDGET_H_ #include #include typedef struct _GraphWidget { - GtkDrawingArea parent; + GtkDrawingArea parent_instance; Graph *graph; } GraphWidget; typedef struct _GraphWidgetClass { GtkDrawingAreaClass parent_class; - } GraphWidgetClass; #define GRAPH_WIDGET_TYPE (graph_widget_get_type()) @@ -47,8 +48,8 @@ typedef struct _GraphWidgetClass { #define IS_GRAPH_WIDGET_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE ((obj), GRAPH_WIDGET_CLASS_TYPE)) #define GRAPH_WIDGET_GET_CLASS (G_TYPE_INSTANCE_GET_CLASS ((obj), GRAPH_WIDGET, GraphWidgetClass)) -GtkWidget* graph_widget_new(Graph* graph); +GtkWidget* graph_widget_new(void); -Graph* get_graph(GraphWidget* gw); +Graph* graph_widget_get_graph(GraphWidget* gw); -#endif /* !GRAPH_H_ */ +#endif /* !GRAPHWIDGET_H_ */