Skip to content
Snippets Groups Projects
Commit 013be2ae authored by Julien Bonjean's avatar Julien Bonjean
Browse files

Modified waiting icon, moved on top right (menu)

parent 61305dfd
No related branches found
No related tags found
No related merge requests found
sflphone-gtk/pixmaps/wait-off.gif

309 B | W: | H:

sflphone-gtk/pixmaps/wait-off.gif

150 B | W: | H:

sflphone-gtk/pixmaps/wait-off.gif
sflphone-gtk/pixmaps/wait-off.gif
sflphone-gtk/pixmaps/wait-off.gif
sflphone-gtk/pixmaps/wait-off.gif
  • 2-up
  • Swipe
  • Onion skin
sflphone-gtk/pixmaps/wait-on.gif

2.49 KiB | W: | H:

sflphone-gtk/pixmaps/wait-on.gif

1.31 KiB | W: | H:

sflphone-gtk/pixmaps/wait-on.gif
sflphone-gtk/pixmaps/wait-on.gif
sflphone-gtk/pixmaps/wait-on.gif
sflphone-gtk/pixmaps/wait-on.gif
  • 2-up
  • Swipe
  • Onion skin
......@@ -172,6 +172,9 @@ create_main_window ()
/* dont't show the contact list */
gtk_widget_hide(contacts->tree);
/* don't show waiting layer */
gtk_widget_hide(waitingLayer);
//gtk_tree_view_set_model(GTK_TREE_VIEW(history->view), GTK_TREE_MODEL(histfilter));
// Configuration wizard
if (account_list_get_size() == 0)
......
......@@ -33,6 +33,8 @@ GtkAccelGroup * get_accel_group();
*/
GtkWidget * get_main_window();
GtkWidget *waitingLayer;
/**
* Build the main window
*/
......
......@@ -685,8 +685,9 @@ create_menus ( )
root_menu = create_help_menu();
gtk_menu_shell_append (GTK_MENU_SHELL (menu_bar), root_menu);
gtk_widget_show (menu_bar);
waitingLayer = gtk_image_menu_item_new_with_label("");
gtk_menu_item_set_right_justified(GTK_MENU_ITEM(waitingLayer),TRUE);
gtk_menu_shell_append(GTK_MENU_SHELL (menu_bar),waitingLayer);
return menu_bar;
}
......
......@@ -160,19 +160,17 @@ GtkWidget* create_filter_entry() {
// Create waiting icon
waitingPixOn = gdk_pixbuf_animation_new_from_file(ICONS_DIR "/wait-on.gif", NULL);
waitingPixOff = gdk_pixbuf_new_from_file(ICONS_DIR "/wait-off.gif", NULL);
waitingLayer = gtk_image_new_from_pixbuf(waitingPixOff);
gtk_box_pack_end(GTK_BOX(ret), waitingLayer, TRUE, TRUE, 0);
// waitingPixOff = gdk_pixbuf_new_from_file(ICONS_DIR "/wait-off.gif", NULL);
gtk_image_menu_item_set_image (waitingLayer,GTK_IMAGE(gtk_image_new_from_animation(waitingPixOn)));
return ret;
}
void activateWaitingLayer() {
gtk_image_set_from_animation(GTK_IMAGE(waitingLayer),waitingPixOn);
gtk_widget_show(waitingLayer);
}
void deactivateWaitingLayer() {
gtk_image_set_from_pixbuf (GTK_IMAGE(waitingLayer),waitingPixOff);
gtk_widget_hide(waitingLayer);
}
......@@ -26,7 +26,7 @@
#include <gtk/gtk.h>
#include <libsexy/sexy-icon-entry.h>
GtkWidget *waitingLayer;
GdkPixbufAnimation *waitingPixOn;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment