Revision 8234b7410814fdf12ae818767f1901acf28e565c

sadrul at pidgin.im sadrul at pidgin.im
Wed Mar 28 21:28:52 EDT 2007


o   -----------------------------------------------------------------
|   Revision: 8234b7410814fdf12ae818767f1901acf28e565c
|   Ancestor: ee2473f71341ef0bbbc782c3f43a8842b164b543
|   Author: sadrul at pidgin.im
|   Date: 2007-03-29T01:26:24
|   Branch: im.pidgin.pidgin
|   
|   Modified files:
|           finch/libgnt/gntentry.c
|   
|   ChangeLog: 
|   
|   Update the tab completion a little bit. The binding for suggest-show will perform suggest-next if the suggest-dropdown is already showing. If there's just one suggestion, then complete with that suggestion.
|   
|   ============================================================
|   --- finch/libgnt/gntentry.c	874cd9f7d6a52c5b389ee4f6bddb4517fbecf050
|   +++ finch/libgnt/gntentry.c	71e475c718383747dc0cb7abed94af931a893101
|   @@ -16,6 +16,7 @@ static GntWidgetClass *parent_class = NU
|    
|    static GntWidgetClass *parent_class = NULL;
|    
|   +static gboolean gnt_entry_key_pressed(GntWidget *widget, const char *text);
|    static void gnt_entry_set_text_internal(GntEntry *entry, const char *text);
|    
|    static void
|   @@ -321,7 +322,15 @@ suggest_show(GntBindable *bind, GList *n
|    static gboolean
|    suggest_show(GntBindable *bind, GList *null)
|    {
|   -	return show_suggest_dropdown(GNT_ENTRY(bind));
|   +	GntEntry *entry = GNT_ENTRY(bind);
|   +	if (entry->ddown) {
|   +		if (g_list_length(GNT_TREE(entry->ddown)->list) == 1)
|   +			gnt_entry_key_pressed(GNT_WIDGET(entry), "\r");
|   +		else
|   +			gnt_bindable_perform_action_named(GNT_BINDABLE(entry->ddown), "move-down");
|   +		return TRUE;
|   +	}
|   +	return show_suggest_dropdown(entry);
|    }
|    
|    static gboolean

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


More information about the Commits mailing list