[gimp/tito: 16/50] fixed certain markup issues
- From: Jehan Pagès <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/tito: 16/50] fixed certain markup issues
- Date: Sat, 9 Nov 2013 23:19:34 +0000 (UTC)
commit 5eb413bd87a4ed02f291e7275f944bccd07aa0c8
Author: srihari sriraman <techie visishta net>
Date: Mon May 21 19:56:58 2012 +0530
fixed certain markup issues
app/dialogs/tito-dialog.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/app/dialogs/tito-dialog.c b/app/dialogs/tito-dialog.c
index 0bbeff2..b6015d1 100644
--- a/app/dialogs/tito-dialog.c
+++ b/app/dialogs/tito-dialog.c
@@ -598,7 +598,7 @@ add_to_list( const gchar *label,
if(data==NULL)
return;
- if(strstr(label, "bruce")!=NULL)
+ if(strchr(label, '@')!=NULL||strchr(label, '&')!=NULL)
return;
if(GTK_IS_TOGGLE_ACTION(action))
@@ -937,11 +937,12 @@ update_history(GtkAction *action)
//assign action to history var
if(!is_present)
{
- history[cur_no_of_his_actions].history_action = action;
- if(cur_no_of_his_actions==MAX_HISTORY_ACTIONS)
- history[cur_no_of_his_actions].count=1;
+ if(cur_no_of_his_actions==MAX_HISTORY_ACTIONS-1)
+ history[cur_no_of_his_actions].count=1;
else
- history[cur_no_of_his_actions++].count=1;
+ history[cur_no_of_his_actions++].count=1;
+
+ history[cur_no_of_his_actions].history_action = action;
}
//sort history according to count
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]