X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=src%2Fplugin-example.c;h=8b6361dcbcebc99f8ea3de7438dfc5ad4296e3ba;hb=1b59efefbf33818f44ffdc870ff9fdb8207e1ad1;hp=16dbdd31a346c060ba370385402b67dff8b70c17;hpb=d527bfdb9682b1824e1c2df318a92291aaa48860;p=grits diff --git a/src/plugin-example.c b/src/plugin-example.c index 16dbdd3..8b6361d 100644 --- a/src/plugin-example.c +++ b/src/plugin-example.c @@ -1,3 +1,20 @@ +/* + * Copyright (C) 2009 Andy Spencer + * + * 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 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #include #include #include @@ -60,8 +77,8 @@ static gboolean rotate(gpointer user_data) gboolean example_init(AWeatherGui *gui) { - GtkDrawingArea *drawing = aweather_gui_get_drawing(gui); - GtkNotebook *config = aweather_gui_get_tabs(gui); + GtkWidget *drawing = aweather_gui_get_widget(gui, "drawing"); + GtkWidget *config = aweather_gui_get_widget(gui, "tabs"); /* Add configuration tab */ GtkWidget *label = gtk_label_new("example");