monotone

monotone Commit Details

Date:2008-05-17 17:08:01 (11 years 2 months ago)
Author:Tony Cooper
Branch:net.venge.monotone.contrib.mtn-browse
Commit:aa32eac77abe0d9e0278a34948628551f7430921
Parents: 6138acce2ac1364da497f48324e5c103a78926f7
Message:- First working version of the preferences dialog window.

- Loads of little bug fixes.
Changes:
MAdvancedFind.pm (14 diffs)
MAnnotate.pm (1 diff)
MChangeLog.pm (1 diff)
MComboAutoCompletion.pm (7 diffs)
MFindText.pm (13 diffs)
MHistory.pm (15 diffs)
MUtilities.pm (4 diffs)
MWindowManager.pm (1 diff)
Mmtn-browse (37 diffs)
Mmtn-browse.glade (7 diffs)

File differences

AdvancedFind.pm
112112
113113
114114
115
116
115
116
117117
118118
119119
......
176176
177177
178178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380179
381180
382181
......
481280
482281
483282
484
485
283
284
486285
487286
488287
......
533332
534333
535334
536
537
335
336
337
538338
539
339
540340
541341
542342
......
574374
575375
576376
577
578
377
378
579379
580380
581381
......
691491
692492
693493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
694684
695685
696686
......
759749
760750
761751
762
752
763753
764754
765
755
766756
767757
768758
769759
770
760
771761
772762
773763
......
805795
806796
807797
808
798
809799
810800
811801
......
849839
850840
851841
852
842
853843
854844
855
845
856846
857847
858848
859849
860
850
861851
862852
863853
......
893883
894884
895885
896
886
887
897888
898889
899890
......
955946
956947
957948
958
949
950
959951
960952
961
953
962954
963955
964956
......
997989
998990
999991
1000
992
1001993
1002994
1003995
......
10421034
10431035
10441036
1045
1037
10461038
1047
1039
1040
10481041
10491042
10501043
......
10551048
10561049
10571050
1058
1059
1051
1052
1053
10601054
10611055
10621056
$advanced_find->{revision_combo_details}->{value} =
$browser->{revision_combo_details}->{value};
$advanced_find->{tagged_tick}->
set_active($browser->{tagged_tick}->get_active());
$advanced_find->{tagged_checkbutton}->
set_active($browser->{tagged_checkbutton}->get_active());
&{$advanced_find->{update_handler}}($advanced_find, NEW_FIND);
#
##############################################################################
#
# Routine - get_advanced_find_window
#
# Description - Creates or prepares an existing advanced find dialog window
# for use.
#
# Data - $browser : The browser instance that started the
# advanced find.
# Return Value : A reference to the newly created or unused
# advanced find instance record.
#
##############################################################################
sub get_advanced_find_window($)
{
my $browser = $_[0];
my $instance;
my $window_type = "advanced_find_window";
my $wm = WindowManager->instance();
# Create a new advanced find dialog window if an unused one wasn't found,
# otherwise reuse an existing unused one.
if (! defined($instance = $wm->find_unused($window_type)))
{
my($renderer,
$tv_column);
$instance = {};
$instance->{glade} = Gtk2::GladeXML->new($glade_file, $window_type);
$instance->{mtn} = $browser->{mtn};
# Flag to stop recursive calling of callbacks.
$instance->{in_cb} = 0;
# Connect Glade registered signal handlers.
glade_signal_autoconnect($instance->{glade}, $instance);
# Link in the update handler for the advanced find window.
$instance->{update_handler} = \&update_advanced_find_state;
# Get the widgets that we are interested in.
$instance->{window} = $instance->{glade}->get_widget($window_type);
$instance->{appbar} = $instance->{glade}->get_widget("appbar");
$instance->{simple_query_radiobutton} =
$instance->{glade}->get_widget("simple_query_radiobutton");
$instance->{simple_frame} =
$instance->{glade}->get_widget("simple_frame");
$instance->{advanced_frame} =
$instance->{glade}->get_widget("advanced_frame");
$instance->{branch_combo} =
$instance->{glade}->get_widget("branch_comboboxentry");
$instance->{revision_combo} =
$instance->{glade}->get_widget("revision_comboboxentry");
$instance->{tagged_tick} =
$instance->{glade}->get_widget("tagged_checkbutton");
$instance->{search_term_combo} =
$instance->{glade}->get_widget("search_term_comboboxentry");
$instance->{term_combo} =
$instance->{glade}->get_widget("term_combobox");
$instance->{argument_entry} =
$instance->{glade}->get_widget("argument_entry");
$instance->{date_dateedit} =
$instance->{glade}->get_widget("date_dateedit");
$instance->{revisions_treeview} =
$instance->{glade}->get_widget("revisions_treeview");
$instance->{details_textview} =
$instance->{glade}->get_widget("details_textview");
$instance->{details_scrolledwindow} =
$instance->{glade}->get_widget("details_scrolledwindow");
$instance->{selected_branch_label} =
$instance->{glade}->get_widget("selected_branch_value_label");
$instance->{selected_revision_label} =
$instance->{glade}->get_widget("selected_revision_value_label");
$instance->{ok_button} = $instance->{glade}->get_widget("ok_button");
# Setup the advanced find window deletion handlers.
$instance->{window}->signal_connect
("delete_event",
sub { $_[2]->{done} = 1 unless ($_[2]->{in_cb}); return TRUE; },
$instance);
$instance->{glade}->get_widget("cancel_button")->signal_connect
("clicked",
sub { $_[1]->{done} = 1 unless ($_[1]->{in_cb}); },
$instance);
$instance->{glade}->get_widget("ok_button")->signal_connect
("clicked",
sub { $_[1]->{done} = $_[1]->{selected} = 1
unless ($_[1]->{in_cb}); },
$instance);
# Setup the comboboxentry key release signal handlers.
$instance->{branch_combo}->child()->
signal_connect("key_release_event",
\&combo_key_release_event_cb,
$instance);
$instance->{revision_combo}->child()->
signal_connect("key_release_event",
\&combo_key_release_event_cb,
$instance);
# Setup the comboboxes.
$instance->{branch_combo}->
set_model(Gtk2::ListStore->new("Glib::String"));
$instance->{branch_combo}->set_text_column(0);
$instance->{branch_combo}->set_wrap_width(2);
$instance->{revision_combo}->
set_model(Gtk2::ListStore->new("Glib::String"));
$instance->{revision_combo}->set_text_column(0);
$instance->{revision_combo}->set_wrap_width(2);
$instance->{search_term_combo}->
set_model(Gtk2::ListStore->new("Glib::String"));
$instance->{search_term_combo}->set_text_column(0);
$instance->{query_history} = [];
$instance->{term_combo}->set_active(0);
# Setup the revisions list browser.
$instance->{revisions_liststore} =
Gtk2::ListStore->new("Glib::String");
$instance->{revisions_treeview}->
set_model($instance->{revisions_liststore});
$tv_column = Gtk2::TreeViewColumn->new();
$tv_column->set_title("Matching Revision Ids");
$tv_column->set_sort_column_id(0);
$renderer = Gtk2::CellRendererText->new();
$tv_column->pack_start($renderer, FALSE);
$tv_column->set_attributes($renderer, "text" => 0);
$instance->{revisions_treeview}->append_column($tv_column);
$instance->{revisions_treeview}->set_search_column(0);
# Setup the revision details viewer.
$instance->{details_buffer} =
$instance->{details_textview}->get_buffer();
create_format_tags($instance->{details_textview}->get_buffer());
$instance->{details_textview}->modify_font($mono_font);
# Update the advanced find dialog's state.
$instance->{window}->set_transient_for($browser->{window});
$instance->{branch_combo_details}->{preset} = 0;
$instance->{revision_combo_details}->{preset} = 0;
&{$instance->{update_handler}}($instance, NEW_FIND);
local $instance->{in_cb} = 1;
$instance->{window}->show_all();
# Register the window for management.
$wm->manage($instance, $window_type);
$wm->add_busy_widgets($instance,
$instance->{details_textview}->
get_window("text"));
}
else
{
my($height,
$width);
$instance->{in_cb} = 0;
local $instance->{in_cb} = 1;
# Reset the advanced find dialog's state.
$instance->{mtn} = $browser->{mtn};
($width, $height) = $instance->{window}->get_default_size();
$instance->{window}->resize($width, $height);
$instance->{glade}->get_widget("revisions_hpaned")->set_position(300);
$instance->{window}->set_transient_for($browser->{window});
$instance->{branch_combo_details}->{preset} = 0;
$instance->{revision_combo_details}->{preset} = 0;
$instance->{appbar}->set_progress_percentage(0);
$instance->{appbar}->clear_stack();
&{$instance->{update_handler}}($instance, NEW_FIND);
$instance->{window}->show_all();
}
$instance->{done} = 0;
$instance->{selected} = 0;
return $instance;
}
#
##############################################################################
#
# Routine - simple_query_radiobutton_toggled_cb
#
# Description - Callback routine called when the user changes the advanced
# Simply get the currently selected selector and then insert it into the
# user's query string.
$selector = $advanced_find->{term_combo}->get_model()->get
($advanced_find->{term_combo}->get_active_iter(), 0);
$selector = $advanced_find->{term_combobox}->get_model()->get
($advanced_find->{term_combobox}->get_active_iter(), 0);
$arg = $advanced_find->{argument_entry}->get_text();
$time_val = strftime("%Y-%m-%dT%H:%M:%S",
localtime($advanced_find->{date_dateedit}->
$to_insert = "t:" . (($arg eq "") ? "<Tag Name>" : $arg);
}
$pos = $advanced_find->{search_term_combo}->child()->get_position();
$advanced_find->{search_term_combo}->child()->insert_text
$pos =
$advanced_find->{search_term_comboboxentry}->child()->get_position();
$advanced_find->{search_term_comboboxentry}->child()->insert_text
($to_insert, $pos);
$advanced_find->{search_term_combo}->child()->set_position
$advanced_find->{search_term_comboboxentry}->child()->set_position
($pos + length($to_insert));
}
# Simply get the currently selected term and then enable/disable the text
# entry and date entry widgets accordingly.
$selector = $advanced_find->{term_combo}->get_model()->get
($advanced_find->{term_combo}->get_active_iter(), 0);
$selector = $advanced_find->{term_combobox}->get_model()->get
($advanced_find->{term_combobox}->get_active_iter(), 0);
if ($selector =~ m/^Date .*$/o)
{
#
##############################################################################
#
# Routine - get_advanced_find_window
#
# Description - Creates or prepares an existing advanced find dialog window
# for use.
#
# Data - $browser : The browser instance that started the
# advanced find.
# Return Value : A reference to the newly created or unused
# advanced find instance record.
#
##############################################################################
sub get_advanced_find_window($)
{
my $browser = $_[0];
my $instance;
my $window_type = "advanced_find_window";
my $wm = WindowManager->instance();
# Create a new advanced find dialog window if an unused one wasn't found,
# otherwise reuse an existing unused one.
if (! defined($instance = $wm->find_unused($window_type)))
{
my($renderer,
$tv_column);
$instance = {};
$instance->{glade} = Gtk2::GladeXML->new($glade_file, $window_type);
$instance->{mtn} = $browser->{mtn};
# Flag to stop recursive calling of callbacks.
$instance->{in_cb} = 0;
# Connect Glade registered signal handlers.
glade_signal_autoconnect($instance->{glade}, $instance);
# Link in the update handler for the advanced find window.
$instance->{update_handler} = \&update_advanced_find_state;
# Get the widgets that we are interested in.
$instance->{window} = $instance->{glade}->get_widget($window_type);
foreach my $widget ("appbar",
"simple_query_radiobutton",
"simple_frame",
"advanced_frame",
"branch_comboboxentry",
"revision_comboboxentry",
"tagged_checkbutton",
"search_term_comboboxentry",
"term_combobox",
"argument_entry",
"date_dateedit",
"revisions_hpaned",
"revisions_treeview",
"details_textview",
"details_scrolledwindow",
"selected_branch_value_label",
"selected_revision_value_label",
"ok_button")
{
$instance->{$widget} = $instance->{glade}->get_widget($widget);
}
# Setup the advanced find window deletion handlers.
$instance->{window}->signal_connect
("delete_event",
sub { $_[2]->{done} = 1 unless ($_[2]->{in_cb}); return TRUE; },
$instance);
$instance->{glade}->get_widget("cancel_button")->signal_connect
("clicked",
sub { $_[1]->{done} = 1 unless ($_[1]->{in_cb}); },
$instance);
$instance->{glade}->get_widget("ok_button")->signal_connect
("clicked",
sub { $_[1]->{done} = $_[1]->{selected} = 1
unless ($_[1]->{in_cb}); },
$instance);
# Setup the comboboxentry key release signal handlers.
$instance->{branch_comboboxentry}->child()->
signal_connect("key_release_event",
\&comboboxentry_key_release_event_cb,
$instance);
$instance->{revision_comboboxentry}->child()->
signal_connect("key_release_event",
\&comboboxentry_key_release_event_cb,
$instance);
# Setup the comboboxes.
$instance->{branch_comboboxentry}->
set_model(Gtk2::ListStore->new("Glib::String"));
$instance->{branch_comboboxentry}->set_text_column(0);
$instance->{branch_comboboxentry}->set_wrap_width(2);
$instance->{revision_comboboxentry}->
set_model(Gtk2::ListStore->new("Glib::String"));
$instance->{revision_comboboxentry}->set_text_column(0);
$instance->{revision_comboboxentry}->set_wrap_width(2);
$instance->{search_term_comboboxentry}->
set_model(Gtk2::ListStore->new("Glib::String"));
$instance->{search_term_comboboxentry}->set_text_column(0);
$instance->{query_history} = [];
$instance->{term_combobox}->set_active(0);
# Setup the revisions list browser.
$instance->{revisions_liststore} =
Gtk2::ListStore->new("Glib::String");
$instance->{revisions_treeview}->
set_model($instance->{revisions_liststore});
$tv_column = Gtk2::TreeViewColumn->new();
$tv_column->set_title("Matching Revision Ids");
$tv_column->set_sort_column_id(0);
$renderer = Gtk2::CellRendererText->new();
$tv_column->pack_start($renderer, FALSE);
$tv_column->set_attributes($renderer, "text" => 0);
$instance->{revisions_treeview}->append_column($tv_column);
$instance->{revisions_treeview}->set_search_column(0);
# Setup the revision details viewer.
$instance->{details_buffer} =
$instance->{details_textview}->get_buffer();
create_format_tags($instance->{details_textview}->get_buffer());
$instance->{details_textview}->modify_font($mono_font);
# Update the advanced find dialog's state.
$instance->{window}->set_transient_for($browser->{window});
$instance->{branch_combo_details}->{preset} = 0;
$instance->{revision_combo_details}->{preset} = 0;
&{$instance->{update_handler}}($instance, NEW_FIND);
local $instance->{in_cb} = 1;
$instance->{window}->show_all();
# Register the window for management.
$wm->manage($instance, $window_type);
$wm->add_busy_widgets($instance,
$instance->{details_textview}->
get_window("text"));
}
else
{
my($height,
$width);
$instance->{in_cb} = 0;
local $instance->{in_cb} = 1;
# Reset the advanced find dialog's state.
$instance->{mtn} = $browser->{mtn};
($width, $height) = $instance->{window}->get_default_size();
$instance->{window}->resize($width, $height);
$instance->{revisions_hpaned}->set_position(300);
$instance->{window}->set_transient_for($browser->{window});
$instance->{branch_combo_details}->{preset} = 0;
$instance->{revision_combo_details}->{preset} = 0;
$instance->{appbar}->set_progress_percentage(0);
$instance->{appbar}->clear_stack();
&{$instance->{update_handler}}($instance, NEW_FIND);
$instance->{window}->show_all();
}
$instance->{done} = 0;
$instance->{selected} = 0;
return $instance;
}
#
##############################################################################
#
# Routine - update_advanced_find_state
#
# Description - Update the display of the specified advanced find dialog
$advanced_find->{appbar}->set_status("Populating branch list");
gtk2_update();
my $counter = 1;
$advanced_find->{branch_combo}->get_model()->clear();
$advanced_find->{branch_comboboxentry}->get_model()->clear();
foreach my $branch (@branch_list)
{
$advanced_find->{branch_combo}->append_text($branch);
$advanced_find->{branch_comboboxentry}->append_text($branch);
$advanced_find->{appbar}->set_progress_percentage
($counter ++ / scalar(@branch_list));
gtk2_update();
}
$advanced_find->{branch_combo}->child()->
$advanced_find->{branch_comboboxentry}->child()->
set_text($advanced_find->{branch_combo_details}->{value});
$advanced_find->{appbar}->set_progress_percentage(0);
$advanced_find->{appbar}->set_status("");
# Get either a list of tags or revision ids depending upon what the
# user has chosen.
if ($advanced_find->{tagged_tick}->get_active())
if ($advanced_find->{tagged_checkbutton}->get_active())
{
my(%dup_list,
@list);
$advanced_find->{appbar}->set_status("Populating revision list");
gtk2_update();
my $counter = 1;
$advanced_find->{revision_combo}->get_model()->clear();
$advanced_find->{revision_comboboxentry}->get_model()->clear();
foreach my $revision (@revision_list)
{
$advanced_find->{revision_combo}->append_text($revision);
$advanced_find->{revision_comboboxentry}->append_text($revision);
$advanced_find->{appbar}->set_progress_percentage
($counter ++ / scalar(@revision_list));
gtk2_update();
}
$advanced_find->{revision_combo}->child()->
$advanced_find->{revision_comboboxentry}->child()->
set_text($advanced_find->{revision_combo_details}->{value});
$advanced_find->{appbar}->set_progress_percentage(0);
$advanced_find->{appbar}->set_status("");
{
my($err,
$query);
$query = $advanced_find->{search_term_combo}->child()->get_text();
$query = $advanced_find->{search_term_comboboxentry}->child()->
get_text();
# Remember the user can type in any old rubbish with advanced
# queries! So protect ourselves.
{
pop(@{$advanced_find->{query_history}});
}
$advanced_find->{search_term_combo}->get_model()->clear();
$advanced_find->{search_term_comboboxentry}->get_model()->
clear();
foreach my $entry (@{$advanced_find->{query_history}})
{
$advanced_find->{search_term_combo}->
$advanced_find->{search_term_comboboxentry}->
append_text($entry);
}
}
if ($advanced_find->{revisions_treeview_details}->{value} ne "")
{
if ($advanced_find->{selected_revision_label}->get_text()
if ($advanced_find->{selected_revision_value_label}->get_text()
ne $advanced_find->{revisions_treeview_details}->{value})
{
my($branch,
last;
}
}
set_label_value($advanced_find->{selected_branch_label},
set_label_value($advanced_find->{selected_branch_value_label},
$branch);
set_label_value($advanced_find->{selected_revision_label},
set_label_value($advanced_find->
{selected_revision_value_label},
$advanced_find->{revisions_treeview_details}->
{value});
{
$advanced_find->{ok_button}->set_sensitive(FALSE);
$advanced_find->{details_buffer}->set_text("");
set_label_value($advanced_find->{selected_branch_label}, "");
set_label_value($advanced_find->{selected_revision_label}, "");
set_label_value($advanced_find->{selected_branch_value_label}, "");
set_label_value($advanced_find->{selected_revision_value_label},
"");
}
}
Annotate.pm
229229
230230
231231
232
233
234
235
236
232
233
234
235
236
237
237238
238239
239240
# Get the widgets that we are interested in.
$instance->{window} = $instance->{glade}->get_widget($window_type);
$instance->{appbar} = $instance->{glade}->get_widget("appbar");
$instance->{annotation_textview} =
$instance->{glade}->get_widget("annotation_textview");
$instance->{annotation_scrolledwindow} =
$instance->{glade}->get_widget("annotation_scrolledwindow");
foreach my $widget ("appbar",
"annotation_textview",
"annotation_scrolledwindow")
{
$instance->{$widget} = $instance->{glade}->get_widget($widget);
}
# Setup the annotation window deletion handler.
ChangeLog.pm
146146
147147
148148
149
150
151
152
149
150
151
152
153
153154
154155
155156
# Get the widgets that we are interested in.
$instance->{window} = $instance->{glade}->get_widget($window_type);
$instance->{changelog_textview} =
$instance->{glade}->get_widget("changelog_textview");
$instance->{changelog_scrolledwindow} =
$instance->{glade}->get_widget("changelog_scrolledwindow");
foreach my $widget ("changelog_textview",
"changelog_scrolledwindow")
{
$instance->{$widget} = $instance->{glade}->get_widget($widget);
}
# Setup the changelog window deletion handler.
ComboAutoCompletion.pm
55
66
77
8
8
99
1010
1111
......
4949
5050
5151
52
53
52
53
5454
5555
5656
57
57
5858
5959
6060
......
6868
6969
7070
71
71
7272
7373
7474
......
8181
8282
8383
84
84
8585
8686
8787
8888
89
89
9090
9191
9292
9393
94
94
9595
9696
9797
......
125125
126126
127127
128
128
129129
130130
131131
......
145145
146146
147147
148
148
149149
150150
151151
......
165165
166166
167167
168
168
169169
170
170
171171
172172
173173
174174
175
175
176176
177
177
178178
179179
180180
181181
182
182
183183
184
184
185185
186186
187187
# Description - The combo box auto-completion utilities module for the
# mtn-browse application. This module contains assorted
# routines that implement auto-completion for all branch and
# revision combo boxes.
# revision comboboxentry boxes.
#
# Author - A.E.Cooper.
#
# Public routines.
sub combo_changed_cb($$);
sub combo_key_release_event_cb($$$);
sub comboboxentry_changed_cb($$);
sub comboboxentry_key_release_event_cb($$$);
#
##############################################################################
#
# Routine - combo_changed_cb
# Routine - comboboxentry_changed_cb
#
# Description - Callback routine called when the user changes the value of
# a branch or revision comboboxentry by selecting an entry
sub combo_changed_cb($$)
sub comboboxentry_changed_cb($$)
{
my($widget, $instance) = @_;
$item,
$value);
if ($widget == $instance->{branch_combo})
if ($widget == $instance->{branch_comboboxentry})
{
$change_state = BRANCH_CHANGED;
$combo_details = $instance->{branch_combo_details};
}
elsif ($widget == $instance->{revision_combo})
elsif ($widget == $instance->{revision_comboboxentry})
{
$change_state = REVISION_CHANGED;
$combo_details = $instance->{revision_combo_details};
}
elsif ($widget == $instance->{directory_combo})
elsif ($widget == $instance->{directory_comboboxentry})
{
$change_state = DIRECTORY_CHANGED;
$combo_details = $instance->{directory_combo_details};
#
##############################################################################
#
# Routine - combo_key_release_event_cb
# Routine - comboboxentry_key_release_event_cb
#
# Description - Callback routine called when the user changes the value of
# a branch or revision comboboxentry by entering a character
sub combo_key_release_event_cb($$$)
sub comboboxentry_key_release_event_cb($$$)
{
my($widget, $event, $instance) = @_;
$old_value,
$value);
if ($widget == $instance->{branch_combo}->child())
if ($widget == $instance->{branch_comboboxentry}->child())
{
$combo = $instance->{branch_combo};
$combo = $instance->{branch_comboboxentry};
$change_state = BRANCH_CHANGED;
$combo_details = $instance->{branch_combo_details};
$name = "branch";
}
elsif ($widget == $instance->{revision_combo}->child())
elsif ($widget == $instance->{revision_comboboxentry}->child())
{
$combo = $instance->{revision_combo};
$combo = $instance->{revision_comboboxentry};
$change_state = REVISION_CHANGED;
$combo_details = $instance->{revision_combo_details};
$name = "revision";
}
elsif ($widget == $instance->{directory_combo}->child())
elsif ($widget == $instance->{directory_comboboxentry}->child())
{
$combo = $instance->{directory_combo};
$combo = $instance->{directory_comboboxentry};
$change_state = DIRECTORY_CHANGED;
$combo_details = $instance->{directory_combo_details};
$name = "directory";
FindText.pm
6060
6161
6262
63
63
6464
6565
6666
......
117117
118118
119119
120
120
121121
122122
123123
......
146146
147147
148148
149
149
150150
151151
152152
......
157157
158158
159159
160
160
161
161162
162163
163164
......
198199
199200
200201
201
202
202203
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219204
220205
221206
......
233218
234219
235220
236
221
237222
238223
239
224
240225
241226
242227
243228
244229
245
246
230
231
247232
248233
249234
......
398383
399384
400385
401
386
402387
403388
404389
......
412397
413398
414399
415
400
416401
417402
418403
......
421406
422407
423408
424
409
425410
426411
427412
......
462447
463448
464449
465
466
467
450
451
452
453
454
468455
469456
470457
......
499486
500487
501488
502
503
504
505
506
507
508
509
510
489
490
491
492
493
494
495
496
511497
512498
513499
......
533519
534520
535521
536
537
522
523
524
525
538526
539527
540528
541
529
542530
543
531
544532
545533
546534
......
560548
561549
562550
563
551
564552
565553
566554
# Private routines.
sub find_combo_changed_cb($$);
sub find_comboboxentry_changed_cb($$);
sub find_current_window($);
sub get_find_text_window($$);
#
# Simply reset the search context for the found find text window.
$instance->{match_offset_start} = $instance->{match_offset_end} = -1
if (defined(find_current_window($text_view)));
if (defined($instance = find_current_window($text_view)));
}
#
# Simply disable/enable the found find text window.
if (defined(find_current_window($text_view)))
if (defined($instance = find_current_window($text_view)))
{
if ($disable)
{
{
$instance->{main_vbox}->set_sensitive(TRUE);
$instance->{find_button}->set_sensitive
((length($instance->{find_combo}->child()->get_text()) > 0) ?
((length($instance->{find_comboboxentry}->child()->get_text())
> 0) ?
TRUE : FALSE);
}
}
$search_term,
$start_iter);
$search_term = $instance->{find_combo}->child()->get_text();
$search_term = $instance->{find_comboboxentry}->child()->get_text();
# Just check that the user actually entered something.
if (length($search_term) == 0)
{
my $dialog;
$dialog = Gtk2::MessageDialog->new
($instance->{window},
["modal"],
"info",
"close",
"Enter some text to\nsearch for first.");
$dialog->run();
$dialog->destroy();
return;
}
# Store the search term in the history.
$found = 0;
{
pop(@{$instance->{search_history}});
}
$instance->{find_combo}->get_model()->clear();
$instance->{find_comboboxentry}->get_model()->clear();
foreach my $entry (@{$instance->{search_history}})
{
$instance->{find_combo}->append_text($entry);
$instance->{find_comboboxentry}->append_text($entry);
}
}
# Get the search parameters.
$case_sensitive = $instance->{case_sensitive_tick}->get_active();
$forward = ! $instance->{search_backwards_tick}->get_active();
$case_sensitive = $instance->{case_sensitive_checkbutton}->get_active();
$forward = ! $instance->{search_backwards_checkbutton}->get_active();
# Work out where to start searching from.
#
##############################################################################
#
# Routine - find_combo_changed_cb
# Routine - find_comboboxentry_changed_cb
#
# Description - Callback routine called when the user changes the value of
# the find text comboboxentry by selecting an entry from its
sub find_combo_changed_cb($$)
sub find_comboboxentry_changed_cb($$)
{
my($widget, $instance) = @_;
local $instance->{in_cb} = 1;
$instance->{find_button}->set_sensitive
((length($instance->{find_combo}->child()->get_text()) > 0) ?
((length($instance->{find_comboboxentry}->child()->get_text()) > 0) ?
TRUE : FALSE);
}
#
# Description - Creates or prepares an existing find text window for use.
#
# Data - $parent : The parent window widget for the find text
# window.
# $text_view : The textview widget that is to be searched.
# Data - $parent : The parent window widget for the find text
# window.
# $text_view : The textview widget that is to be searched.
# Return Value : A reference to the newly created or unused
# find text instance record.
#
##############################################################################
# Get the widgets that we are interested in.
$instance->{window} = $instance->{glade}->get_widget($window_type);
$instance->{main_vbox} = $instance->{glade}->get_widget("main_vbox");
$instance->{find_combo} =
$instance->{glade}->get_widget("find_comboboxentry");
$instance->{case_sensitive_tick} =
$instance->{glade}->get_widget("case_sensitive_checkbutton");
$instance->{search_backwards_tick} =
$instance->{glade}->get_widget("search_backwards_checkbutton");
$instance->{find_button} =
$instance->{glade}->get_widget("find_button");
foreach my $widget ("main_vbox",
"find_comboboxentry",
"case_sensitive_checkbutton",
"search_backwards_checkbutton",
"find_button")
{
$instance->{$widget} = $instance->{glade}->get_widget($widget);
}
# Setup the find text window deletion handlers.
# Setup the comboboxentry changed signal handler.
$instance->{find_combo}->child()->
signal_connect("changed", \&find_combo_changed_cb, $instance);
$instance->{find_comboboxentry}->child()->
signal_connect("changed",
\&find_comboboxentry_changed_cb,
$instance);
# Setup the combobox.
$instance->{find_combo}->
$instance->{find_comboboxentry}->
set_model(Gtk2::ListStore->new("Glib::String"));
$instance->{find_combo}->set_text_column(0);
$instance->{find_comboboxentry}->set_text_column(0);
$instance->{search_history} = [];
}
else
# into the comboboxentry widget.
$instance->{find_button}->set_sensitive
((length($instance->{find_combo}->child()->get_text()) > 0) ?
((length($instance->{find_comboboxentry}->child()->get_text()) > 0) ?
TRUE : FALSE);
# Store the associated textview and text buffer.
History.pm
137137
138138
139139
140
140
141141
142142
143143
......
252252
253253
254254
255
255
256256
257257
258258
......
497497
498498
499499
500
500
501
501502
502503
503504
504505
505
506
506507
507508
508509
509510
510511
511
512
513
512514
513515
514516
515517
516
518
517519
518520
519521
......
880882
881883
882884
883
885
884886
885887
886
887
888
889
888890
889891
890892
......
935937
936938
937939
938
939
940
941
942
940943
941944
942945
......
972975
973976
974977
975
978
976979
977980
978981
......
10281031
10291032
10301033
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
10481046
10491047
10501048
......
10611059
10621060
10631061
1064
1065
1066
1062
10671063
10681064
10691065
......
10891085
10901086
10911087
1092
1093
1094
1088
1089
1090
10951091
10961092
10971093
......
11411137
11421138
11431139
1144
1140
1141
11451142
11461143
11471144
......
11861183
11871184
11881185
1189
1186
1187
11901188
11911189
11921190
......
12371235
12381236
12391237
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1238
1239
1240
1241
1242
1243
1244
1245
1246
12531247
12541248
12551249
......
12601254
12611255
12621256
1263
1257
12641258
12651259
12661260
......
12691263
12701264
12711265
1272
1266
12731267
12741268
1275
1276
1277
1278
1269
1270
1271
1272
1273
12791274
12801275
12811276
......
12991294
13001295
13011296
1302
1297
13031298
13041299
13051300
# Display the file's history.
$instance->{appbar}->set_progress_percentage(0);
$instance->{appbar}->set_status("Displaying file history");
$instance->{appbar}->set_status("Displaying revision history");
gtk2_update();
$counter = 1;
$instance->{stop} = 0;
}
$instance->{stop_button}->set_sensitive(FALSE);
set_label_value($instance->{numbers_label}, $counter)
set_label_value($instance->{numbers_value_label}, $counter)
if ($instance->{stop});
# Make sure we are at the top.
if ($details->{button_type} eq "1")
{
$instance->{first_revision_id} = $revision_id;
set_label_value($instance->{revision_id_1_label}, $revision_id);
set_label_value($instance->{revision_id_1_value_label},
$revision_id);
if ($instance->{first_revision_id}
eq $instance->{second_revision_id})
{
$instance->{second_revision_id} = "";
set_label_value($instance->{revision_id_2_label}, "");
set_label_value($instance->{revision_id_2_value_label}, "");
}
}
else
{
$instance->{second_revision_id} = $revision_id;
set_label_value($instance->{revision_id_2_label}, $revision_id);
set_label_value($instance->{revision_id_2_value_label},
$revision_id);
if ($instance->{second_revision_id}
eq $instance->{first_revision_id})
{
$instance->{first_revision_id} = "";
set_label_value($instance->{revision_id_1_label}, "");
set_label_value($instance->{revision_id_1_value_label}, "");
}
}
if ($instance->{first_revision_id} ne ""
gtk2_update();
@files = sort({ $a->{file_name} cmp $b->{file_name} } @files);
$i = 1;
$instance->{file_combo}->get_model()->clear();
$instance->{file_comparison_combobox}->get_model()->clear();
foreach my $file (@files)
{
$instance->{file_combo}->get_model()->set
($instance->{file_combo}->get_model()->append(),
$instance->{file_comparison_combobox}->get_model()->set
($instance->{file_comparison_combobox}->get_model()->append(),
CLS_NAME_COLUMN, $file->{file_name},
CLS_LINE_NR_COLUMN, $file->{line_nr});
$instance->{appbar}->set_progress_percentage($i ++ / scalar(@files));
# Get the line number related to the selected file and then jump to it.
$line_nr = $instance->{file_combo}->get_model()->get
($instance->{file_combo}->get_active_iter(), CLS_LINE_NR_COLUMN);
$line_nr = $instance->{file_comparison_combobox}->get_model()->get
($instance->{file_comparison_combobox}->get_active_iter(),
CLS_LINE_NR_COLUMN);
$iter = $instance->{comparison_buffer}->get_iter_at_line($line_nr);
$instance->{comparison_textview}->scroll_to_iter($iter, 0, TRUE, 0, 0);
# Work out what revision id to use.
if ($widget == $instance->{red_revision_button})
if ($widget == $instance->{red_revision_change_log_button})
{
$revision_id = $instance->{red_revision_id};
$colour = "red";
# Get the widgets that we are interested in.
$instance->{window} = $instance->{glade}->get_widget($window_type);
$instance->{appbar} = $instance->{glade}->get_widget("appbar");
$instance->{history_label} =
$instance->{glade}->get_widget("history_label");
$instance->{history_textview} =
$instance->{glade}->get_widget("history_textview");
$instance->{history_scrolledwindow} =
$instance->{glade}->get_widget("history_scrolledwindow");
$instance->{stop_button} =
$instance->{glade}->get_widget("stop_button");
$instance->{compare_button} =
$instance->{glade}->get_widget("compare_button");
$instance->{numbers_label} =
$instance->{glade}->get_widget("numbers_value_label");
$instance->{revision_id_1_label} =
$instance->{glade}->get_widget("revision_id_1_value_label");
$instance->{revision_id_2_label} =
$instance->{glade}->get_widget("revision_id_2_value_label");
foreach my $widget ("appbar",
"history_label",
"history_textview",
"history_scrolledwindow",
"stop_button",
"compare_button",
"numbers_value_label",
"revision_id_1_value_label",
"revision_id_2_value_label")
{
$instance->{$widget} = $instance->{glade}->get_widget($widget);
}
# Setup the file history callbacks.
},
$instance);
$instance->{stop_button}->signal_connect
("clicked",
sub { $_[1]->{stop} = 1 unless ($_[1]->{in_cb}); },
$instance);
("clicked", sub { $_[1]->{stop} = 1; }, $instance);
# Setup the file history viewer.
$instance->{window}->resize($width, $height);
$instance->{stop_button}->set_sensitive(FALSE);
$instance->{compare_button}->set_sensitive(FALSE);
set_label_value($instance->{numbers_label}, "");
set_label_value($instance->{revision_id_1_label}, "");
set_label_value($instance->{revision_id_2_label}, "");
set_label_value($instance->{numbers_value_label}, "");
set_label_value($instance->{revision_id_1_value_label}, "");
set_label_value($instance->{revision_id_2_value_label}, "");
$instance->{appbar}->set_progress_percentage(0);
$instance->{appbar}->clear_stack();
}
if (! exists($hash->{$revision}))
{
$hash->{$revision} = 1;
set_label_value($instance->{numbers_label}, scalar(keys(%$hash)));
set_label_value($instance->{numbers_value_label},
scalar(keys(%$hash)));
gtk2_update();
@parents = ();
$instance->{mtn}->parents(\@parents, $revision);
if (! exists($hash->{$parent}))
{
$hash->{$parent} = 1;
set_label_value($instance->{numbers_label}, scalar(keys(%$hash)));
set_label_value($instance->{numbers_value_label},
scalar(keys(%$hash)));
gtk2_update();
get_revision_history_helper($instance, $hash, $parent);
}
# Get the widgets that we are interested in.
$instance->{window} = $instance->{glade}->get_widget($window_type);
$instance->{appbar} = $instance->{glade}->get_widget("appbar");
$instance->{comparison_label} =
$instance->{glade}->get_widget("comparison_label");
$instance->{file_combo} =
$instance->{glade}->get_widget("file_comparison_combobox");
$instance->{comparison_textview} =
$instance->{glade}->get_widget("comparison_textview");
$instance->{comparison_scrolledwindow} =
$instance->{glade}->get_widget("comparison_scrolledwindow");
$instance->{red_revision_button} =
$instance->{glade}->get_widget("red_revision_change_log_button");
$instance->{green_revision_button} =
$instance->{glade}->get_widget("green_revision_change_log_button");
foreach my $widget ("appbar",
"comparison_label",
"file_comparison_combobox",
"comparison_textview",
"comparison_scrolledwindow",
"red_revision_change_log_button")
{
$instance->{$widget} = $instance->{glade}->get_widget($widget);
}
# Setup the file history callbacks.
return TRUE if ($instance->{in_cb});
local $instance->{in_cb} = 1;
$widget->hide();
$instance->{file_combo}->get_model()->clear();
$instance->{file_comparison_combobox}->get_model()->clear();
$instance->{comparison_buffer}->set_text("");
$instance->{mtn} = undef;
return TRUE;
# Setup the file combobox.
$instance->{file_combo}->
$instance->{file_comparison_combobox}->
set_model(Gtk2::ListStore->new("Glib::String", "Glib::Int"));
$renderer = Gtk2::CellRendererText->new();
$instance->{file_combo}->pack_start($renderer, TRUE);
$instance->{file_combo}->add_attribute($renderer, "text" => 0);
$instance->{file_combo}->get_model()->set
($instance->{file_combo}->get_model()->append(),
$instance->{file_comparison_combobox}->pack_start($renderer, TRUE);
$instance->{file_comparison_combobox}->add_attribute($renderer,
"text" => 0);
$instance->{file_comparison_combobox}->get_model()->set
($instance->{file_comparison_combobox}->get_model()->append(),
CLS_NAME_COLUMN, " ",
CLS_LINE_NR_COLUMN, 0);
local $instance->{in_cb} = 1;
($width, $height) = $instance->{window}->get_default_size();
$instance->{window}->resize($width, $height);
$instance->{file_combo}->get_model()->clear();
$instance->{file_comparison_combobox}->get_model()->clear();
$instance->{appbar}->set_progress_percentage(0);
$instance->{appbar}->clear_stack();
}
Utilities.pm
4848
4949
5050
51
5152
5253
5354
......
533534
534535
535536
536
537
537538
538539
539540
......
622623
623624
624625
625
626
626627
627628
628629
......
711712
712713
713714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
714741
715742
716743
# Public routines.
sub colour_to_string($);
sub create_format_tags($);
sub generate_revision_report($$$$;$);
sub generate_tmp_path($);
@$revision_ids=();
return unless ($instance->{revision_combo_details}->{complete});
if ($instance->{tagged_tick}->get_active())
if ($instance->{tagged_checkbutton}->get_active())
{
$instance->{mtn}->
select($revision_ids,
sub create_format_tags($)
{
my($text_buffer) = @_;
my $text_buffer = $_[0];
# Normal Black text, assorted styles, on a white background.
#
##############################################################################
#
# Routine - colour_to_string
#
# Description - Returns a string representing the specified
# Gtk2::Gdk::Color value.
#
# Data - $colour : A Gtk2::Gdk::Color object.
# Return Value : A string containing the colour value.
#
##############################################################################
sub colour_to_string($)
{
my $colour = $_[0];
return sprintf("#%02X%02X%02X",
($colour->red() >> 8) & 0xff,
($colour->green() >> 8) & 0xff,
($colour->blue() >> 8) & 0xff);
}
#
##############################################################################
#
# Routine - set_label_value
#
# Description - Set the text for the given label and the tooltip for the
WindowManager.pm
5555
5656
5757
58
5859
5960
6061
# Standard Perl and CPAN modules.
use Carp;
use Gtk2;
# ***** GLOBAL DATA DECLARATIONS *****
mtn-browse
4545
4646
4747
48
48
49
4950
5051
5152
......
5455
5556
5657
58
5759
60
5861
5962
6063
......
7073
7174
7275
73
74
75
76
7776
7877
7978
......
8887
8988
9089
90
9191
9292
9393
......
105105
106106
107107
108
108
109109
110110
111111
......
170170
171171
172172
173
174
175
176
177
178
179
180
181173
182174
183175
......
200192
201193
202194
203
204
195
196
205197
206198
207199
208200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
209219
210220
211221
......
233243
234244
235245
236
246
237247
238248
239249
......
559569
560570
561571
562
563
564
565
566
567
568
572
569573
570574
571575
......
692696
693697
694698
695
699
696700
697701
698702
......
789793
790794
791795
792
796
797
793798
794799
795800
......
805810
806811
807812
808
813
814
809815
810816
811817
......
856862
857863
858864
859
865
860866
861867
862
868
863869
864870
865871
866
872
867873
868874
869875
......
12641270
12651271
12661272
1267
1273
12681274
12691275
12701276
......
13981404
13991405
14001406
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
14391431
14401432
14411433
......
14541446
14551447
14561448
1457
1449
14581450
1459
1451
14601452
1461
1453
14621454
1463
1455
14641456
1465
1457
14661458
1467
1459
14681460
14691461
14701462
14711463
1472
1464
14731465
1474
1475
1476
1466
1467
1468
14771469
1478
1479
1480
1470
1471
1472
14811473
1482
1483
1474
1475
14841476
14851477
14861478
......
14891481
14901482
14911483
1492
1484
14931485
14941486
14951487
......
15031495
15041496
15051497
1506
1498
15071499
15081500
15091501
......
15141506
15151507
15161508
1517
1509
15181510
15191511
15201512
......
15241516
15251517
15261518
1527
1519
15281520
15291521
15301522
......
15341526
15351527
15361528
1537
1529
15381530
1539
1531
1532
15401533
15411534
15421535
......
15541547
15551548
15561549
1557
1558
1550
15591551
15601552
15611553
......
15891581
15901582
15911583
1592
1593
1584
1585
15941586
15951587
15961588
......
16371629
16381630
16391631
1640
1641
1632
1633
16421634
16431635
16441636
......
16851677
16861678
16871679
1688
1680
16891681
16901682
16911683
......
16991691
17001692
17011693
1702
1694
17031695
17041696
17051697
17061698
1707
1699
17081700
17091701
17101702
17111703
17121704
17131705
1714
1715
1706
1707
17161708
17171709
17181710
......
17511743
17521744
17531745
1754
1746
17551747
17561748
1757
1749
17581750
17591751
17601752
17611753
1762
1754
17631755
17641756
17651757
......
17981790
17991791
18001792
1801
1793
18021794
18031795
18041796
......
18391831
18401832
18411833
1842
1834
18431835
18441836
1845
1837
18461838
18471839
18481840
18491841
1850
1842
18511843
18521844
18531845
......
18761868
18771869
18781870
1879
1880
1881
1871
1872
1873
18821874
18831875
18841876
......
19121904
19131905
19141906
1915
1907
19161908
19171909
19181910
......
19331925
19341926
19351927
1936
1928
19371929
1938
1939
1930
1931
1932
19401933
19411934
19421935
......
19601953
19611954
19621955
1963
1956
19641957
19651958
1966
1959
19671960
19681961
19691962
19701963
1971
1964
19721965
19731966
19741967
......
21022095
21032096
21042097
2105
2106
2098
2099
21072100
21082101
21092102
......
21272120
21282121
21292122
2130
2123
21312124
21322125
21332126
......
23222315
23232316
23242317
2325
2318
23262319
2327
2320
23282321
2329
2322
23302323
2331
2324
23322325
23332326
23342327
......
23432336
23442337
23452338
2346
2347
2348
2349
2339
2340
2341
2342
23502343
23512344
23522345
BEGIN
{
use constant LIB_PATH => "/home/aecoope/perl";
use constant LIB_PATH => "/home/aecoope/perl";
use constant MIME_GLOB_FILE => "/usr/share/mime/globs";
}
use lib LIB_PATH;
use strict;
# Standard Perl and CPAN modules.
use Data::Dumper;
use File::Basename;
use File::Spec;
use File::Temp;
use Glib qw(FALSE TRUE);
use Gnome2;
use Symbol qw(gensym);
use Text::Tabs;
# Temporary debug stuff.
use Data::Dumper;
# Monotone AutomateStdio module.
use Monotone::AutomateStdio;
use Completion;
use FindText;
use History;
use Preferences;
use Utilities;
use WindowManager;
my $window_type = "main_window";
# the large logo used for the about dialog window.
# The large logo used for the about dialog window.
my $large_logo;
$mono_font = Gtk2::Pango::FontDescription->from_string("monospace 10");
$line_image = Gtk2::Gdk::Pixbuf->new_from_file(LIB_PATH . "/UI/line.png");
# my $mtype = Gnome2::VFS::Mime::Type->new("image/jpeg");
# print $mtype->get_default_application();
# $mtype->get_default_application()->launch("file:///home/aecoope/me.jpg");
# print Gnome2::VFS->get_mime_type("file:///home/aecoope/test");
# print Gnome2::VFS->get_mime_type("file:///home/aecoope/perl/mtn-browse.svg");
# Create the temporary working directory.
eval
}
# Attempt to create an mtn handle, if it fails then assume that we are not
# inside a workspace. However if it does work then pre-load the browser
# with the relevant branch and revision.
# inside a workspace. However if it does work then move to the workspace's
# root and then pre-load the browser with the relevant branch and revision.
eval
{
$mtn = Monotone::AutomateStdio->new();
$mtn = undef;
while (! -d "_MTN")
{
if (! chdir(".."))
{
my $dialog = Gtk2::MessageDialog->new
(undef,
["modal"],
"error",
"close",
"Started in a workspace but I cannot\n"
. "find _MTN, I am going to exit.");
$dialog->run();
$dialog->destroy();
exit(1);
}
}
$mtn = Monotone::AutomateStdio->new();
$mtn->get_option(\$branch, "branch");
$mtn->get_base_revision_id(\$revision_id);
};
$browser->{branch_combo_details}->{value} = $branch;
$browser->{revision_combo_details}->{preset} = 1;
$browser->{revision_combo_details}->{value} = $revision_id;
$browser->{tagged_tick}->set_active(FALSE);
$browser->{tagged_checkbutton}->set_active(FALSE);
&{$browser->{update_handler}}($browser, ALL_CHANGED);
return FALSE;
return if ($browser->{in_cb});
local $browser->{in_cb} = 1;
my $dialog = Gtk2::MessageDialog->new($browser->{window},
["modal"],
"info",
"close",
"Not implemented.");
$dialog->run();
$dialog->destroy();
preferences($browser);
}
#
# A revision id is what is returned so switch off the listing of tag
# names.
$browser->{tagged_tick}->set_active(FALSE);
$browser->{tagged_checkbutton}->set_active(FALSE);
&{$browser->{update_handler}}($browser, $state);
local $browser->{in_cb} = 1;
my($cmd,
$db_name);
$db_name,
@revision_ids);
# Build up the monotone-viz command, we need the database name and then
# optionally the branch and revision ids.
$cmd .= " " . $browser->{branch_combo_details}->{value};
if ($browser->{revision_combo_details}->{complete})
{
$cmd .= " " . $browser->{revision_combo_details}->{value};
get_revision_ids($browser, \@revision_ids);
$cmd .= " " . $revision_ids[0];
}
}
$len = length($value);
if ($len < $old_len)
{
$browser->{directory_combo}->get_model()->clear();
$browser->{directory_comboboxentry}->get_model()->clear();
foreach my $item (@{$browser->{directory_combo_details}->{list}})
{
$browser->{directory_combo}->append_text($item)
$browser->{directory_comboboxentry}->append_text($item)
if ($value eq substr($item, 0, $len));
}
}
$browser->{directory_combo}->child()->set_text($value);
$browser->{directory_comboboxentry}->child()->set_text($value);
$browser->{appbar}->clear_stack();
&{$browser->{update_handler}}($browser, DIRECTORY_CHANGED);
}
{
$browser->{directory_combo_details}->{value} = $manifest_entry->{name};
$browser->{directory_combo_details}->{complete} = 1;
$browser->{directory_combo}->child()->
$browser->{directory_comboboxentry}->child()->
set_text($manifest_entry->{name});
$browser->{appbar}->clear_stack();
&{$browser->{update_handler}}($browser, DIRECTORY_CHANGED);
# Get the widgets that we are interested in.
$browser->{window} = $browser->{glade}->get_widget($window_type);
$browser->{appbar} = $browser->{glade}->get_widget("appbar");
$browser->{main_vbox} = $browser->{glade}->get_widget("main_vbox");
$browser->{close_toolbutton} =
$browser->{glade}->get_widget("close_toolbutton");
$browser->{properties_toolbutton} =
$browser->{glade}->get_widget("properties_toolbutton");
$browser->{branch_combo} =
$browser->{glade}->get_widget("branch_comboboxentry");
$browser->{revision_combo} =
$browser->{glade}->get_widget("revision_comboboxentry");
$browser->{tagged_tick} =
$browser->{glade}->get_widget("tagged_checkbutton");
$browser->{directory_combo} =
$browser->{glade}->get_widget("directory_comboboxentry");
$browser->{directory_up_button} =
$browser->{glade}->get_widget("directory_up_button");
$browser->{manifest_treeview} =
$browser->{glade}->get_widget("manifest_browser_treeview");
$browser->{file_view_scrolledwindow} =
$browser->{glade}->get_widget("file_view_scrolledwindow");
$browser->{file_name_label} =
$browser->{glade}->get_widget("file_name_value_label");
$browser->{file_id_label} =
$browser->{glade}->get_widget("file_id_value_label");
$browser->{last_update_label} =
$browser->{glade}->get_widget("last_update_value_label");
$browser->{file_revision_id_label} =
$browser->{glade}->get_widget("file_revision_id_value_label");
$browser->{file_button_vbox} =
$browser->{glade}->get_widget("file_button_vbox");
$browser->{database_name_label} =
$browser->{glade}->get_widget("database_name_value_label");
$browser->{revision_id_label} =
$browser->{glade}->get_widget("revision_id_value_label");
$browser->{author_label} =
$browser->{glade}->get_widget("author_value_label");
$browser->{change_log_label} =
$browser->{glade}->get_widget("change_log_value_label");
foreach my $widget ("appbar",
"main_vbox",
"browser_hpaned",
"close_toolbutton",
"properties_toolbutton",
"branch_comboboxentry",
"revision_comboboxentry",
"tagged_checkbutton",
"directory_comboboxentry",
"directory_up_button",
"manifest_browser_treeview",
"file_view_scrolledwindow",
"file_name_value_label",
"file_id_value_label",
"last_update_value_label",
"file_revision_id_value_label",
"file_button_vbox",
"database_name_value_label",
"revision_id_value_label",
"author_value_label",
"change_log_value_label")
{
$browser->{$widget} = $browser->{glade}->get_widget($widget);
}
# Setup button sensitivity groups.
# Setup the comboboxentry key release signal handlers.
$browser->{branch_combo}->child()->
$browser->{branch_comboboxentry}->child()->
signal_connect("key_release_event",
\&combo_key_release_event_cb,
\&comboboxentry_key_release_event_cb,
$browser);
$browser->{directory_combo}->child()->
$browser->{directory_comboboxentry}->child()->
signal_connect("key_release_event",
\&combo_key_release_event_cb,
\&comboboxentry_key_release_event_cb,
$browser);
$browser->{revision_combo}->child()->
$browser->{revision_comboboxentry}->child()->
signal_connect("key_release_event",
\&combo_key_release_event_cb,
\&comboboxentry_key_release_event_cb,
$browser);
# Setup the comboboxes.
$browser->{branch_combo}->
$browser->{branch_comboboxentry}->
set_model(Gtk2::ListStore->new("Glib::String"));
$browser->{branch_combo}->set_text_column(0);
$browser->{branch_combo}->set_wrap_width(2);
$browser->{directory_combo}->
$browser->{branch_comboboxentry}->set_text_column(0);
$browser->{branch_comboboxentry}->set_wrap_width(2);
$browser->{directory_comboboxentry}->
set_model(Gtk2::ListStore->new("Glib::String"));
$browser->{directory_combo}->set_text_column(0);
$browser->{directory_combo}->set_wrap_width(2);
$browser->{revision_combo}->
$browser->{directory_comboboxentry}->set_text_column(0);
$browser->{directory_comboboxentry}->set_wrap_width(2);
$browser->{revision_comboboxentry}->
set_model(Gtk2::ListStore->new("Glib::String"));
$browser->{revision_combo}->set_text_column(0);
$browser->{revision_combo}->set_wrap_width(2);
$browser->{revision_comboboxentry}->set_text_column(0);
$browser->{revision_comboboxentry}->set_wrap_width(2);
# Setup the tree view manifest file browser.
"Glib::String",
"Glib::String",
"Glib::Scalar");
$browser->{manifest_treeview}->
$browser->{manifest_browser_treeview}->
set_model($browser->{manifest_liststore});
$tv_column = Gtk2::TreeViewColumn->new();
$renderer = Gtk2::CellRendererPixbuf->new();
$tv_column->pack_start($renderer, TRUE);
$tv_column->set_attributes($renderer, "stock-id" => MLS_ICON_COLUMN);
$browser->{manifest_treeview}->append_column($tv_column);
$browser->{manifest_browser_treeview}->append_column($tv_column);
$tv_column = Gtk2::TreeViewColumn->new();
$tv_column->set_title("File Name");
$renderer = Gtk2::CellRendererText->new();
$tv_column->pack_start($renderer, FALSE);
$tv_column->set_attributes($renderer, "text" => MLS_NAME_COLUMN);
$browser->{manifest_treeview}->append_column($tv_column);
$browser->{manifest_browser_treeview}->append_column($tv_column);
$tv_column = Gtk2::TreeViewColumn->new();
$tv_column->set_title("Last Update");
$renderer = Gtk2::CellRendererText->new();
$tv_column->pack_start($renderer, FALSE);
$tv_column->set_attributes($renderer, "text" => MLS_DATE_COLUMN);
$browser->{manifest_treeview}->append_column($tv_column);
$browser->{manifest_browser_treeview}->append_column($tv_column);
$tv_column = Gtk2::TreeViewColumn->new();
$tv_column->set_title("Author");
$renderer = Gtk2::CellRendererText->new();
$tv_column->pack_start($renderer, FALSE);
$tv_column->set_attributes($renderer, "text" => MLS_AUTHOR_COLUMN);
$browser->{manifest_treeview}->append_column($tv_column);
$browser->{manifest_browser_treeview}->append_column($tv_column);
$browser->{manifest_treeview}->set_search_column(MLS_NAME_COLUMN);
$browser->{manifest_browser_treeview}->
set_search_column(MLS_NAME_COLUMN);
# $tv_column =
# $browser->{manifest_treeview}->get_column(MLS_DATE_COLUMN);
$browser->{file_view_sv}->modify_font($mono_font);
$browser->{file_view_sv}->set_cursor_visible(FALSE);
$browser->{file_view_sv}->set_editable(FALSE);
$browser->{glade}->get_widget("file_view_scrolledwindow")->
add($browser->{file_view_sv});
$browser->{file_view_scrolledwindow}->add($browser->{file_view_sv});
$browser->{file_view_sv}->show_all();
local $browser->{in_cb} = 1;
($width, $height) = $browser->{window}->get_default_size();
$browser->{window}->resize($width, $height);
$browser->{glade}->get_widget("browser_hpaned")->set_position(300);
$browser->{tagged_tick}->set_active(FALSE);
$browser->{browser_hpaned}->set_position(300);
$browser->{tagged_checkbutton}->set_active(FALSE);
$browser->{appbar}->set_progress_percentage(0);
$browser->{appbar}->clear_stack();
$browser->{branch_combo_details}->{preset} = 0;
# Make sure that the branch comboboxentry has the focus and not the bonobo
# dock.
$browser->{branch_combo}->child()->grab_focus();
$browser->{branch_combo}->child()->set_position(-1);
$browser->{branch_comboboxentry}->child()->grab_focus();
$browser->{branch_comboboxentry}->child()->set_position(-1);
return $browser;
$browser->{close_toolbutton}->set_sensitive(FALSE);
$browser->{properties_toolbutton}->set_sensitive(FALSE);
$browser->{main_vbox}->set_sensitive(FALSE);
set_label_value($browser->{database_name_label}, "");
set_label_value($browser->{database_name_value_label}, "");
}
else
if (! defined($browser->{mtn}->get_db_name()))
{
$browser->{mtn}->get_option(\$db_name, "database");
set_label_value($browser->{database_name_label},
set_label_value($browser->{database_name_value_label},
sprintf("<WorkSpace> (%s)", $db_name));
}
else
{
set_label_value($browser->{database_name_label},
set_label_value($browser->{database_name_value_label},
$browser->{mtn}->get_db_name());
}
# Make sure that the branch comboboxentry has the focus and not the
# bonobo dock.
$browser->{branch_combo}->child()->grab_focus();
$browser->{branch_combo}->child()->set_position(-1);
$browser->{branch_comboboxentry}->child()->grab_focus();
$browser->{branch_comboboxentry}->child()->set_position(-1);
}
$browser->{appbar}->set_status("Populating branch list");
gtk2_update();
my $counter = 1;
$browser->{branch_combo}->get_model()->clear();
$browser->{branch_comboboxentry}->get_model()->clear();
foreach my $branch (@branch_list)
{
$browser->{branch_combo}->append_text($branch);
$browser->{branch_comboboxentry}->append_text($branch);
$browser->{appbar}->set_progress_percentage
($counter ++ / scalar(@branch_list));
gtk2_update();
}
$browser->{branch_combo}->child()->
$browser->{branch_comboboxentry}->child()->
set_text($browser->{branch_combo_details}->{value});
$browser->{appbar}->set_progress_percentage(0);
$browser->{appbar}->set_status("");
# Get either a list of tags or revision ids depending upon what the
# user has chosen.
if ($browser->{tagged_tick}->get_active())
if ($browser->{tagged_checkbutton}->get_active())
{
my(%dup_list,
@list);
$browser->{appbar}->set_status("Populating revision list");
gtk2_update();
my $counter = 1;
$browser->{revision_combo}->get_model()->clear();
$browser->{revision_comboboxentry}->get_model()->clear();
foreach my $revision (@revision_list)
{
$browser->{revision_combo}->append_text($revision);
$browser->{revision_comboboxentry}->append_text($revision);
$browser->{appbar}->set_progress_percentage
($counter ++ / scalar(@revision_list));
gtk2_update();
}
$browser->{revision_combo}->child()->
$browser->{revision_comboboxentry}->child()->
set_text($browser->{revision_combo_details}->{value});
$browser->{appbar}->set_progress_percentage(0);
$browser->{appbar}->set_status("");
$browser->{directory_combo_details}->{complete} = 0;
$browser->{directory_combo_details}->{value} = "";
}
set_label_value($browser->{revision_id_label}, "");
set_label_value($browser->{author_label}, "");
set_label_value($browser->{change_log_label}, "");
set_label_value($browser->{revision_id_value_label}, "");
set_label_value($browser->{author_value_label}, "");
set_label_value($browser->{change_log_value_label}, "");
# Reset the name of the file being viewed.
$dialog->destroy();
$browser->{revision_combo_details}->{complete} = 0;
$browser->{revision_combo_details}->{value} = "";
$browser->{revision_combo}->child()->set_text("");
$browser->{revision_comboboxentry}->child()->set_text("");
}
else
{
$change_log =~ s/\s+$//os;
}
}
set_label_value($browser->{revision_id_label},
set_label_value($browser->{revision_id_value_label},
$revision_ids[0]);
set_label_value($browser->{author_label}, $author);
set_label_value($browser->{change_log_label}, $change_log);
set_label_value($browser->{author_value_label}, $author);
set_label_value($browser->{change_log_value_label},
$change_log);
}
}
$browser->{manifest} = \@manifest_list;
$browser->{appbar}->set_status("Populating directory list");
gtk2_update();
my $counter = 1;
$browser->{directory_combo}->get_model()->clear();
$browser->{directory_comboboxentry}->get_model()->clear();
foreach my $item (@directory_list)
{
$browser->{directory_combo}->append_text($item);
$browser->{directory_comboboxentry}->append_text($item);
$browser->{appbar}->set_progress_percentage
($counter ++ / scalar(@directory_list));
gtk2_update();
}
$browser->{directory_combo}->child()->
$browser->{directory_comboboxentry}->child()->
set_text($browser->{directory_combo_details}->{value});
$browser->{appbar}->set_progress_percentage(0);
$browser->{appbar}->set_status("");
}
$browser->{manifest_treeview}->scroll_to_point(0, 0)
if ($browser->{manifest_treeview}->realized());
$browser->{manifest_browser_treeview}->scroll_to_point(0, 0)
if ($browser->{manifest_browser_treeview}->realized());
$browser->{appbar}->set_progress_percentage(0);
$browser->{appbar}->set_status("");
# Only do anything if the selected file has changed.
if ($browser->{file_id_label}->get_text()
if ($browser->{file_id_value_label}->get_text()
ne $manifest_entry->{file_id})
{
}
}
}
set_label_value($browser->{file_name_label},
set_label_value($browser->{file_name_value_label},
$manifest_entry->{name});
set_label_value($browser->{file_id_label},
set_label_value($browser->{file_id_value_label},
$manifest_entry->{file_id});
set_label_value($browser->{last_update_label},
set_label_value($browser->{last_update_value_label},
$manifest_entry->{last_update});
set_label_value($browser->{file_revision_id_label},
set_label_value($browser->{file_revision_id_value_label},
$manifest_entry->{last_changed_revision});
}
place_cursor($browser->{file_view_svbuffer}->get_start_iter());
$browser->{file_view_svbuffer}->set_text("");
$browser->{file_view_svbuffer}->set("highlight", FALSE);
set_label_value($browser->{file_name_label}, "");
set_label_value($browser->{file_id_label}, "");
set_label_value($browser->{last_update_label}, "");
set_label_value($browser->{file_revision_id_label}, "");
set_label_value($browser->{file_name_value_label}, "");
set_label_value($browser->{file_id_value_label}, "");
set_label_value($browser->{last_update_value_label}, "");
set_label_value($browser->{file_revision_id_value_label}, "");
disable_find_text($browser->{file_view_sv}, 1);
}
mtn-browse.glade
375375
376376
377377
378
378
379379
380380
381381
......
435435
436436
437437
438
438
439439
440440
441441
......
699699
700700
701701
702
702
703703
704704
705705
......
21722172
21732173
21742174
2175
2175
21762176
21772177
21782178
......
22322232
22332233
22342234
2235
2235
22362236
22372237
22382238
......
43094309
43104310
43114311
4312
4312
43134313
43144314
43154315
......
43904390
43914391
43924392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
43936690
<child>
<widget class="GtkComboBoxEntry" id="branch_comboboxentry">
<property name="visible">True</property>
<signal name="changed" handler="combo_changed_cb" last_modification_time="Sat, 10 Nov 2007 09:20:00 GMT"/>
<signal name="changed" handler="comboboxentry_changed_cb" last_modification_time="Sat, 17 May 2008 09:37:51 GMT"/>
</widget>
<packing>
<property name="left_attach">0</property>
<child>
<widget class="GtkComboBoxEntry" id="revision_comboboxentry">
<property name="visible">True</property>
<signal name="changed" handler="combo_changed_cb" last_modification_time="Sat, 10 Nov 2007 09:20:10 GMT"/>
<signal name="changed" handler="comboboxentry_changed_cb" last_modification_time="Sat, 17 May 2008 09:38:05 GMT"/>
</widget>
<packing>
<property name="left_attach">0</property>
<child>
<widget class="GtkComboBoxEntry" id="directory_comboboxentry">
<property name="visible">True</property>
<signal name="changed" handler="combo_changed_cb" last_modification_time="Sat, 10 Nov 2007 18:55:47 GMT"/>
<signal name="changed" handler="comboboxentry_changed_cb" last_modification_time="Sat, 17 May 2008 09:38:18 GMT"/>
</widget>
<packing>
<property name="left_attach">0</property>
<child>
<widget class="GtkComboBoxEntry" id="branch_comboboxentry">
<property name="visible">True</property>
<signal name="changed" handler="combo_changed_cb" last_modification_time="Sat, 08 Dec 2007 16:23:40 GMT"/>
<signal name="changed" handler="comboboxentry_changed_cb" last_modification_time="Sat, 17 May 2008 09:38:35 GMT"/>
</widget>
<packing>
<property name="left_attach">0</property>
<child>
<widget class="GtkComboBoxEntry" id="revision_comboboxentry">
<property name="visible">True</property>
<signal name="changed" handler="combo_changed_cb" last_modification_time="Sat, 08 Dec 2007 16:23:54 GMT"/>
<signal name="changed" handler="comboboxentry_changed_cb" last_modification_time="Sat, 17 May 2008 09:38:45 GMT"/>
</widget>
<packing>
<property name="left_attach">0</property>
<widget class="GtkComboBoxEntry" id="find_comboboxentry">
<property name="width_request">300</property>
<property name="visible">True</property>
<signal name="changed" handler="find_combobox_changed_cb" last_modification_time="Mon, 31 Mar 2008 15:29:43 GMT"/>
<signal name="changed" handler="find_comboboxentry_changed_cb" last_modification_time="Sat, 17 May 2008 09:39:43 GMT"/>
</widget>
<packing>
<property name="padding">0</property>
</child>
</widget>
<widget class="GtkDialog" id="preferences_window">
<property name="title" translatable="yes">Preferences</property>
<property name="type">GTK_WINDOW_TOPLEVEL</property>
<property name="window_position">GTK_WIN_POS_CENTER_ON_PARENT</property>
<property name="modal">True</property>
<property name="default_width">970</property>
<property name="default_height">400</property>
<property name="resizable">True</property>
<property name="destroy_with_parent">False</property>
<property name="icon">mtn-browse.png</property>
<property name="decorated">True</property>
<property name="skip_taskbar_hint">True</property>
<property name="skip_pager_hint">False</property>
<property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
<property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
<property name="has_separator">True</property>
<child internal-child="vbox">
<widget class="GtkVBox" id="dialog_vbox">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>
<child internal-child="action_area">
<widget class="GtkHButtonBox" id="dialog_action_area">
<property name="visible">True</property>
<property name="layout_style">GTK_BUTTONBOX_END</property>
<child>
<widget class="GtkButton" id="cancel_button">
<property name="visible">True</property>
<property name="can_default">True</property>
<property name="can_focus">True</property>
<property name="label">gtk-cancel</property>
<property name="use_stock">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<property name="response_id">-6</property>
</widget>
</child>
<child>
<widget class="GtkButton" id="ok_button">
<property name="visible">True</property>
<property name="can_default">True</property>
<property name="can_focus">True</property>
<property name="label">gtk-ok</property>
<property name="use_stock">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<property name="response_id">-5</property>
</widget>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="pack_type">GTK_PACK_END</property>
</packing>
</child>
<child>
<widget class="GtkNotebook" id="notebook">
<property name="border_width">5</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="show_tabs">True</property>
<property name="show_border">True</property>
<property name="tab_pos">GTK_POS_TOP</property>
<property name="scrollable">False</property>
<property name="enable_popup">False</property>
<child>
<widget class="GtkVBox" id="general_vbox">
<property name="border_width">5</property>
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>
<child>
<widget class="GtkFrame" id="startup_frame">
<property name="visible">True</property>
<property name="label_xalign">0</property>
<property name="label_yalign">0.5</property>
<property name="shadow_type">GTK_SHADOW_ETCHED_IN</property>
<child>
<widget class="GtkAlignment" id="startup_alignment">
<property name="visible">True</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xscale">1</property>
<property name="yscale">1</property>
<property name="top_padding">0</property>
<property name="bottom_padding">0</property>
<property name="left_padding">0</property>
<property name="right_padding">0</property>
<child>
<widget class="GtkTable" id="startup_table">
<property name="border_width">5</property>
<property name="visible">True</property>
<property name="n_rows">2</property>
<property name="n_columns">3</property>
<property name="homogeneous">False</property>
<property name="row_spacing">5</property>
<property name="column_spacing">5</property>
<child>
<widget class="GtkEntry" id="database_entry">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="editable">True</property>
<property name="visibility">True</property>
<property name="max_length">0</property>
<property name="text" translatable="yes"></property>
<property name="has_frame">True</property>
<property name="invisible_char">*</property>
<property name="activates_default">False</property>
</widget>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">0</property>
<property name="bottom_attach">1</property>
<property name="y_options"></property>
</packing>
</child>
<child>
<widget class="GtkButton" id="database_browse_button">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Look for a Monotone
database to open</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Browse ...</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
</widget>
<packing>
<property name="left_attach">2</property>
<property name="right_attach">3</property>
<property name="top_attach">0</property>
<property name="bottom_attach">1</property>
<property name="x_options">fill</property>
<property name="y_options"></property>
</packing>
</child>
<child>
<widget class="GtkEventBox" id="database_label_eventbox">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Name of the Monotone database to
open automatically on startup</property>
<property name="visible_window">True</property>
<property name="above_child">False</property>
<child>
<widget class="GtkLabel" id="database_label">
<property name="visible">True</property>
<property name="label" translatable="yes">Database to open:</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
</child>
</widget>
<packing>
<property name="left_attach">0</property>
<property name="right_attach">1</property>
<property name="top_attach">0</property>
<property name="bottom_attach">1</property>
<property name="x_options">fill</property>
<property name="y_options">fill</property>
</packing>
</child>
<child>
<widget class="GtkEventBox" id="workspace_label_eventbox">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Actions to take when starting up
inside a Monotone workspace</property>
<property name="visible_window">True</property>
<property name="above_child">False</property>
<child>
<widget class="GtkLabel" id="workspace_label">
<property name="visible">True</property>
<property name="label" translatable="yes">Workspace:</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
</child>
</widget>
<packing>
<property name="left_attach">0</property>
<property name="right_attach">1</property>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
<property name="x_options">fill</property>
<property name="y_options">fill</property>
</packing>
</child>
<child>
<widget class="GtkHBox" id="workspace_hbox">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">5</property>
<child>
<widget class="GtkCheckButton" id="precedence_checkbutton">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Select if the workspace's database
is to be opened instead of the named
database above upon startup</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Takes precedence</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkCheckButton" id="auto_select_checkbutton">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Select if the workspace's branch
and revision are to be automatically
loaded into the browser upon startup</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Auto select branch and revision</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
</widget>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
<property name="x_options">fill</property>
<property name="y_options">fill</property>
</packing>
</child>
</widget>
</child>
</widget>
</child>
<child>
<widget class="GtkLabel" id="startup_label">
<property name="visible">True</property>
<property name="label" translatable="yes">&lt;b&gt;Startup Defaults&lt;/b&gt;</property>
<property name="use_underline">False</property>
<property name="use_markup">True</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
<packing>
<property name="type">label_item</property>
</packing>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">True</property>
</packing>
</child>
<child>
<widget class="GtkFrame" id="query_options_frame">
<property name="visible">True</property>
<property name="label_xalign">0</property>
<property name="label_yalign">0.5</property>
<property name="shadow_type">GTK_SHADOW_ETCHED_IN</property>
<child>
<widget class="GtkAlignment" id="query_options_alignment">
<property name="visible">True</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xscale">1</property>
<property name="yscale">1</property>
<property name="top_padding">0</property>
<property name="bottom_padding">0</property>
<property name="left_padding">0</property>
<property name="right_padding">0</property>
<child>
<widget class="GtkTable" id="query_options_table">
<property name="border_width">5</property>
<property name="visible">True</property>
<property name="n_rows">2</property>
<property name="n_columns">4</property>
<property name="homogeneous">False</property>
<property name="row_spacing">5</property>
<property name="column_spacing">5</property>
<child>
<widget class="GtkEventBox" id="tagged_lists_label_eventbox">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Parameters for controlling the listing
of tagged revisions in Combo lists</property>
<property name="visible_window">True</property>
<property name="above_child">False</property>
<child>
<widget class="GtkLabel" id="tagged_lists_label">
<property name="visible">True</property>
<property name="label" translatable="yes">Tagged lists:</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
</child>
</widget>
<packing>
<property name="left_attach">0</property>
<property name="right_attach">1</property>
<property name="top_attach">0</property>
<property name="bottom_attach">1</property>
<property name="x_options">fill</property>
<property name="y_options">fill</property>
</packing>
</child>
<child>
<widget class="GtkEventBox" id="tagged_lists_limit_label_eventbox">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">The maximum number of tags
to be displayed (0 - unlimited)</property>
<property name="visible_window">True</property>
<property name="above_child">False</property>
<child>
<widget class="GtkLabel" id="tagged_lists_limit_label">
<property name="visible">True</property>
<property name="label" translatable="yes">Limit to:</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
</child>
</widget>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">0</property>
<property name="bottom_attach">1</property>
<property name="x_options">fill</property>
<property name="y_options">fill</property>
</packing>
</child>
<child>
<widget class="GtkEventBox" id="id_lists_limit_label_eventbox">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">The maximum number of ids
to be displayed (0 - unlimited)</property>
<property name="visible_window">True</property>
<property name="above_child">False</property>
<child>
<widget class="GtkLabel" id="id_lists_limit_label">
<property name="visible">True</property>
<property name="label" translatable="yes">Limit to:</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
</child>
</widget>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
<property name="x_options">fill</property>
<property name="y_options">fill</property>
</packing>
</child>
<child>
<widget class="GtkEventBox" id="id_lists_label_eventbox">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Parameters for controlling the listing
of revision ids in Combo lists</property>
<property name="visible_window">True</property>
<property name="above_child">False</property>
<child>
<widget class="GtkLabel" id="id_lists_label">
<property name="visible">True</property>
<property name="label" translatable="yes">Id lists:</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
</child>
</widget>
<packing>
<property name="left_attach">0</property>
<property name="right_attach">1</property>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
<property name="x_options">fill</property>
<property name="y_options">fill</property>
</packing>
</child>
<child>
<widget class="GtkHBox" id="id_lists_hbox">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">5</property>
<child>
<widget class="GtkRadioButton" id="id_lists_sort_cronologically_radiobutton">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Select Sort cronologically if you
want the ids to be order on date,
starting with the newest</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Sort cronologically</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkRadioButton" id="id_lists_sort_by_id_radiobutton">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Select Sort by id if you want the
tags to be order aphabetically</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Sort by id</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
<property name="group">id_lists_sort_cronologically_radiobutton</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
</widget>
<packing>
<property name="left_attach">3</property>
<property name="right_attach">4</property>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
<property name="x_options">fill</property>
<property name="y_options">fill</property>
</packing>
</child>
<child>
<widget class="GtkHBox" id="tagged_lists_hbox">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">5</property>
<child>
<widget class="GtkRadioButton" id="tagged_lists_sort_cronologically_radiobutton">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Select Sort cronologically if you
want the tags to be order on date,
starting with the newest</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Sort cronologically</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkRadioButton" id="tagged_lists_sort_by_name_radiobutton">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Select Sort by name if you want
the tags to be order aphabetically</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Sort by name</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<property name="active">False</property>
<property name="inconsistent">False</property>
<property name="draw_indicator">True</property>
<property name="group">tagged_lists_sort_cronologically_radiobutton</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
</widget>
<packing>
<property name="left_attach">3</property>
<property name="right_attach">4</property>
<property name="top_attach">0</property>
<property name="bottom_attach">1</property>
<property name="x_options">fill</property>
<property name="y_options">fill</property>
</packing>
</child>
<child>
<widget class="GtkSpinButton" id="tagged_lists_limit_spinbutton">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="climb_rate">1</property>
<property name="digits">0</property>
<property name="numeric">True</property>
<property name="update_policy">GTK_UPDATE_ALWAYS</property>
<property name="snap_to_ticks">False</property>
<property name="wrap">False</property>
<property name="adjustment">0 0 10000 1 10 10</property>
</widget>
<packing>
<property name="left_attach">2</property>
<property name="right_attach">3</property>
<property name="top_attach">0</property>
<property name="bottom_attach">1</property>
<property name="x_options">fill</property>
<property name="y_options"></property>
</packing>
</child>
<child>
<widget class="GtkSpinButton" id="id_lists_limit_spinbutton">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="climb_rate">1</property>
<property name="digits">0</property>
<property name="numeric">True</property>
<property name="update_policy">GTK_UPDATE_ALWAYS</property>
<property name="snap_to_ticks">False</property>
<property name="wrap">False</property>
<property name="adjustment">0 0 10000 1 10 10</property>
</widget>
<packing>
<property name="left_attach">2</property>
<property name="right_attach">3</property>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
<property name="x_options">fill</property>
<property name="y_options"></property>
</packing>
</child>
</widget>
</child>
</widget>
</child>
<child>
<widget class="GtkLabel" id="query_options_label">
<property name="visible">True</property>
<property name="label" translatable="yes">&lt;b&gt;Query Options&lt;/b&gt;</property>
<property name="use_underline">False</property>
<property name="use_markup">True</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
<packing>
<property name="type">label_item</property>
</packing>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">True</property>
</packing>
</child>
</widget>
<packing>
<property name="tab_expand">False</property>
<property name="tab_fill">True</property>
</packing>
</child>
<child>
<widget class="GtkLabel" id="general_label">
<property name="visible">True</property>
<property name="label" translatable="yes">&lt;b&gt;General&lt;/b&gt;</property>
<property name="use_underline">False</property>
<property name="use_markup">True</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
<packing>
<property name="type">tab</property>
</packing>
</child>
<child>
<widget class="GtkVBox" id="appearance_vbox">
<property name="border_width">5</property>
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>
<child>
<widget class="GtkFrame" id="fonts_frame">
<property name="visible">True</property>
<property name="label_xalign">0</property>
<property name="label_yalign">0.5</property>
<property name="shadow_type">GTK_SHADOW_ETCHED_IN</property>
<child>
<widget class="GtkAlignment" id="fonts_alignment">
<property name="visible">True</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xscale">1</property>
<property name="yscale">1</property>
<property name="top_padding">0</property>
<property name="bottom_padding">0</property>
<property name="left_padding">0</property>
<property name="right_padding">0</property>
<child>
<widget class="GtkTable" id="fonts_table">
<property name="border_width">5</property>
<property name="visible">True</property>
<property name="n_rows">1</property>
<property name="n_columns">2</property>
<property name="homogeneous">False</property>
<property name="row_spacing">5</property>
<property name="column_spacing">5</property>
<child>
<widget class="GtkEventBox" id="fonts_label_eventbox">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Select the font used for displaying file
contents and reports (for best results
make sure it is mono-spaced)</property>
<property name="visible_window">True</property>
<property name="above_child">False</property>
<child>
<widget class="GtkLabel" id="fonts_label">
<property name="visible">True</property>
<property name="label" translatable="yes">File content/report font:</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
</child>
</widget>
<packing>
<property name="left_attach">0</property>
<property name="right_attach">1</property>
<property name="top_attach">0</property>
<property name="bottom_attach">1</property>
<property name="x_options">fill</property>
<property name="y_options">fill</property>
</packing>
</child>
<child>
<widget class="GtkFontButton" id="fonts_fontbutton">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="show_style">True</property>
<property name="show_size">True</property>
<property name="use_font">True</property>
<property name="use_size">True</property>
<property name="focus_on_click">True</property>
</widget>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">0</property>
<property name="bottom_attach">1</property>
<property name="x_options">fill</property>
<property name="y_options"></property>
</packing>
</child>
</widget>
</child>
</widget>
</child>
<child>
<widget class="GtkLabel" id="fonts_label">
<property name="visible">True</property>
<property name="label" translatable="yes">&lt;b&gt;Fonts&lt;/b&gt;</property>
<property name="use_underline">False</property>
<property name="use_markup">True</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
<packing>
<property name="type">label_item</property>
</packing>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">True</property>
</packing>
</child>
<child>
<widget class="GtkFrame" id="colours_frame">
<property name="visible">True</property>
<property name="label_xalign">0</property>
<property name="label_yalign">0.5</property>
<property name="shadow_type">GTK_SHADOW_ETCHED_IN</property>
<child>
<widget class="GtkAlignment" id="colours_alignment">
<property name="visible">True</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xscale">1</property>
<property name="yscale">1</property>
<property name="top_padding">0</property>
<property name="bottom_padding">0</property>
<property name="left_padding">0</property>
<property name="right_padding">0</property>
<child>
<widget class="GtkTable" id="colours_table">
<property name="border_width">5</property>
<property name="visible">True</property>
<property name="n_rows">6</property>
<property name="n_columns">7</property>
<property name="homogeneous">False</property>
<property name="row_spacing">5</property>
<property name="column_spacing">5</property>
<child>
<widget class="GtkEventBox" id="annotation_prefix_1_label_eventbox">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">The first set of line prefix colours
used in annotated listings</property>
<property name="visible_window">True</property>
<property name="above_child">False</property>
<child>
<widget class="GtkLabel" id="annotation_prefix_1_label">
<property name="visible">True</property>
<property name="label" translatable="yes">Annotation prefix 1:</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
</child>
</widget>
<packing>
<property name="left_attach">0</property>
<property name="right_attach">1</property>
<property name="top_attach">0</property>
<property name="bottom_attach">1</property>
<property name="x_options">fill</property>
<property name="y_options">fill</property>
</packing>
</child>
<child>
<widget class="GtkEventBox" id="revision_1_label_eventbox">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Colour of the first revision
in comparison listings</property>
<property name="visible_window">True</property>
<property name="above_child">False</property>
<child>
<widget class="GtkLabel" id="revision_1_label">
<property name="visible">True</property>
<property name="label" translatable="yes">Revision 1:</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
</child>
</widget>
<packing>
<property name="left_attach">0</property>
<property name="right_attach">1</property>
<property name="top_attach">4</property>
<property name="bottom_attach">5</property>
<property name="x_options">fill</property>
<property name="y_options">fill</property>
</packing>
</child>
<child>
<widget class="GtkEventBox" id="revision_2_label_eventbox">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Colour of the second revision
in comparison listings</property>
<property name="visible_window">True</property>
<property name="above_child">False</property>
<child>
<widget class="GtkLabel" id="revision_2_label">
<property name="visible">True</property>
<property name="label" translatable="yes">Revision 2:</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
</child>
</widget>
<packing>
<property name="left_attach">0</property>
<property name="right_attach">1</property>
<property name="top_attach">5</property>
<property name="bottom_attach">6</property>
<property name="x_options">fill</property>
<property name="y_options">fill</property>
</packing>
</child>
<child>
<widget class="GtkEventBox" id="revision_1_foreground_label_eventbox">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Text foreground colour</property>
<property name="visible_window">True</property>
<property name="above_child">False</property>
<child>
<widget class="GtkLabel" id="revision_1_foreground_label">
<property name="visible">True</property>
<property name="label" translatable="yes">Foreground:</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
</child>
</widget>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">4</property>
<property name="bottom_attach">5</property>
<property name="x_options">fill</property>
<property name="y_options">fill</property>
</packing>
</child>
<child>
<widget class="GtkEventBox" id="revision_2_foreground_label_eventbox">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Text foreground colour</property>
<property name="visible_window">True</property>
<property name="above_child">False</property>
<child>
<widget class="GtkLabel" id="revision_2_foreground_label">
<property name="visible">True</property>
<property name="label" translatable="yes">Foreground:</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
</child>
</widget>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">5</property>
<property name="bottom_attach">6</property>
<property name="x_options">fill</property>
<property name="y_options">fill</property>
</packing>
</child>
<child>
<widget class="GtkEventBox" id="revision_1_background_label_eventbox">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Text background colour</property>
<property name="visible_window">True</property>
<property name="above_child">False</property>
<child>
<widget class="GtkLabel" id="revision_1_background_label">
<property name="visible">True</property>
<property name="label" translatable="yes">Background:</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
</child>
</widget>
<packing>
<property name="left_attach">3</property>
<property name="right_attach">4</property>
<property name="top_attach">4</property>
<property name="bottom_attach">5</property>
<property name="x_options">fill</property>
<property name="y_options">fill</property>
</packing>
</child>
<child>
<widget class="GtkEventBox" id="revision_2_background_label_eventbox">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Text background colour</property>
<property name="visible_window">True</property>
<property name="above_child">False</property>
<child>
<widget class="GtkLabel" id="revision_2_background_label">
<property name="visible">True</property>
<property name="label" translatable="yes">Background:</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
</child>
</widget>
<packing>
<property name="left_attach">3</property>
<property name="right_attach">4</property>
<property name="top_attach">5</property>
<property name="bottom_attach">6</property>
<property name="x_options">fill</property>
<property name="y_options">fill</property>
</packing>
</child>
<child>
<widget class="GtkColorButton" id="annotation_prefix_1_foreground_colorbutton">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="use_alpha">False</property>
<property name="focus_on_click">True</property>
</widget>
<packing>
<property name="left_attach">2</property>
<property name="right_attach">3</property>
<property name="top_attach">0</property>
<property name="bottom_attach">1</property>
<property name="x_options">fill</property>
<property name="y_options"></property>
</packing>
</child>
<child>
<widget class="GtkColorButton" id="revision_1_foreground_colorbutton">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="use_alpha">False</property>
<property name="focus_on_click">True</property>
</widget>
<packing>
<property name="left_attach">2</property>
<property name="right_attach">3</property>
<property name="top_attach">4</property>
<property name="bottom_attach">5</property>
<property name="x_options">fill</property>
<property name="y_options"></property>
</packing>
</child>
<child>
<widget class="GtkColorButton" id="revision_2_foreground_colorbutton">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="use_alpha">False</property>
<property name="focus_on_click">True</property>
</widget>
<packing>
<property name="left_attach">2</property>
<property name="right_attach">3</property>
<property name="top_attach">5</property>
<property name="bottom_attach">6</property>
<property name="x_options">fill</property>
<property name="y_options"></property>
</packing>
</child>
<child>
<widget class="GtkColorButton" id="annotation_prefix_1_background_colorbutton">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="use_alpha">False</property>
<property name="focus_on_click">True</property>
</widget>
<packing>
<property name="left_attach">4</property>
<property name="right_attach">5</property>
<property name="top_attach">0</property>
<property name="bottom_attach">1</property>
<property name="x_options">fill</property>
<property name="y_options"></property>
</packing>
</child>
<child>
<widget class="GtkColorButton" id="revision_1_background_colorbutton">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="use_alpha">False</property>
<property name="focus_on_click">True</property>
</widget>
<packing>
<property name="left_attach">4</property>
<property name="right_attach">5</property>
<property name="top_attach">4</property>
<property name="bottom_attach">5</property>
<property name="x_options">fill</property>
<property name="y_options"></property>
</packing>
</child>
<child>
<widget class="GtkColorButton" id="revision_2_background_colorbutton">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="use_alpha">False</property>
<property name="focus_on_click">True</property>
</widget>
<packing>
<property name="left_attach">4</property>
<property name="right_attach">5</property>
<property name="top_attach">5</property>
<property name="bottom_attach">6</property>
<property name="x_options">fill</property>
<property name="y_options"></property>
</packing>
</child>
<child>
<widget class="GtkEventBox" id="annotation_prefix_1_foreground_label_eventbox">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Text foreground colour</property>
<property name="visible_window">True</property>
<property name="above_child">False</property>
<child>
<widget class="GtkLabel" id="annotation_prefix_1_foreground_label">
<property name="visible">True</property>
<property name="label" translatable="yes">Foreground:</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
</child>
</widget>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">0</property>
<property name="bottom_attach">1</property>
<property name="x_options">fill</property>
<property name="y_options">fill</property>
</packing>
</child>
<child>
<widget class="GtkEventBox" id="annotation_prefix_1_background_label_eventbox">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Text background colour</property>
<property name="visible_window">True</property>
<property name="above_child">False</property>
<child>
<widget class="GtkLabel" id="annotation_prefix_1_background_label">
<property name="visible">True</property>
<property name="label" translatable="yes">Background:</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
</child>
</widget>
<packing>
<property name="left_attach">3</property>
<property name="right_attach">4</property>
<property name="top_attach">0</property>
<property name="bottom_attach">1</property>
<property name="x_options">fill</property>
<property name="y_options">fill</property>
</packing>
</child>
<child>
<widget class="GtkEventBox" id="revision_2_highlight_label_eventbox">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Text foreground colour
used in context lines</property>
<property name="visible_window">True</property>
<property name="above_child">False</property>
<child>
<widget class="GtkLabel" id="revision_2_highlight_label">
<property name="visible">True</property>
<property name="label" translatable="yes">Highlight:</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
</child>
</widget>
<packing>
<property name="left_attach">5</property>
<property name="right_attach">6</property>
<property name="top_attach">5</property>
<property name="bottom_attach">6</property>
<property name="x_options">fill</property>
<property name="y_options">fill</property>
</packing>
</child>
<child>
<widget class="GtkColorButton" id="revision_2_highlight_colorbutton">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="use_alpha">False</property>
<property name="focus_on_click">True</property>
</widget>
<packing>
<property name="left_attach">6</property>
<property name="right_attach">7</property>
<property name="top_attach">5</property>
<property name="bottom_attach">6</property>
<property name="x_options">fill</property>
<property name="y_options"></property>
</packing>
</child>
<child>
<widget class="GtkEventBox" id="revision_1_highlight_label_eventbox">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Text foreground colour
used in context lines</property>
<property name="visible_window">True</property>
<property name="above_child">False</property>
<child>
<widget class="GtkLabel" id="revision_1_highlight_label">
<property name="visible">True</property>
<property name="label" translatable="yes">Highlight:</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
</child>
</widget>
<packing>
<property name="left_attach">5</property>
<property name="right_attach">6</property>
<property name="top_attach">4</property>
<property name="bottom_attach">5</property>
<property name="x_options">fill</property>
<property name="y_options">fill</property>
</packing>
</child>
<child>
<widget class="GtkColorButton" id="revision_1_highlight_colorbutton">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="use_alpha">False</property>
<property name="focus_on_click">True</property>
</widget>
<packing>
<property name="left_attach">6</property>
<property name="right_attach">7</property>
<property name="top_attach">4</property>
<property name="bottom_attach">5</property>
<property name="x_options">fill</property>
<property name="y_options"></property>
</packing>
</child>
<child>
<widget class="GtkEventBox" id="annotation_text_1_label_eventbox">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">The first set of line text colours
used in annotated listings</property>
<property name="visible_window">True</property>
<property name="above_child">False</property>
<child>
<widget class="GtkLabel" id="annotation_text_1_label">
<property name="visible">True</property>
<property name="label" translatable="yes">Annotation text 1:</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
</child>
</widget>
<packing>
<property name="left_attach">0</property>
<property name="right_attach">1</property>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
<property name="x_options">fill</property>
</packing>
</child>
<child>
<widget class="GtkEventBox" id="annotation_text_1_foreground_label_eventbox">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Text foreground colour</property>
<property name="visible_window">True</property>
<property name="above_child">False</property>
<child>
<widget class="GtkLabel" id="annotation_text_1_foreground_label">
<property name="visible">True</property>
<property name="label" translatable="yes">Foreground:</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
</child>
</widget>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
<property name="x_options">fill</property>
<property name="y_options">fill</property>
</packing>
</child>
<child>
<widget class="GtkColorButton" id="annotation_text_1_foreground_colorbutton">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="use_alpha">False</property>
<property name="focus_on_click">True</property>
</widget>
<packing>
<property name="left_attach">2</property>
<property name="right_attach">3</property>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
<property name="x_options">fill</property>
<property name="y_options"></property>
</packing>
</child>
<child>
<widget class="GtkEventBox" id="annotation_text_1_background_label_eventbox">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Text background colour</property>
<property name="visible_window">True</property>
<property name="above_child">False</property>
<child>
<widget class="GtkLabel" id="annotation_text_1_background_label">
<property name="visible">True</property>
<property name="label" translatable="yes">Background:</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
</child>
</widget>
<packing>
<property name="left_attach">3</property>
<property name="right_attach">4</property>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
<property name="x_options">fill</property>
<property name="y_options">fill</property>
</packing>
</child>
<child>
<widget class="GtkColorButton" id="annotation_text_1_background_colorbutton">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="use_alpha">False</property>
<property name="focus_on_click">True</property>
</widget>
<packing>
<property name="left_attach">4</property>
<property name="right_attach">5</property>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
<property name="x_options">fill</property>
<property name="y_options"></property>
</packing>
</child>
<child>
<widget class="GtkEventBox" id="annotation_prefix_2_label_eventbox">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">The second set of line prefix colours
used in annotated listings</property>
<property name="visible_window">True</property>
<property name="above_child">False</property>
<child>
<widget class="GtkLabel" id="annotation_prefix_2_label">
<property name="visible">True</property>
<property name="label" translatable="yes">Annotation prefix 2:</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
</child>
</widget>
<packing>
<property name="left_attach">0</property>
<property name="right_attach">1</property>
<property name="top_attach">2</property>
<property name="bottom_attach">3</property>
<property name="x_options">fill</property>
</packing>
</child>
<child>
<widget class="GtkEventBox" id="annotation_text_2_label_eventbox">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">The second set of line text colours
used in annotated listings</property>
<property name="visible_window">True</property>
<property name="above_child">False</property>
<child>
<widget class="GtkLabel" id="annotation_text_2_label">
<property name="visible">True</property>
<property name="label" translatable="yes">Annotation text 2:</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
</child>
</widget>
<packing>
<property name="left_attach">0</property>
<property name="right_attach">1</property>
<property name="top_attach">3</property>
<property name="bottom_attach">4</property>
<property name="x_options">fill</property>
</packing>
</child>
<child>
<widget class="GtkEventBox" id="annotation_prefix_2_foreground_label_eventbox">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Text foreground colour</property>
<property name="visible_window">True</property>
<property name="above_child">False</property>
<child>
<widget class="GtkLabel" id="annotation_prefix_2_foreground_label">
<property name="visible">True</property>
<property name="label" translatable="yes">Foreground:</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
</child>
</widget>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">2</property>
<property name="bottom_attach">3</property>
<property name="x_options">fill</property>
<property name="y_options">fill</property>
</packing>
</child>
<child>
<widget class="GtkEventBox" id="annotation_text_2_foreground_label_eventbox">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Text foreground colour</property>
<property name="visible_window">True</property>
<property name="above_child">False</property>
<child>
<widget class="GtkLabel" id="annotation_text_2_foreground_label">
<property name="visible">True</property>
<property name="label" translatable="yes">Foreground:</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
</child>
</widget>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">3</property>
<property name="bottom_attach">4</property>
<property name="x_options">fill</property>
<property name="y_options">fill</property>
</packing>
</child>
<child>
<widget class="GtkEventBox" id="annotation_prefix_2_background_label_eventbox">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Text background colour</property>
<property name="visible_window">True</property>
<property name="above_child">False</property>
<child>
<widget class="GtkLabel" id="annotation_prefix_2_background_label">
<property name="visible">True</property>
<property name="label" translatable="yes">Background:</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
</child>
</widget>
<packing>
<property name="left_attach">3</property>
<property name="right_attach">4</property>
<property name="top_attach">2</property>
<property name="bottom_attach">3</property>
<property name="x_options">fill</property>
<property name="y_options">fill</property>
</packing>
</child>
<child>
<widget class="GtkEventBox" id="annotation_text_2_background_label_eventbox">
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Text background colour</property>
<property name="visible_window">True</property>
<property name="above_child">False</property>
<child>
<widget class="GtkLabel" id="annotation_text_2_background_label">
<property name="visible">True</property>
<property name="label" translatable="yes">Background:</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
</widget>
</child>
</widget>
<packing>
<property name="left_attach">3</property>
<property name="right_attach">4</property>
<property name="top_attach">3</property>
<property name="bottom_attach">4</property>
<property name="x_options">fill</property>
<property name="y_options">fill</property>
</packing>
</child>
<child>
<widget class="GtkColorButton" id="annotation_prefix_2_foreground_colorbutton">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="use_alpha">False</property>
<property name="focus_on_click">True</property>
</widget>
<packing>
<property name="left_attach">2</property>
<property name="right_attach">3</property>
<property name="top_attach">2</property>
<property name="bottom_attach">3</property>
<property name="x_options">fill</property>
<property name="y_options"></property>
</packing>
</child>
<child>
<widget class="GtkColorButton" id="annotation_text_2_foreground_colorbutton">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="use_alpha">False</property>
<property name="focus_on_click">True</property>
</widget>
<packing>
<property name="left_attach">2</property>
<property name="right_attach">3</property>
<property name="top_attach">3</property>
<property name="bottom_attach">4</property>
<property name="x_options">fill</property>
<property name="y_options"></property>
</packing>
</child>
<child>
<widget class="GtkColorButton" id="annotation_prefix_2_background_colorbutton">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="use_alpha">False</property>
<property name="focus_on_click">True</property>
</widget>
<packing>
␉<