Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
e7f46ddf
Commit
e7f46ddf
authored
Feb 01, 2011
by
Simon Morlat
Browse files
show buttons
parent
6b8b0c8f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
gtk/incall_view.c
gtk/incall_view.c
+8
-4
gtk/main.c
gtk/main.c
+1
-0
No files found.
gtk/incall_view.c
View file @
e7f46ddf
...
...
@@ -201,6 +201,7 @@ void linphone_gtk_in_call_view_set_incoming(LinphoneCall *call, bool_t with_paus
GtkWidget
*
animation
=
linphone_gtk_get_widget
(
callview
,
"in_call_animation"
);
GdkPixbufAnimation
*
pbuf
=
create_pixbuf_animation
(
"calling_anim.gif"
);
GtkWidget
*
answer_button
;
GtkWidget
*
image
;
gtk_label_set_markup
(
GTK_LABEL
(
status
),
_
(
"<b>Incoming call</b>"
));
gtk_widget_show_all
(
linphone_gtk_get_widget
(
callview
,
"answer_decline_panel"
));
...
...
@@ -209,14 +210,17 @@ void linphone_gtk_in_call_view_set_incoming(LinphoneCall *call, bool_t with_paus
display_peer_name_in_label
(
callee
,
linphone_call_get_remote_address
(
call
));
answer_button
=
linphone_gtk_get_widget
(
callview
,
"accept_call"
);
gtk_button_set_image
(
GTK_BUTTON
(
answer_button
),
create_pixmap
(
linphone_gtk_get_ui_config
(
"start_call_icon"
,
"startcall-green.png"
)));
image
=
create_pixmap
(
linphone_gtk_get_ui_config
(
"start_call_icon"
,
"startcall-green.png"
));
if
(
with_pause
){
gtk_button_set_label
(
GTK_BUTTON
(
answer_button
),
_
(
"Pause all calls
\n
and answer"
));
}
else
gtk_button_set_label
(
GTK_BUTTON
(
answer_button
),
_
(
"Answer"
));
gtk_button_set_image
(
GTK_BUTTON
(
linphone_gtk_get_widget
(
callview
,
"decline_call"
)),
create_pixmap
(
linphone_gtk_get_ui_config
(
"stop_call_icon"
,
"stopcall-red.png"
)));
gtk_button_set_image
(
GTK_BUTTON
(
answer_button
),
image
);
gtk_widget_show
(
image
);
image
=
create_pixmap
(
linphone_gtk_get_ui_config
(
"stop_call_icon"
,
"stopcall-red.png"
));
gtk_button_set_image
(
GTK_BUTTON
(
linphone_gtk_get_widget
(
callview
,
"decline_call"
)),
image
);
gtk_widget_show
(
image
);
if
(
pbuf
!=
NULL
){
gtk_image_set_from_animation
(
GTK_IMAGE
(
animation
),
pbuf
);
...
...
gtk/main.c
View file @
e7f46ddf
...
...
@@ -1446,6 +1446,7 @@ int main(int argc, char *argv[]){
settings
=
gtk_settings_get_default
();
g_type_class_unref
(
g_type_class_ref
(
GTK_TYPE_IMAGE_MENU_ITEM
));
g_type_class_unref
(
g_type_class_ref
(
GTK_TYPE_BUTTON
));
g_object_set
(
settings
,
"gtk-menu-images"
,
TRUE
,
NULL
);
g_object_set
(
settings
,
"gtk-button-images"
,
TRUE
,
NULL
);
#ifdef WIN32
...
...
Write
Preview
Markdown
is supported
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