2 * page.c -- Page handling
3 * Copyright (C) 2002-2003 Charles Yates <charles.yates@pandora.be>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software Foundation,
17 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23 GtkWidget
*page_get_widget( page
this )
25 return this->get_widget( this );
28 void page_get_toolbar_info( page
this, GtkIconSize size
, GtkWidget
**icon
, char **label
)
30 if ( this->get_toolbar_info
)
32 this->get_toolbar_info( this, size
, icon
, label
);
36 *icon
= gtk_image_new_from_stock( "gtk-execute", size
);
41 /** Called on connection being established to a server.
44 void page_on_connect( page
this )
46 if ( this->on_connect
)
47 this->on_connect( this );
50 /** Called on a disconnection from a server.
53 void page_on_disconnect( page
this )
55 if ( this->on_disconnect
)
56 this->on_disconnect( this );
59 /** Called when the user changes the selected unit.
62 void page_on_unit_change( page
this, int unit
)
64 if ( this->on_unit_change
)
65 this->on_unit_change( this, unit
);
68 /** Called to propogate status information to any page that's interested.
71 void page_show_status( page
this, valerie_status status
)
73 if ( this->show_status
)
74 this->show_status( this, status
);
80 void page_close( page
this )