2
/* GnomeMeeting -- A Video-Conferencing application
3
* Copyright (C) 2000-2006 Damien Sandras
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
17
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20
* GnomeMeting is licensed under the GPL license and as a special exception,
21
* you have permission to link or otherwise combine this program with the
22
* programs OpenH323 and Pwlib, and distribute the combination, without
23
* applying the requirements of the GNU GPL to the OpenH323 program, as long
24
* as you do follow the requirements of the GNU GPL for all the rest of the
25
* software thus combined.
30
* callbacks.h - description
31
* ---------------------------
32
* begin : Sat Dec 23 2000
33
* copyright : (C) 2000-2006 by Damien Sandras
34
* description : This file contains callbacks common to several
47
/* DESCRIPTION : This callback is called when the user chooses to save.
48
* BEHAVIOR : Saves the picture in the current video stream in a file.
51
void save_callback (GtkWidget *,
55
/* DESCRIPTION : This callback is called when the user chooses to open
57
* BEHAVIOR : Open the about window.
60
void about_callback (GtkWidget *,
64
/* DESCRIPTION : This callback is called when the user chooses to open
66
* BEHAVIOR : Open the help window.
69
void help_cb (GtkWidget *,
73
/* DESCRIPTION : This callback is called when the user choose to establish
75
* BEHAVIOR : Call the remote endpoint or accept the incoming call.
78
void connect_cb (GtkWidget *,
82
/* DESCRIPTION : This callback is called when the user choose to stop
84
* BEHAVIOR : Do not accept the incoming call or stops the current call.
87
void disconnect_cb (GtkWidget *,
91
/* DESCRIPTION : This callback is called when the user chooses to quit.
95
void quit_callback (GtkWidget *,
99
/* DESCRIPTION : Simple wrapper that will call gnomemeeting_hide_window.
100
* BEHAVIOR : Calls gnomemeeting_window_hide.
103
gboolean delete_window_cb (GtkWidget *,
108
/* DESCRIPTION : Simple wrapper that will call gnomemeeting_show_window.
109
* BEHAVIOR : Calls gnomemeeting_window_show.
110
* PRE : The gpointer is a valid pointer to the GtkWindow that needs
111
* to be shown with the correct size and position.
113
void show_window_cb (GtkWidget *,
117
/* DESCRIPTION : Quit callback.
118
* BEHAVIOR : Disconnects, then simply call gtk_main_quit.
121
void gtk_main_quit_callback (int,
125
/* DESCRIPTION : This callback is called to compare urls and see if they
127
* BEHAVIOR : It returns TRUE if the given key matches an URL OR a last
128
* name or first name in the list store of the completion
129
* entry AND if the matched URL was not already returned
131
* 2 SIP/H323 URLs match if they begin by
132
* the same chars, and 2 CALLTO URLs with a valid email
133
* address on an ILS server match if the key matches an email
134
* address or the begin of a server.
135
* PRE : data is a valid pointer to the list store.
137
gboolean entry_completion_url_match_cb (GtkEntryCompletion *,
143
/* DESCRIPTION : This callback is called when the user toggles a
145
* BEHAVIOR : Connect if there is a connect URL in the URL bar and if the
146
* button is toggled, the button is untoggled if there is no
147
* url, disconnect if the button is untoggled. Do nothing
148
* if the endpoint calling state is not Standby.
149
* PRE : data is a valid pointer to the URL GtkEntry.
151
void connect_button_clicked_cb (GtkToggleButton *,