mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-20 20:48:07 +00:00
Migrate icons
This commit is contained in:
parent
6cbcade898
commit
2b2579453e
7 changed files with 11 additions and 16 deletions
|
|
@ -901,22 +901,13 @@ void linphone_gtk_enable_mute_button(GtkButton *button, gboolean sensitive){
|
|||
}
|
||||
|
||||
void linphone_gtk_draw_hold_button(GtkButton *button, gboolean active){
|
||||
const gchar *icon_name = active ? "linphone-hold-on" : "linphone-hold-off";
|
||||
const gchar *label = active ? _("Resume") : _("Pause");
|
||||
GtkWidget *image = gtk_image_new_from_icon_name(icon_name, GTK_ICON_SIZE_BUTTON);
|
||||
g_object_set_data(G_OBJECT(button),"active",GINT_TO_POINTER(active));
|
||||
if (active){
|
||||
GtkWidget *image=create_pixmap("hold_off.png");
|
||||
gtk_button_set_label(GTK_BUTTON(button),_("Resume"));
|
||||
if (image!=NULL) {
|
||||
gtk_button_set_image(GTK_BUTTON(button),image);
|
||||
gtk_widget_show(image);
|
||||
}
|
||||
}else{
|
||||
GtkWidget *image=create_pixmap("hold_on.png");
|
||||
gtk_button_set_label(GTK_BUTTON(button),_("Pause"));
|
||||
if (image!=NULL) {
|
||||
gtk_button_set_image(GTK_BUTTON(button),image);
|
||||
gtk_widget_show(image);
|
||||
}
|
||||
}
|
||||
gtk_button_set_label(GTK_BUTTON(button),label);
|
||||
gtk_button_set_image(GTK_BUTTON(button),image);
|
||||
gtk_widget_show(image);
|
||||
}
|
||||
|
||||
void linphone_gtk_hold_clicked(GtkButton *button){
|
||||
|
|
|
|||
|
|
@ -75,6 +75,8 @@ install(FILES
|
|||
linphone-add-call.png
|
||||
linphone-start-call.png
|
||||
linphone-start-chat.png
|
||||
linphone-hold-on.png
|
||||
linphone-hold-off.png
|
||||
DESTINATION ${ICONS_INSTALL_DIR}/48x48/actions
|
||||
PERMISSIONS OWNER_WRITE OWNER_READ GROUP_READ WORLD_READ
|
||||
)
|
||||
|
|
|
|||
|
|
@ -49,5 +49,7 @@ dist_actions48icons_DATA= \
|
|||
linphone-start-call2.png \
|
||||
linphone-show-dialer.png \
|
||||
linphone-add-call.png \
|
||||
linphone-start-call.png
|
||||
linphone-start-call.png \
|
||||
linphone-hold-on \
|
||||
linphone-hold-off
|
||||
)
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 3.8 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 2 KiB |
BIN
pixmaps/linphone-hold-off.png
Normal file
BIN
pixmaps/linphone-hold-off.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.5 KiB |
BIN
pixmaps/linphone-hold-on.png
Normal file
BIN
pixmaps/linphone-hold-on.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.4 KiB |
Loading…
Add table
Reference in a new issue