~ubuntu-branches/debian/jessie/xiphos/jessie

« back to all changes in this revision

Viewing changes to src/gnome2/search_dialog.c

  • Committer: Bazaar Package Importer
  • Author(s): Dmitrijs Ledkovs
  • Date: 2010-03-22 18:15:54 UTC
  • mfrom: (4.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100322181554-qlqchymwhcw28c0c
* New upstream release:
  + Bugfix only
  + Compatible with xulrunner 1.9.2
  + Update translations

* Revert changes introduced in 3.1.2-1ubuntu1. Thank you Chris Coulson
  for temporary fix.
* debian/xiphos.1 - spelling mistake
* waf is now default buildsystem
* help is now licensed under GPL
* Bumped standards version no changes required
* Changed email to @ubuntu.com

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#ifdef HAVE_CONFIG_H
23
23
#include <config.h>
24
24
#endif
25
 
 
 
25
 
26
26
#include <gtk/gtk.h>
27
27
#include <glade/glade-xml.h>
28
28
 
29
 
#ifdef USE_GTKMOZEMBED 
 
29
#ifdef USE_GTKMOZEMBED
30
30
#ifdef WIN32
31
31
#include "geckowin/gecko-html.h"
32
32
#else
92
92
        GtkTreeIter selected;
93
93
        GtkTreeModel *model;
94
94
        GtkTreePath *path;
95
 
        
 
95
 
96
96
        selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(widget));
97
 
        
 
97
 
98
98
        if (!gtk_tree_selection_get_selected(selection, &model, &selected))
99
99
                return FALSE;
100
 
        
101
 
        if (!gtk_tree_model_iter_has_child(model, &selected)) 
 
100
 
 
101
        if (!gtk_tree_model_iter_has_child(model, &selected))
102
102
                return FALSE;
103
 
        
 
103
 
104
104
        path = gtk_tree_model_get_path(model, &selected);
105
105
        if (gtk_tree_view_row_expanded (GTK_TREE_VIEW(widget), path))
106
106
               gtk_tree_view_collapse_row ( GTK_TREE_VIEW(widget), path );
107
107
        else
108
108
               gtk_tree_view_expand_row ( GTK_TREE_VIEW(widget), path, FALSE );
109
109
        gtk_tree_path_free ( path );
110
 
        return FALSE;   
 
110
        return FALSE;
111
111
}
112
112
 
113
113
void on_comboboxentry2_changed(GtkComboBox * combobox,
124
124
 * Synopsis
125
125
 *   #include "gui/search_dialog.h"
126
126
 *
127
 
 *   void button_clean(GtkButton * button, 
 
127
 *   void button_clean(GtkButton * button,
128
128
 *                                              gpointer user_data)
129
129
 *
130
130
 * Description
135
135
 */
136
136
 
137
137
void button_clean(GtkButton * button, gpointer user_data)
138
 
{        
 
138
{
139
139
        GtkTreeModel *model;
140
140
        GtkListStore *list_store;
141
141
#ifdef USE_GTKMOZEMBED
142
142
        GString *html_text;
143
143
#endif
144
 
        
 
144
 
145
145
        GS_message(("button_clean"));
146
146
        model =
147
147
            gtk_tree_view_get_model(GTK_TREE_VIEW
148
148
                                    (search1.listview_results));
149
149
        list_store = GTK_LIST_STORE(model);
150
150
        gtk_list_store_clear(list_store);
151
 
        
 
151
 
152
152
        model =
153
153
            gtk_tree_view_get_model(GTK_TREE_VIEW
154
154
                                    (search1.listview_verses));
155
155
        list_store = GTK_LIST_STORE(model);
156
 
        gtk_list_store_clear(list_store);       
157
 
        
 
156
        gtk_list_store_clear(list_store);
 
157
 
158
158
#ifdef USE_GTKMOZEMBED
159
159
        html_text=g_string_new(HTML_START);
160
160
        g_string_append(html_text," ");
161
 
        g_string_append(html_text,"</html>");   
 
161
        g_string_append(html_text,"</html>");
162
162
        gecko_html_open_stream(GECKO_HTML(search1.preview_html),"text/html");
163
163
        gecko_html_write(GECKO_HTML(search1.preview_html),html_text->str,html_text->len);
164
164
        gecko_html_close(GECKO_HTML(search1.preview_html));
221
221
 * Synopsis
222
222
 *   #include "gui/search_dialog.h"
223
223
 *
224
 
 *   void on_destroy(GtkWidget * dialog, 
 
224
 *   void on_destroy(GtkWidget * dialog,
225
225
 *                                  gpointer user_data)
226
226
 *
227
227
 * Description
236
236
        /* main_do_dialog_search() initializes these as search starts */
237
237
        if (search_active) {
238
238
                terminate_search = TRUE;
239
 
                while (gtk_events_pending())
240
 
                        gtk_main_iteration();
 
239
                sync_windows();
241
240
        } else {
242
241
                main_close_search_dialog();
243
242
                if (module_selected) {
264
263
 *   void on_button_begin_search(GtkButton * button, gpointer user_data)
265
264
 *
266
265
 * Description
267
 
 *   starts the search 
 
266
 *   starts the search
268
267
 *
269
268
 * Return value
270
269
 *   void
278
277
                label = g_strdup("gtk-find");
279
278
                gtk_button_set_label((GtkButton *)remember_search, label);
280
279
                gtk_button_set_use_stock((GtkButton *)remember_search, TRUE);
281
 
                while (gtk_events_pending())
282
 
                        gtk_main_iteration();
 
280
                sync_windows();
283
281
        } else {
284
282
                const gchar *label;
285
283
                label = g_strdup("gtk-stop");
304
302
 *                                                  gpointer user_data)
305
303
 *
306
304
 * Description
307
 
 *   
 
305
 *
308
306
 *
309
307
 * Return value
310
308
 *   void
440
438
 *   void new_modlist(GtkButton * button, gpointer user_data)
441
439
 *
442
440
 * Description
443
 
 *   adds a new custom module list to the 
 
441
 *   adds a new custom module list to the
444
442
 *
445
443
 * Return value
446
444
 *   void
495
493
 
496
494
/******************************************************************************
497
495
 * Name
498
 
 *   
 
496
 *
499
497
 *
500
498
 * Synopsis
501
499
 *   #include "gui/search_dialog.h"
502
500
 *
503
 
 *   
 
501
 *
504
502
 *
505
503
 * Description
506
 
 *    
 
504
 *
507
505
 *
508
506
 * Return value
509
507
 *   void
542
540
 
543
541
/******************************************************************************
544
542
 * Name
545
 
 *   
 
543
 *
546
544
 *
547
545
 * Synopsis
548
546
 *   #include "gui/search_dialog.h"
549
547
 *
550
 
 *   
 
548
 *
551
549
 *
552
550
 * Description
553
 
 *    
 
551
 *
554
552
 *
555
553
 * Return value
556
554
 *   void
687
685
 *   void delete_list(GtkButton * button, gpointer user_data)
688
686
 *
689
687
 * Description
690
 
 *   
 
688
 *
691
689
 *
692
690
 * Return value
693
691
 *   void
763
761
 
764
762
void scope_toggled(GtkToggleButton * togglebutton, gpointer user_data)
765
763
{
766
 
        search1.which_scope = togglebutton;  
767
 
        if(GTK_TOGGLE_BUTTON(search1.rb_custom_range)->active)
 
764
        search1.which_scope = togglebutton;
 
765
        if (GTK_TOGGLE_BUTTON(search1.rb_custom_range)->active)
768
766
                gtk_widget_set_sensitive(search1.combo_range,TRUE);
769
767
        else
770
768
                gtk_widget_set_sensitive(search1.combo_range,FALSE);
782
780
                                                gpointer user_data)
783
781
 *
784
782
 * Description
785
 
 *   
 
783
 *
786
784
 *
787
785
 * Return value
788
786
 *   void
795
793
                main_comboboxentry2_changed((GtkComboBox *) search1.
796
794
                                            combo_list, user_data);
797
795
        }
798
 
        if(GTK_TOGGLE_BUTTON(search1.rb_custom_list)->active)
 
796
        if (GTK_TOGGLE_BUTTON(search1.rb_custom_list)->active)
799
797
                gtk_widget_set_sensitive(search1.combo_list,TRUE);
800
798
        else
801
799
                gtk_widget_set_sensitive(search1.combo_list,FALSE);
802
 
                
803
 
                
 
800
 
 
801
 
804
802
}
805
803
 
806
804
 
840
838
 
841
839
/******************************************************************************
842
840
 * Name
843
 
 *   
 
841
 *
844
842
 *
845
843
 * Synopsis
846
844
 *   #include "gui/search_dialog.h"
847
845
 *
848
 
 *   
 
846
 *
849
847
 *
850
848
 * Description
851
 
 *   
 
849
 *
852
850
 *
853
851
 * Return value
854
 
 *   
 
852
 *
855
853
 */
856
854
 
857
855
gboolean _on_button_release_event(GtkWidget * widget,
877
875
 *                    GtkWidget * tree_widget)
878
876
 *
879
877
 * Description
880
 
 *   
 
878
 *
881
879
 *
882
880
 * Return value
883
881
 *   void
892
890
 
893
891
/******************************************************************************
894
892
 * Name
895
 
 *   
 
893
 *
896
894
 *
897
895
 * Synopsis
898
896
 *   #include "gui/search_dialog.h"
901
899
 *                                                       gpointer data)
902
900
 *
903
901
 * Description
904
 
 *   
 
902
 *
905
903
 *
906
904
 * Return value
907
905
 *   void
925
923
 *                                                       gpointer data)
926
924
 *
927
925
 * Description
928
 
 *   
 
926
 *
929
927
 *
930
928
 * Return value
931
929
 *   void
951
949
 *                                                       gpointer data)
952
950
 *
953
951
 * Description
954
 
 *   
 
952
 *
955
953
 *
956
954
 * Return value
957
955
 *   void
962
960
{
963
961
        gchar *mod = NULL;
964
962
        GtkTreeIter selected;
965
 
        
 
963
 
966
964
        GtkTreeModel *model =
967
965
            gtk_tree_view_get_model(GTK_TREE_VIEW(tree_widget));
968
966
 
969
967
        if (!gtk_tree_selection_get_selected(selection, NULL, &selected))
970
968
                return;
971
969
        if (gtk_tree_model_iter_has_child(model, &selected)) {
972
 
                
973
 
                if(module_selected) g_free(module_selected);
974
 
                module_selected = NULL; 
 
970
 
 
971
                if (module_selected) g_free(module_selected);
 
972
                module_selected = NULL;
975
973
                return;
976
974
        }
977
975
        gtk_tree_model_get(model, &selected, 0, &mod, -1);
978
976
        if (mod) {
979
 
                
980
 
                if(module_selected) g_free(module_selected);
 
977
 
 
978
                if (module_selected) g_free(module_selected);
981
979
                module_selected = g_strdup(mod);
982
980
                g_free(mod);
983
 
        }       
984
 
        
 
981
        }
 
982
 
985
983
}
986
984
 
987
985
 
988
986
/******************************************************************************
989
987
 * Name
990
 
 *   
 
988
 *
991
989
 *
992
990
 * Synopsis
993
991
 *   #include "gui/search_dialog.h"
996
994
 *                                                       gpointer data)
997
995
 *
998
996
 * Description
999
 
 *   
 
997
 *
1000
998
 *
1001
999
 * Return value
1002
1000
 *   void
1005
1003
static void _finds_verselist_selection_changed(GtkWidget * widget,
1006
1004
                                                GdkEventButton * event,
1007
1005
                                                gpointer data)
1008
 
{       
 
1006
{
1009
1007
        GtkTreeSelection *selection;
1010
1008
        GtkTreeModel *model;
1011
1009
        GtkTreeIter selected;
1019
1017
                return;
1020
1018
 
1021
1019
        gtk_tree_model_get(GTK_TREE_MODEL(model), &selected, 0, &key, -1);
1022
 
                
 
1020
 
1023
1021
        main_finds_verselist_selection_changed(selection, model, event->type == GDK_2BUTTON_PRESS);
1024
1022
}
1025
1023
 
1034
1032
 *                                                       gpointer data)
1035
1033
 *
1036
1034
 * Description
1037
 
 *   
 
1035
 *
1038
1036
 *
1039
1037
 * Return value
1040
1038
 *   void
1066
1064
 
1067
1065
/******************************************************************************
1068
1066
 * Name
1069
 
 *   
 
1067
 *
1070
1068
 *
1071
1069
 * Synopsis
1072
1070
 *   #include "gui/search_dialog.h"
1075
1073
 *                                                       gpointer data)
1076
1074
 *
1077
1075
 * Description
1078
 
 *   
 
1076
 *
1079
1077
 *
1080
1078
 * Return value
1081
1079
 *   void
1095
1093
            gtk_tree_view_get_model(GTK_TREE_VIEW
1096
1094
                                    (search1.list_range_name));
1097
1095
        main_finds_verselist_selection_changed(selection,
1098
 
                                            model, 
 
1096
                                            model,
1099
1097
                                            FALSE);
1100
1098
}
1101
1099
 
1110
1108
 *   void add_two_text_columns(GtkTreeView * treeview)
1111
1109
 *
1112
1110
 * Description
1113
 
 *   
 
1111
 *
1114
1112
 *
1115
1113
 * Return value
1116
1114
 *   void
1120
1118
{
1121
1119
        GtkCellRenderer *renderer;
1122
1120
        GtkTreeViewColumn *column;
1123
 
        
 
1121
 
1124
1122
        renderer = gtk_cell_renderer_text_new();
1125
1123
 
1126
1124
        column = gtk_tree_view_column_new_with_attributes("Module",
1143
1141
 
1144
1142
/******************************************************************************
1145
1143
 * Name
1146
 
 *   
 
1144
 *
1147
1145
 *
1148
1146
 * Synopsis
1149
1147
 *   #include "gui/search_dialog.h"
1150
1148
 *
1151
 
 *   
 
1149
 *
1152
1150
 *
1153
1151
 * Description
1154
 
 *   
 
1152
 *
1155
1153
 *
1156
1154
 * Return value
1157
 
 *   
 
1155
 *
1158
1156
 */
1159
1157
 
1160
1158
static
1171
1169
 
1172
1170
/******************************************************************************
1173
1171
 * Name
1174
 
 *   
 
1172
 *
1175
1173
 *
1176
1174
 * Synopsis
1177
1175
 *   #include "gui/search_dialog.h"
1178
1176
 *
1179
 
 *   
 
1177
 *
1180
1178
 *
1181
1179
 * Description
1182
 
 *   
 
1180
 *
1183
1181
 *
1184
1182
 * Return value
1185
 
 *   
 
1183
 *
1186
1184
 */
1187
1185
 
1188
1186
static
1231
1229
                                G_CALLBACK(tree_key_press_cb), NULL);*/
1232
1230
        g_signal_connect(selection, "changed", G_CALLBACK(selection_verselist_changed),
1233
1231
                         NULL);
1234
 
        
 
1232
 
1235
1233
}
1236
1234
 
1237
1235
 
1238
1236
/******************************************************************************
1239
1237
 * Name
1240
 
 *   
 
1238
 *
1241
1239
 *
1242
1240
 * Synopsis
1243
1241
 *   #include "gui/search_dialog.h"
1244
1242
 *
1245
 
 *   
 
1243
 *
1246
1244
 *
1247
1245
 * Description
1248
 
 *   
 
1246
 *
1249
1247
 *
1250
1248
 * Return value
1251
 
 *   
 
1249
 *
1252
1250
 */
1253
1251
 
1254
1252
static
1272
1270
                     (GTK_TREE_VIEW(treeview)));
1273
1271
        g_signal_connect(selection, "changed",
1274
1272
                         G_CALLBACK(mod_selection_changed), treeview);
1275
 
        
 
1273
 
1276
1274
        g_signal_connect_after(G_OBJECT(treeview),
1277
1275
                               "button_release_event",
1278
1276
                               G_CALLBACK(button_release_event),
1313
1311
 
1314
1312
/******************************************************************************
1315
1313
 * Name
1316
 
 *   
 
1314
 *
1317
1315
 *
1318
1316
 * Synopsis
1319
1317
 *   #include "gui/search_dialog.h"
1320
1318
 *
1321
 
 *   
 
1319
 *
1322
1320
 *
1323
1321
 * Description
1324
 
 *   
 
1322
 *
1325
1323
 *
1326
1324
 * Return value
1327
 
 *   
 
1325
 *
1328
1326
 */
1329
1327
 
1330
1328
void _on_dialog2_response(GtkDialog * dialog, gint response_id,
1342
1340
 
1343
1341
/******************************************************************************
1344
1342
 * Name
1345
 
 *   
 
1343
 *
1346
1344
 *
1347
1345
 * Synopsis
1348
1346
 *   #include "gui/search_dialog.h"
1349
1347
 *
1350
 
 *   
 
1348
 *
1351
1349
 *
1352
1350
 * Description
1353
1351
 *   Creates the module selection dialog
1356
1354
 *   void
1357
1355
 */
1358
1356
 
1359
 
static 
 
1357
static
1360
1358
void _create_mod_sel_dialog(void)
1361
1359
{
1362
1360
        gchar *glade_file;
1381
1379
 
1382
1380
/******************************************************************************
1383
1381
 * Name
1384
 
 *   
 
1382
 *
1385
1383
 *
1386
1384
 * Synopsis
1387
1385
 *   #include "gui/search_dialog.h"
1388
1386
 *
1389
 
 *   
 
1387
 *
1390
1388
 *
1391
1389
 * Description
1392
1390
 *   Shows the module selection dialog
1404
1402
 
1405
1403
/******************************************************************************
1406
1404
 * Name
1407
 
 *   
 
1405
 *
1408
1406
 *
1409
1407
 * Synopsis
1410
1408
 *   #include "gui/search_dialog.h"
1411
1409
 *
1412
 
 *   
 
1410
 *
1413
1411
 *
1414
1412
 * Description
1415
 
 *   
 
1413
 *
1416
1414
 *
1417
1415
 * Return value
1418
 
 *   
 
1416
 *
1419
1417
 */
1420
1418
 
1421
1419
/* add html widgets */
1422
1420
static
1423
1421
void _add_html_widget(GtkWidget * vbox)
1424
 
{       
 
1422
{
1425
1423
#ifdef USE_GTKMOZEMBED
1426
1424
        search1.preview_html = GTK_WIDGET(gecko_html_new(NULL, FALSE, DIALOG_SEARCH_PREVIEW_TYPE));
1427
1425
        gtk_box_pack_start(GTK_BOX(vbox), search1.preview_html, TRUE, TRUE, 0);
1447
1445
 
1448
1446
/******************************************************************************
1449
1447
 * Name
1450
 
 *   
 
1448
 *
1451
1449
 *
1452
1450
 * Synopsis
1453
1451
 *   #include "gui/search_dialog.h"
1454
1452
 *
1455
 
 *   
 
1453
 *
1456
1454
 *
1457
1455
 * Description
1458
 
 *   
 
1456
 *
1459
1457
 *
1460
1458
 * Return value
1461
 
 *   
 
1459
 *
1462
1460
 */
1463
1461
 
1464
1462
void _on_dialog_response(GtkDialog * dialog, gint response_id,
1485
1483
 *   void _create_search_dialog(void)
1486
1484
 *
1487
1485
 * Description
1488
 
 *   
 
1486
 *
1489
1487
 *
1490
1488
 * Return value
1491
1489
 *   void
1506
1504
        GtkWidget *toolbutton8;
1507
1505
        GtkWidget *toolbutton10;
1508
1506
        GtkWidget *toolbutton11;
1509
 
        GtkWidget *toolbutton12;        
 
1507
        GtkWidget *toolbutton12;
1510
1508
        GtkWidget *toolbutton13;
1511
1509
        module_selected = NULL;
1512
1510
        verse_selected = NULL;
1533
1531
 
1534
1532
        remember_search = glade_xml_get_widget(gxml, "button1");
1535
1533
        g_signal_connect(remember_search, "clicked",
1536
 
                         G_CALLBACK(on_button_begin_search), NULL);     
 
1534
                         G_CALLBACK(on_button_begin_search), NULL);
1537
1535
 
1538
1536
        search1.label_search_module =
1539
1537
            glade_xml_get_widget(gxml, "label5");
1540
1538
        search1.search_entry = glade_xml_get_widget(gxml, "entry1");
1541
1539
        g_signal_connect(search1.search_entry, "activate",
1542
 
                         G_CALLBACK(on_button_begin_search), NULL);     
 
1540
                         G_CALLBACK(on_button_begin_search), NULL);
1543
1541
 
1544
1542
        search1.notebook = glade_xml_get_widget(gxml, "notebook1");
1545
1543
 
1565
1563
        /* scope radio buttons */
1566
1564
        search1.rb_no_scope = glade_xml_get_widget(gxml, "radiobutton1");
1567
1565
        g_signal_connect(search1.rb_no_scope, "toggled",
1568
 
                         G_CALLBACK(scope_toggled), NULL);                  
 
1566
                         G_CALLBACK(scope_toggled), NULL);
1569
1567
        search1.rb_last = glade_xml_get_widget(gxml, "radiobutton2");
1570
1568
        search1.which_scope = GTK_TOGGLE_BUTTON(search1.rb_no_scope);
1571
1569
        search1.rb_custom_range = glade_xml_get_widget(gxml, "radiobutton3");
1572
1570
        g_signal_connect(search1.rb_custom_range, "toggled",
1573
 
                         G_CALLBACK(scope_toggled), NULL);          
 
1571
                         G_CALLBACK(scope_toggled), NULL);
1574
1572
        /* modules radio buttons */
1575
1573
        search1.rb_current_module = glade_xml_get_widget(gxml, "radiobutton4");
1576
1574
        g_signal_connect(search1.rb_current_module, "toggled",
1577
 
                         G_CALLBACK(current_module_toggled), NULL);     
 
1575
                         G_CALLBACK(current_module_toggled), NULL);
1578
1576
        search1.rb_mod_list = glade_xml_get_widget(gxml, "radiobutton5");
1579
1577
        g_signal_connect(search1.rb_mod_list, "toggled",
1580
 
                         G_CALLBACK(mod_list_toggled), NULL);   
 
1578
                         G_CALLBACK(mod_list_toggled), NULL);
1581
1579
        search1.rb_custom_list = glade_xml_get_widget(gxml, "radiobutton6");
1582
1580
        g_signal_connect(search1.rb_custom_list, "toggled",
1583
 
                         G_CALLBACK(mod_list_toggled), NULL);   
 
1581
                         G_CALLBACK(mod_list_toggled), NULL);
1584
1582
        /*  */
1585
1583
        search1.rb_words        = glade_xml_get_widget(gxml, "radiobutton9");
1586
1584
        search1.rb_regexp       = glade_xml_get_widget(gxml, "radiobutton10");
1595
1593
 
1596
1594
        /*   */
1597
1595
        search1.cb_case_sensitive = glade_xml_get_widget(gxml, "checkbutton1");
1598
 
            
 
1596
 
1599
1597
        /* display options check buttons */
1600
1598
        search1.cb_include_strongs   = glade_xml_get_widget(gxml, "checkbutton2");
1601
1599
        search1.cb_include_morphs    = glade_xml_get_widget(gxml, "checkbutton3");
1602
1600
        search1.cb_include_footnotes = glade_xml_get_widget(gxml, "checkbutton4");
1603
 
            
 
1601
 
1604
1602
        toolbutton1 = glade_xml_get_widget(gxml, "toolbutton1");
1605
1603
        g_signal_connect(toolbutton1, "clicked",
1606
1604
                         G_CALLBACK(button_save), NULL);
1607
 
            
 
1605
 
1608
1606
        toolbutton2 = glade_xml_get_widget(gxml, "toolbutton2");
1609
1607
        g_signal_connect(toolbutton2, "clicked",
1610
1608
                         G_CALLBACK(button_clean), NULL);
1611
 
            
 
1609
 
1612
1610
        toolbutton3 = glade_xml_get_widget(gxml, "toolbutton3");
1613
1611
        g_signal_connect(toolbutton3, "clicked",
1614
1612
                         G_CALLBACK(new_range), NULL);
1615
 
            
 
1613
 
1616
1614
        toolbutton4 = glade_xml_get_widget(gxml, "toolbutton4");
1617
1615
        g_signal_connect(toolbutton4, "clicked",
1618
1616
                         G_CALLBACK(save_range), NULL);
1619
 
            
 
1617
 
1620
1618
        toolbutton5 = glade_xml_get_widget(gxml, "toolbutton5");
1621
1619
        g_signal_connect(toolbutton5, "clicked",
1622
1620
                         G_CALLBACK(delete_range), NULL);
1623
 
            
 
1621
 
1624
1622
        toolbutton6 = glade_xml_get_widget(gxml, "toolbutton6");
1625
1623
        g_signal_connect(toolbutton6, "clicked",
1626
1624
                         G_CALLBACK(new_modlist), NULL);
1627
 
            
 
1625
 
1628
1626
        toolbutton7 = glade_xml_get_widget(gxml, "toolbutton7");
1629
1627
        g_signal_connect(toolbutton7, "clicked",
1630
1628
                         G_CALLBACK(save_modlist), NULL);
1631
 
            
 
1629
 
1632
1630
        toolbutton8 = glade_xml_get_widget(gxml, "toolbutton8");
1633
1631
        g_signal_connect(toolbutton8, "clicked",
1634
1632
                         G_CALLBACK(delete_list), NULL);
1635
 
            
 
1633
 
1636
1634
        toolbutton10 = glade_xml_get_widget(gxml, "toolbutton10");
1637
1635
        g_signal_connect(toolbutton10, "clicked",
1638
1636
                         G_CALLBACK(clear_modules), NULL);
1639
 
            
 
1637
 
1640
1638
        toolbutton11 = glade_xml_get_widget(gxml, "toolbutton11");
1641
1639
        g_signal_connect(toolbutton11, "clicked",
1642
1640
                         G_CALLBACK(delete_module), NULL);
1643
 
            
 
1641
 
1644
1642
        toolbutton12 = glade_xml_get_widget(gxml, "toolbutton12");
1645
1643
        g_signal_connect(toolbutton12, "clicked",
1646
1644
                         G_CALLBACK(on_toolbutton12_clicked), NULL);
1647
 
                         
 
1645
 
1648
1646
        toolbutton13 = glade_xml_get_widget(gxml, "toolbutton_export");
1649
1647
        g_signal_connect(toolbutton13, "clicked",
1650
1648
                         G_CALLBACK(button_export), NULL);
1651
 
        
 
1649
 
1652
1650
        search1.togglebutton_show_main =
1653
1651
            glade_xml_get_widget(gxml, "toggletoolbutton1");
1654
1652
        g_signal_connect(search1.togglebutton_show_main, "toggled",
1658
1656
        _setup_combobox(GTK_COMBO_BOX(search1.combo_list));
1659
1657
        g_signal_connect(search1.combo_list, "changed",
1660
1658
                         G_CALLBACK(on_comboboxentry2_changed), NULL);
1661
 
                         
 
1659
 
1662
1660
        search1.entry_list_name = glade_xml_get_widget(gxml, "entry4");
1663
1661
        g_signal_connect(search1.entry_list_name, "changed",
1664
1662
                         G_CALLBACK(list_name_changed), NULL);
1672
1670
                         G_CALLBACK(range_name_changed), NULL);
1673
1671
        search1.entry_range_text = glade_xml_get_widget(gxml, "entry3");
1674
1672
        g_signal_connect(search1.entry_range_text, "changed",
1675
 
                         G_CALLBACK(range_text_changed), NULL); 
 
1673
                         G_CALLBACK(range_text_changed), NULL);
1676
1674
 
1677
1675
        search1.progressbar =
1678
1676
            glade_xml_get_widget(gxml, "progressbar1");
1680
1678
 
1681
1679
        search1.listview_results = glade_xml_get_widget(gxml, "treeview9");
1682
1680
        _setup_listviews(search1.listview_results, (GCallback) _selection_finds_list_changed);
1683
 
        search1.listview_verses = glade_xml_get_widget(gxml, "treeview10");             
1684
 
        _setup_listviews2(search1.listview_verses, (GCallback) _finds_verselist_selection_changed); 
 
1681
        search1.listview_verses = glade_xml_get_widget(gxml, "treeview10");
 
1682
        _setup_listviews2(search1.listview_verses, (GCallback) _finds_verselist_selection_changed);
1685
1683
        _add_html_widget(glade_xml_get_widget(gxml, "vbox12"));
1686
1684
}
1687
1685