Back to index

bamf  0.2.120
tab-source-test.c
Go to the documentation of this file.
00001 /*
00002  *
00003  * Copyright (C) 2009 - Canonical Ltd.
00004  *
00005  * This program is free software; you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License as published by
00007  * the Free Software Foundation; either version 3 of the License
00008  *
00009  * Bamf is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software
00016  * Foundation, Inc., 51 Franklin St, Fifth Floor,
00017  * Boston, MA  02110-1301  USA
00018  */
00019 
00020 #include <stdio.h>
00021 #include <gtk/gtk.h>
00022 #include <gdk/gdk.h>
00023 #include <glib.h>
00024 #include <libbamf/libbamf.h>
00025 
00026 int main (int argc, char **argv)
00027 {
00028   BamfMatcher *matcher;
00029   BamfControl *control;
00030   BamfTabSource *source;
00031   
00032   gtk_init (&argc, &argv);
00033 
00034   matcher = bamf_matcher_get_default ();
00035   control = bamf_control_get_default ();
00036   source = g_object_new (BAMF_TYPE_TAB_SOURCE, "id", "testingsource", NULL);
00037 
00038   gtk_main ();
00039 
00040   g_object_unref (matcher);
00041   g_object_unref (control);
00042   g_object_unref (source);
00043 
00044   return 0;
00045 }