Revision cf9ae5cee9d8608b76627c90ea401cc5347486ca

sadrul at pidgin.im sadrul at pidgin.im
Wed Mar 14 21:35:57 EDT 2007


o   -----------------------------------------------------------------
|   Revision: cf9ae5cee9d8608b76627c90ea401cc5347486ca
|   Ancestor: 757348e257be05fd941d26ae0e775214e855af98
|   Author: sadrul at pidgin.im
|   Date: 2007-03-15T01:52:21
|   Branch: im.pidgin.pidgin
|   
|   Modified files:
|           console/libgnt/gntwidget.c
|   
|   ChangeLog: 
|   
|   This takes way too much memory, especially with ncursesw. I hadn't noticed, because apparently I was using ncurses.
|   
|   ============================================================
|   --- console/libgnt/gntwidget.c	ad1c371517b2198009db53fe8ec8550e16124bd8
|   +++ console/libgnt/gntwidget.c	451f5aef1133a55c9d3e4c13cfa35c4f23a911a3
|   @@ -357,7 +357,7 @@ gnt_widget_draw(GntWidget *widget)
|    			g_signal_emit(widget, signals[SIG_SIZE_CHANGED], 0, oldw, oldh);
|    		}
|    #else
|   -		widget->window = newpad(150, 350);  /* XXX: */
|   +		widget->window = newpad(widget->priv.height + 20, widget->priv.width + 20);  /* XXX: */
|    #endif
|    		init_widget(widget);
|    	}
|   @@ -520,6 +520,10 @@ gnt_widget_set_size(GntWidget *widget, i
|    
|    		widget->priv.width = width;
|    		widget->priv.height = height;
|   +		if (width >= getmaxx(widget->window) || height >= getmaxy(widget->window)) {
|   +			delwin(widget->window);
|   +			widget->window = newpad(height + 20, width + 20);
|   +		}
|    
|    		g_signal_emit(widget, signals[SIG_SIZE_CHANGED], 0, oldw, oldh);
|    
|   @@ -581,7 +585,8 @@ update_queue_callback(gpointer data)
|    
|    	if (!g_object_get_data(G_OBJECT(widget), "gnt:queue_update"))
|    		return FALSE;
|   -	gnt_screen_update(widget);
|   +	if (GNT_WIDGET_IS_FLAG_SET(widget, GNT_WIDGET_MAPPED))
|   +		gnt_screen_update(widget);
|    	g_object_set_data(G_OBJECT(widget), "gnt:queue_update", NULL);
|    	return FALSE;
|    }

To get the patch for this revision, please do this:
mtn log --last 1 --diffs --from cf9ae5cee9d8608b76627c90ea401cc5347486ca


More information about the Commits mailing list