/soc/2015/mmcc/main: a767dcfe48d5: typing animation probably nev...

Michael McConville mmcconville at mykolab.com
Tue Jun 23 16:02:34 EDT 2015


Changeset: a767dcfe48d5349e30c816daf55c8960e3888f60
Author:	 Michael McConville <mmcconville at mykolab.com>
Date:	 2015-06-19 22:10 -0400
Branch:	 default
URL: https://hg.pidgin.im/soc/2015/mmcc/main/rev/a767dcfe48d5

Description:

typing animation probably never going to be used

diffstat:

 pidgin/gtkconv.c |  41 -----------------------------------------
 1 files changed, 0 insertions(+), 41 deletions(-)

diffs (51 lines):

diff --git a/pidgin/gtkconv.c b/pidgin/gtkconv.c
--- a/pidgin/gtkconv.c
+++ b/pidgin/gtkconv.c
@@ -3759,47 +3759,6 @@ got_typing_keypress(PidginConversation *
 	}
 }
 
-#if 0
-static gboolean
-typing_animation(gpointer data) {
-	PidginConversation *gtkconv = data;
-	PidginConvWindow *gtkwin = gtkconv->win;
-	const char *stock_id = NULL;
-
-	if(gtkconv != pidgin_conv_window_get_active_gtkconv(gtkwin)) {
-		return FALSE;
-	}
-
-	switch (rand() % 5) {
-	case 0:
-		stock_id = PIDGIN_STOCK_ANIMATION_TYPING0;
-		break;
-	case 1:
-		stock_id = PIDGIN_STOCK_ANIMATION_TYPING1;
-		break;
-	case 2:
-		stock_id = PIDGIN_STOCK_ANIMATION_TYPING2;
-		break;
-	case 3:
-		stock_id = PIDGIN_STOCK_ANIMATION_TYPING3;
-		break;
-	case 4:
-		stock_id = PIDGIN_STOCK_ANIMATION_TYPING4;
-		break;
-	}
-	if (gtkwin->menu->typing_icon == NULL) {
-		gtkwin->menu->typing_icon = gtk_image_new_from_stock(stock_id, GTK_ICON_SIZE_MENU);
-		pidgin_menu_tray_append(PIDGIN_MENU_TRAY(gtkwin->menu->tray),
-		                        gtkwin->menu->typing_icon,
-		                        _("User is typing..."));
-	} else {
-		gtk_image_set_from_stock(GTK_IMAGE(gtkwin->menu->typing_icon), stock_id, GTK_ICON_SIZE_MENU);
-	}
-	gtk_widget_show(gtkwin->menu->typing_icon);
-	return TRUE;
-}
-#endif
-
 static void
 update_typing_message(PidginConversation *gtkconv, const char *message)
 {



More information about the Commits mailing list