Revision 3279 src/quick_search.c

View differences:

quick_search.c
48 48
	{QS_W1DAY,	-1},
49 49
	{QS_LAST5,	-1},
50 50
	{QS_LAST7,	-1},
51
	{QS_IN_ADDRESSBOOK,	-1}
51
	{QS_IN_ADDRESSBOOK,	-1},
52
	{QS_LAST30,	-1}
52 53
};
53 54

  
54 55
static GdkColor dim_color = {0, COLOR_DIM, COLOR_DIM, COLOR_DIM};
......
113 114
	COND_MENUITEM_ADD(_("Within 1 day"), QS_W1DAY);
114 115
	COND_MENUITEM_ADD(_("Last 5 days"), QS_LAST5);
115 116
	COND_MENUITEM_ADD(_("Last 7 days"), QS_LAST7);
117
	COND_MENUITEM_ADD(_("Last 30 days"), QS_LAST30);
116 118
	MENUITEM_ADD(menu, menuitem, NULL, 0);
117 119
	COND_MENUITEM_ADD(_("In addressbook"), QS_IN_ADDRESSBOOK);
118 120
	gtk_option_menu_set_menu(GTK_OPTION_MENU(optmenu), menu);
......
257 259
		status_rule = filter_rule_new("Status filter rule", FLT_OR,
258 260
					      cond_list, NULL);
259 261
		break;
262
	case QS_LAST30:
263
		cond = filter_cond_new(FLT_COND_AGE_GREATER, 0, FLT_NOT_MATCH,
264
				       NULL, "30");
265
		cond_list = g_slist_append(cond_list, cond);
266
		status_rule = filter_rule_new("Status filter rule", FLT_OR,
267
					      cond_list, NULL);
268
		break;
260 269
	case QS_IN_ADDRESSBOOK:
261 270
		cond = filter_cond_new(FLT_COND_HEADER, FLT_IN_ADDRESSBOOK, 0,
262 271
				       "From", NULL);

Also available in: Unified diff