Migrate icons

This commit is contained in:
François Grisez 2015-09-24 00:50:50 +02:00
parent 6cbcade898
commit 2b2579453e
7 changed files with 11 additions and 16 deletions

View file

@ -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){

View file

@ -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
)

View file

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB