514 |
gint reply = |
gint reply = |
515 |
app_message_run (GTK_MESSAGE_QUESTION, |
app_message_run (GTK_MESSAGE_QUESTION, |
516 |
APP_BUTTONS_YES_NO, |
APP_BUTTONS_YES_NO, |
517 |
"The emotion `%s' is already assigned to %s.\n\n" |
"The affect `%s' is already assigned to %s.\n\n" |
518 |
"Do you want to replace that entry?", |
"Do you want to replace that entry?", |
519 |
ep_pattern_get_label (pat), |
ep_pattern_get_label (pat), |
520 |
emotion_pat); |
emotion_pat); |
991 |
|
|
992 |
menu = gtk_menu_new (); |
menu = gtk_menu_new (); |
993 |
|
|
994 |
mi = gtk_menu_item_new_with_label("Emotion"); |
mi = gtk_menu_item_new_with_label ("Affect"); |
995 |
gtk_menu_append (GTK_MENU_SHELL (menu), mi); |
gtk_menu_append (GTK_MENU_SHELL (menu), mi); |
996 |
g_signal_connect_swapped (mi, "activate", |
g_signal_connect_swapped (mi, "activate", |
997 |
G_CALLBACK (_cr_emotion_search), cr); |
G_CALLBACK (_cr_emotion_search), cr); |
1123 |
cell_renderer = gtk_cell_renderer_text_new (); |
cell_renderer = gtk_cell_renderer_text_new (); |
1124 |
gtk_tree_view_insert_column_with_data_func (GTK_TREE_VIEW (cr->patview), |
gtk_tree_view_insert_column_with_data_func (GTK_TREE_VIEW (cr->patview), |
1125 |
-1, |
-1, |
1126 |
"Emotion", |
"Affect", |
1127 |
cell_renderer, |
cell_renderer, |
1128 |
_cr_extract_emotion, |
_cr_extract_emotion, |
1129 |
NULL, |
NULL, |
1435 |
gtk_widget_show_all (menu); // needed to get the widget to size properly! |
gtk_widget_show_all (menu); // needed to get the widget to size properly! |
1436 |
gtk_option_menu_set_menu (GTK_OPTION_MENU (ce->power), menu); |
gtk_option_menu_set_menu (GTK_OPTION_MENU (ce->power), menu); |
1437 |
|
|
1438 |
yes = con->intent && con->intent != IP_INTENT_KILLS; |
yes = con->intent && con->intent != IP_INTENT_PROTESTS; |
1439 |
|
|
1440 |
gtk_widget_set_sensitive (ce->match_power, yes); |
gtk_widget_set_sensitive (ce->match_power, yes); |
1441 |
if (!yes) |
if (!yes) |
2229 |
{ |
{ |
2230 |
GtkWidget *button; |
GtkWidget *button; |
2231 |
|
|
2232 |
gtk_window_set_title (GTK_WINDOW (es), "Emotion Search"); |
gtk_window_set_title (GTK_WINDOW (es), "Affect Search"); |
2233 |
gtk_window_set_default_size (GTK_WINDOW (es), |
gtk_window_set_default_size (GTK_WINDOW (es), |
2234 |
45 * ge_font_width (GTK_WIDGET (es)), |
45 * ge_font_width (GTK_WIDGET (es)), |
2235 |
30 * ge_font_height (GTK_WIDGET (es))); |
30 * ge_font_height (GTK_WIDGET (es))); |
2300 |
gtk_tree_view_insert_column_with_data_func |
gtk_tree_view_insert_column_with_data_func |
2301 |
(GTK_TREE_VIEW (es->emotion_view), |
(GTK_TREE_VIEW (es->emotion_view), |
2302 |
-1, |
-1, |
2303 |
"Emotion", |
"Affect", |
2304 |
gtk_cell_renderer_text_new (), |
gtk_cell_renderer_text_new (), |
2305 |
_cr_extract_emotion, |
_cr_extract_emotion, |
2306 |
NULL, |
NULL, |