jump_to_page.c

Go to the documentation of this file.
00001 /**
00002  * \file jump_to_page.c
00003  * \brief Test the jump to page dialog
00004  */
00005  
00006 /*
00007  * This file is part of libergtk.
00008  *
00009  * libergtk is free software: you can redistribute it and/or modify
00010  * it under the terms of the GNU General Public License as published by
00011  * the Free Software Foundation, either version 2 of the License, or
00012  * (at your option) any later version.
00013  *
00014  * libergtk is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00017  * GNU General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU General Public License
00020  * along with this program. If not, see <http://www.gnu.org/licenses/>.
00021  */
00022 
00023 /**
00024  * Copyright (C) 2008 iRex Technologies B.V.
00025  * All rights reserved.
00026  */
00027 
00028 #include <gtk/gtk.h>
00029 #include "erGtkDialogJumpToPage.h"
00030 
00031 int main( int   argc,
00032           char *argv[] )
00033 {
00034 
00035     gtk_init (&argc, &argv);
00036     
00037     gint page = gtk_dialog_jump_to_page_run();
00038 
00039     if (page < 0)
00040     {
00041         g_print("CANCEL\n");
00042     }
00043     else
00044     {
00045         g_print("Jump to page %d\n", page);
00046     }
00047 
00048     return 0;
00049 }
Generated by  doxygen 1.6.2-20100208