mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-15 20:17:56 +00:00
fix compilation for old gtk versions
This commit is contained in:
parent
38b813c215
commit
c558eee6b0
2 changed files with 3 additions and 3 deletions
|
|
@ -1619,8 +1619,7 @@ void linphone_core_set_use_rfc2833_for_dtmf(LinphoneCore *lc,bool_t use_rfc2833)
|
||||||
* Deprecated: use linphone_core_get_sip_transports() instead.
|
* Deprecated: use linphone_core_get_sip_transports() instead.
|
||||||
* @ingroup network_parameters
|
* @ingroup network_parameters
|
||||||
**/
|
**/
|
||||||
int linphone_core_get_sip_port(LinphoneCore *lc)
|
int linphone_core_get_sip_port(LinphoneCore *lc){
|
||||||
{
|
|
||||||
LCSipTransports tr;
|
LCSipTransports tr;
|
||||||
linphone_core_get_sip_transports_used(lc,&tr);
|
linphone_core_get_sip_transports_used(lc,&tr);
|
||||||
return tr.udp_port>0 ? tr.udp_port : (tr.tcp_port > 0 ? tr.tcp_port : tr.tls_port);
|
return tr.udp_port>0 ? tr.udp_port : (tr.tcp_port > 0 ? tr.tcp_port : tr.tls_port);
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,7 @@ static void drag_data_received(GtkWidget *widget, GdkDragContext *context, gint
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean drag_drop(GtkWidget *widget, GdkDragContext *drag_context, gint x, gint y, guint time, gpointer user_data){
|
static gboolean drag_drop(GtkWidget *widget, GdkDragContext *drag_context, gint x, gint y, guint time, gpointer user_data){
|
||||||
//GdkAtom target_type;
|
#if GTK_CHECK_VERSION(2,20,0)
|
||||||
GList *l=gdk_drag_context_list_targets(drag_context);
|
GList *l=gdk_drag_context_list_targets(drag_context);
|
||||||
GList *elem;
|
GList *elem;
|
||||||
|
|
||||||
|
|
@ -90,6 +90,7 @@ static gboolean drag_drop(GtkWidget *widget, GdkDragContext *drag_context, gint
|
||||||
ms_warning("drag_drop no targets");
|
ms_warning("drag_drop no targets");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue