Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
c1e63da3
Commit
c1e63da3
authored
Sep 14, 2011
by
Rafaël Carré
Browse files
* #6902 : fix errors spotted by -DGSEAL_ENABLE
parent
7852adff
Changes
8
Hide whitespace changes
Inline
Side-by-side
gnome/src/config/accountconfigdialog.c
View file @
c1e63da3
...
...
@@ -1255,7 +1255,7 @@ void show_account_window(account_t * currentAccount)
gtk_container_set_border_width
(
GTK_CONTAINER
(
dialog
),
0
);
notebook
=
gtk_notebook_new
();
gtk_box_pack_start
(
GTK_BOX
(
dialog
->
vbox
),
notebook
,
TRUE
,
TRUE
,
0
);
gtk_box_pack_start
(
GTK_BOX
(
gtk_
dialog
_get_content_area
(
dialog
)
),
notebook
,
TRUE
,
TRUE
,
0
);
gtk_container_set_border_width
(
GTK_CONTAINER
(
notebook
),
10
);
gtk_widget_show
(
notebook
);
...
...
gnome/src/config/accountlistconfigdialog.c
View file @
c1e63da3
...
...
@@ -592,7 +592,7 @@ show_account_list_config_dialog (void)
gtk_window_set_resizable
(
GTK_WINDOW
(
accountListDialog
),
FALSE
);
gnome_main_section_new
(
_
(
"Configured Accounts"
),
&
accountFrame
);
gtk_box_pack_start
(
GTK_BOX
(
accountListDialog
->
vbox
),
accountFrame
,
TRUE
,
TRUE
,
0
);
gtk_box_pack_start
(
GTK_BOX
(
gtk_dialog_get_content_area
(
accountListDialog
)
),
accountFrame
,
TRUE
,
TRUE
,
0
);
gtk_widget_show
(
accountFrame
);
/* Accounts tab */
...
...
@@ -604,7 +604,7 @@ show_account_list_config_dialog (void)
status_bar
=
gtk_statusbar_new
();
gtk_statusbar_set_has_resize_grip
(
GTK_STATUSBAR
(
status_bar
),
FALSE
);
gtk_widget_show
(
status_bar
);
gtk_box_pack_start
(
GTK_BOX
(
accountListDialog
->
vbox
),
status_bar
,
TRUE
,
TRUE
,
0
);
gtk_box_pack_start
(
GTK_BOX
(
gtk_dialog_get_content_area
(
accountListDialog
)
),
status_bar
,
TRUE
,
TRUE
,
0
);
int
number_accounts
=
account_list_get_registered_accounts
();
...
...
gnome/src/config/preferencesdialog.c
View file @
c1e63da3
...
...
@@ -384,8 +384,9 @@ show_preferences_dialog ()
notebook
=
gtk_notebook_new
();
gtk_notebook_set_show_tabs
(
GTK_NOTEBOOK
(
notebook
),
FALSE
);
gtk_box_pack_end
(
GTK_BOX
(
hbox
),
notebook
,
TRUE
,
TRUE
,
0
);
gtk_box_pack_start
(
GTK_BOX
(
dialog
->
vbox
),
hbox
,
TRUE
,
TRUE
,
0
);
gtk_widget_show_all
(
dialog
->
vbox
);
GtkWidget
*
box
=
gtk_dialog_get_content_area
(
dialog
);
gtk_box_pack_start
(
GTK_BOX
(
box
),
hbox
,
TRUE
,
TRUE
,
0
);
gtk_widget_show_all
(
box
);
gtk_container_set_border_width
(
GTK_CONTAINER
(
notebook
),
10
);
gtk_widget_show
(
notebook
);
...
...
gnome/src/config/tlsadvanceddialog.c
View file @
c1e63da3
...
...
@@ -60,7 +60,7 @@ void show_advanced_tls_options (GHashTable * properties)
ret
=
gtk_vbox_new
(
FALSE
,
10
);
gtk_container_set_border_width
(
GTK_CONTAINER
(
ret
),
10
);
gtk_box_pack_start
(
GTK_BOX
(
tlsDialog
->
vbox
),
ret
,
FALSE
,
FALSE
,
0
);
gtk_box_pack_start
(
GTK_BOX
(
gtk_dialog_get_content_area
(
tlsDialog
)
),
ret
,
FALSE
,
FALSE
,
0
);
GtkWidget
*
frame
,
*
table
;
gnome_main_section_new_with_table
(
_
(
"TLS transport"
),
&
frame
,
&
table
,
3
,
13
);
...
...
gnome/src/config/zrtpadvanceddialog.c
View file @
c1e63da3
...
...
@@ -36,27 +36,19 @@
void
show_advanced_zrtp_options
(
GHashTable
*
properties
)
{
GtkDialog
*
securityDialog
;
GtkWidget
*
tableZrtp
;
GtkWidget
*
enableHelloHash
;
GtkWidget
*
enableSASConfirm
;
GtkWidget
*
enableZrtpNotSuppOther
;
GtkWidget
*
displaySasOnce
;
gchar
*
curSasConfirm
=
"true"
;
gchar
*
curHelloEnabled
=
"true"
;
gchar
*
curZrtpNotSuppOther
=
"true"
;
gchar
*
curDisplaySasOnce
=
"false"
;
gboolean
curSasConfirm
=
TRUE
;
gboolean
curHelloEnabled
=
TRUE
;
gboolean
curZrtpNotSuppOther
=
TRUE
;
gboolean
curDisplaySasOnce
=
FALSE
;
if
(
properties
!=
NULL
)
{
curHelloEnabled
=
g_hash_table_lookup
(
properties
,
ACCOUNT_ZRTP_HELLO_HASH
);
curSasConfirm
=
g_hash_table_lookup
(
properties
,
ACCOUNT_ZRTP_DISPLAY_SAS
);
curZrtpNotSuppOther
=
g_hash_table_lookup
(
properties
,
ACCOUNT_ZRTP_NOT_SUPP_WARNING
);
curDisplaySasOnce
=
g_hash_table_lookup
(
properties
,
ACCOUNT_DISPLAY_SAS_ONCE
);
curHelloEnabled
=
!
g_strcasecmp
(
g_hash_table_lookup
(
properties
,
ACCOUNT_ZRTP_HELLO_HASH
)
,
"true"
)
;
curSasConfirm
=
!
g_strcasecmp
(
g_hash_table_lookup
(
properties
,
ACCOUNT_ZRTP_DISPLAY_SAS
)
,
"true"
)
;
curZrtpNotSuppOther
=
!
g_strcasecmp
(
g_hash_table_lookup
(
properties
,
ACCOUNT_ZRTP_NOT_SUPP_WARNING
)
,
"true"
)
;
curDisplaySasOnce
=
!
g_strcasecmp
(
g_hash_table_lookup
(
properties
,
ACCOUNT_DISPLAY_SAS_ONCE
)
,
"true"
)
;
}
securityDialog
=
GTK_DIALOG
(
gtk_dialog_new_with_buttons
(
_
(
"ZRTP Options"
),
GtkDialog
*
securityDialog
=
GTK_DIALOG
(
gtk_dialog_new_with_buttons
(
_
(
"ZRTP Options"
),
GTK_WINDOW
(
get_main_window
()),
GTK_DIALOG_MODAL
|
GTK_DIALOG_DESTROY_WITH_PARENT
,
GTK_STOCK_CANCEL
,
...
...
@@ -69,33 +61,29 @@ void show_advanced_zrtp_options (GHashTable * properties)
gtk_container_set_border_width
(
GTK_CONTAINER
(
securityDialog
),
0
);
tableZrtp
=
gtk_table_new
(
4
,
2
,
FALSE
/* homogeneous */
);
GtkWidget
*
tableZrtp
=
gtk_table_new
(
4
,
2
,
FALSE
/* homogeneous */
);
gtk_table_set_row_spacings
(
GTK_TABLE
(
tableZrtp
),
10
);
gtk_table_set_col_spacings
(
GTK_TABLE
(
tableZrtp
),
10
);
gtk_box_pack_start
(
GTK_BOX
(
securityDialog
->
vbox
),
tableZrtp
,
FALSE
,
FALSE
,
0
);
gtk_box_pack_start
(
GTK_BOX
(
gtk_dialog_get_content_area
(
securityDialog
)
),
tableZrtp
,
FALSE
,
FALSE
,
0
);
gtk_widget_show
(
tableZrtp
);
enableHelloHash
=
gtk_check_button_new_with_mnemonic
(
_
(
"Send Hello Hash in S_DP"
));
gtk_toggle_button_set_active
(
GTK_TOGGLE_BUTTON
(
enableHelloHash
),
g_strcasecmp
(
curHelloEnabled
,
"true"
)
==
0
?
TRUE
:
FALSE
);
GtkWidget
*
enableHelloHash
=
gtk_check_button_new_with_mnemonic
(
_
(
"Send Hello Hash in S_DP"
));
gtk_toggle_button_set_active
(
GTK_TOGGLE_BUTTON
(
enableHelloHash
),
curHelloEnabled
);
gtk_table_attach
(
GTK_TABLE
(
tableZrtp
),
enableHelloHash
,
0
,
1
,
2
,
3
,
GTK_EXPAND
|
GTK_FILL
,
GTK_EXPAND
|
GTK_FILL
,
0
,
0
);
gtk_widget_set_sensitive
(
GTK_WIDGET
(
enableHelloHash
)
,
TRUE
);
enableSASConfirm
=
gtk_check_button_new_with_mnemonic
(
_
(
"Ask User to Confirm SAS"
));
gtk_toggle_button_set_active
(
GTK_TOGGLE_BUTTON
(
enableSASConfirm
),
g_strcasecmp
(
curSasConfirm
,
"true"
)
==
0
?
TRUE
:
FALSE
);
GtkWidget
*
enableSASConfirm
=
gtk_check_button_new_with_mnemonic
(
_
(
"Ask User to Confirm SAS"
));
gtk_toggle_button_set_active
(
GTK_TOGGLE_BUTTON
(
enableSASConfirm
),
curSasConfirm
);
gtk_table_attach
(
GTK_TABLE
(
tableZrtp
),
enableSASConfirm
,
0
,
1
,
3
,
4
,
GTK_EXPAND
|
GTK_FILL
,
GTK_EXPAND
|
GTK_FILL
,
0
,
0
);
gtk_widget_set_sensitive
(
GTK_WIDGET
(
enableSASConfirm
)
,
TRUE
);
enableZrtpNotSuppOther
=
gtk_check_button_new_with_mnemonic
(
_
(
"_Warn if ZRTP not supported"
));
gtk_toggle_button_set_active
(
GTK_TOGGLE_BUTTON
(
enableZrtpNotSuppOther
),
g_strcasecmp
(
curZrtpNotSuppOther
,
"true"
)
==
0
?
TRUE
:
FALSE
);
GtkWidget
*
enableZrtpNotSuppOther
=
gtk_check_button_new_with_mnemonic
(
_
(
"_Warn if ZRTP not supported"
));
gtk_toggle_button_set_active
(
GTK_TOGGLE_BUTTON
(
enableZrtpNotSuppOther
),
curZrtpNotSuppOther
);
gtk_table_attach
(
GTK_TABLE
(
tableZrtp
),
enableZrtpNotSuppOther
,
0
,
1
,
4
,
5
,
GTK_EXPAND
|
GTK_FILL
,
GTK_EXPAND
|
GTK_FILL
,
0
,
0
);
gtk_widget_set_sensitive
(
GTK_WIDGET
(
enableZrtpNotSuppOther
)
,
TRUE
);
displaySasOnce
=
gtk_check_button_new_with_mnemonic
(
_
(
"Display SAS once for hold events"
));
gtk_toggle_button_set_active
(
GTK_TOGGLE_BUTTON
(
displaySasOnce
),
g_strcasecmp
(
curDisplaySasOnce
,
"true"
)
==
0
?
TRUE
:
FALSE
);
GtkWidget
*
displaySasOnce
=
gtk_check_button_new_with_mnemonic
(
_
(
"Display SAS once for hold events"
));
gtk_toggle_button_set_active
(
GTK_TOGGLE_BUTTON
(
displaySasOnce
),
curDisplaySasOnce
);
gtk_table_attach
(
GTK_TABLE
(
tableZrtp
),
displaySasOnce
,
0
,
1
,
5
,
6
,
GTK_EXPAND
|
GTK_FILL
,
GTK_EXPAND
|
GTK_FILL
,
0
,
0
);
gtk_widget_set_sensitive
(
GTK_WIDGET
(
displaySasOnce
)
,
TRUE
);
...
...
@@ -127,48 +115,34 @@ void show_advanced_zrtp_options (GHashTable * properties)
void
show_advanced_sdes_options
(
GHashTable
*
properties
)
{
GtkDialog
*
securityDialog
;
GtkWidget
*
sdesTable
;
GtkWidget
*
enableRtpFallback
;
gchar
*
rtpFallback
=
"false"
;
gboolean
rtpFallback
=
FALSE
;
if
(
properties
!=
NULL
)
{
rtpFallback
=
g_hash_table_lookup
(
properties
,
ACCOUNT_SRTP_RTP_FALLBACK
);
rtpFallback
=
!
g_strcasecmp
(
g_hash_table_lookup
(
properties
,
ACCOUNT_SRTP_RTP_FALLBACK
)
,
"true"
)
;
}
securityDialog
=
GTK_DIALOG
(
gtk_dialog_new_with_buttons
(
_
(
"SDES Options"
),
GtkDialog
*
securityDialog
=
GTK_DIALOG
(
gtk_dialog_new_with_buttons
(
_
(
"SDES Options"
),
GTK_WINDOW
(
get_main_window
()),
GTK_DIALOG_MODAL
|
GTK_DIALOG_DESTROY_WITH_PARENT
,
GTK_STOCK_CANCEL
,
GTK_RESPONSE_CANCEL
,
GTK_STOCK_SAVE
,
GTK_RESPONSE_ACCEPT
,
NULL
));
gtk_window_set_resizable
(
GTK_WINDOW
(
securityDialog
),
FALSE
);
gtk_container_set_border_width
(
GTK_CONTAINER
(
securityDialog
),
0
);
sdesTable
=
gtk_table_new
(
1
,
2
,
FALSE
/* homogeneous */
);
GtkWidget
*
sdesTable
=
gtk_table_new
(
1
,
2
,
FALSE
/* homogeneous */
);
gtk_table_set_row_spacings
(
GTK_TABLE
(
sdesTable
),
10
);
gtk_table_set_col_spacings
(
GTK_TABLE
(
sdesTable
),
10
);
gtk_box_pack_start
(
GTK_BOX
(
securityDialog
->
vbox
),
sdesTable
,
FALSE
,
FALSE
,
0
);
gtk_box_pack_start
(
GTK_BOX
(
gtk_dialog_get_content_area
(
securityDialog
)
),
sdesTable
,
FALSE
,
FALSE
,
0
);
gtk_widget_show
(
sdesTable
);
enableRtpFallback
=
gtk_check_button_new_with_mnemonic
(
_
(
"Fallback on RTP on SDES failure"
));
gtk_toggle_button_set_active
(
GTK_TOGGLE_BUTTON
(
enableRtpFallback
),
g_strcasecmp
(
rtpFallback
,
"true"
)
==
0
?
TRUE
:
FALSE
);
GtkWidget
*
enableRtpFallback
=
gtk_check_button_new_with_mnemonic
(
_
(
"Fallback on RTP on SDES failure"
));
gtk_toggle_button_set_active
(
GTK_TOGGLE_BUTTON
(
enableRtpFallback
),
rtpFallback
);
gtk_table_attach
(
GTK_TABLE
(
sdesTable
),
enableRtpFallback
,
0
,
1
,
2
,
3
,
GTK_EXPAND
|
GTK_FILL
,
GTK_EXPAND
|
GTK_FILL
,
0
,
0
);
gtk_widget_set_sensitive
(
GTK_WIDGET
(
enableRtpFallback
)
,
TRUE
);
gtk_widget_show_all
(
sdesTable
);
gtk_container_set_border_width
(
GTK_CONTAINER
(
sdesTable
),
10
);
...
...
gnome/src/uimanager.c
View file @
c1e63da3
...
...
@@ -96,7 +96,7 @@ remove_from_toolbar(GtkWidget *widget)
{
/* We must ensure that a widget is a child of a container
* before removing it. */
if
(
widget
->
parent
==
toolbar_
)
if
(
gtk_
widget
_get_
parent
(
widget
)
==
toolbar_
)
gtk_container_remove
(
GTK_CONTAINER
(
toolbar_
),
widget
);
}
...
...
@@ -1479,7 +1479,7 @@ show_edit_number(callable_obj_t *call)
g_signal_connect
(
G_OBJECT
(
edit_dialog_
),
"delete-event"
,
G_CALLBACK
(
on_delete
),
NULL
);
GtkWidget
*
hbox
=
gtk_hbox_new
(
FALSE
,
0
);
gtk_box_pack_start
(
GTK_BOX
(
GTK_DIALOG
(
edit_dialog_
)
->
vbox
),
hbox
,
TRUE
,
TRUE
,
0
);
gtk_box_pack_start
(
GTK_BOX
(
gtk_dialog_get_content_area
(
GTK_DIALOG
(
edit_dialog_
)
)
),
hbox
,
TRUE
,
TRUE
,
0
);
// Set the number to be edited
editable_num_
=
gtk_entry_new
();
...
...
@@ -1504,7 +1504,7 @@ show_edit_number(callable_obj_t *call)
gtk_box_pack_start
(
GTK_BOX
(
hbox
),
ok
,
TRUE
,
TRUE
,
0
);
g_signal_connect
(
ok
,
"clicked"
,
G_CALLBACK
(
ok_cb
),
call
);
gtk_widget_show_all
(
GTK_DIALOG
(
edit_dialog_
)
->
vbox
);
gtk_widget_show_all
(
gtk_dialog_get_content_area
(
GTK_DIALOG
(
edit_dialog_
)
)
);
gtk_dialog_run
(
GTK_DIALOG
(
edit_dialog_
));
}
...
...
gnome/src/widget/gtkscrollbook.c
View file @
c1e63da3
...
...
@@ -165,7 +165,7 @@ pidgin_scroll_book_add (GtkContainer *container, GtkWidget *widget)
PidginScrollBook
*
scroll_book
;
g_return_if_fail
(
GTK_IS_WIDGET
(
widget
));
g_return_if_fail
(
widget
->
parent
==
NULL
);
g_return_if_fail
(
gtk_
widget
_get_
parent
(
widget
)
==
NULL
);
scroll_book
=
PIDGIN_SCROLL_BOOK
(
container
);
scroll_book
->
children
=
g_list_append
(
scroll_book
->
children
,
widget
);
...
...
gnome/src/widget/minidialog.c
View file @
c1e63da3
...
...
@@ -132,7 +132,7 @@ struct _mini_dialog_button_clicked_cb_data {
guint
pidgin_mini_dialog_get_num_children
(
PidginMiniDialog
*
mini_dialog
)
{
return
g_list_length
(
mini_dialog
->
contents
->
children
);
return
g_list_length
(
gtk_container_get_children
(
GTK_CONTAINER
(
mini_dialog
->
contents
))
);
}
static
gboolean
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment