Browse Source

added version number in About dialog

Enrico Tassi 11 years ago
parent
commit
591a2ff91f
2 changed files with 30 additions and 27 deletions
  1. 26
    25
      smd-applet.ui
  2. 4
    2
      smd-applet.vala

+ 26
- 25
smd-applet.ui View File

@@ -194,7 +194,7 @@ pull-frequency,  push-frequency  and  endpoint-name.</property>
194 194
                     <property name="layout_style">center</property>
195 195
                     <child>
196 196
                       <object class="GtkButton" id="bEditLoopCfg">
197
-                        <property name="label" translatable="yes">gtk-edit</property>
197
+                        <property name="label">gtk-edit</property>
198 198
                         <property name="visible">True</property>
199 199
                         <property name="can_focus">True</property>
200 200
                         <property name="receives_default">True</property>
@@ -275,7 +275,7 @@ This interface allows you to edit only the default endpoint.</property>
275 275
                     <property name="visible">True</property>
276 276
                     <child>
277 277
                       <object class="GtkButton" id="bEditPushPullCfg">
278
-                        <property name="label" translatable="yes">gtk-edit</property>
278
+                        <property name="label">gtk-edit</property>
279 279
                         <property name="visible">True</property>
280 280
                         <property name="can_focus">True</property>
281 281
                         <property name="receives_default">True</property>
@@ -320,7 +320,7 @@ This interface allows you to edit only the default endpoint.</property>
320 320
             <property name="layout_style">end</property>
321 321
             <child>
322 322
               <object class="GtkButton" id="bClosePrefs">
323
-                <property name="label" translatable="yes">gtk-close</property>
323
+                <property name="label">gtk-close</property>
324 324
                 <property name="visible">True</property>
325 325
                 <property name="can_focus">True</property>
326 326
                 <property name="receives_default">True</property>
@@ -361,15 +361,15 @@ This interface allows you to edit only the default endpoint.</property>
361 361
     <property name="window_position">center</property>
362 362
     <property name="icon_name">dialog-error</property>
363 363
     <child>
364
-      <object class="GtkVBox" id="vbox1">
364
+      <object class="GtkVBox" id="vbox5">
365 365
         <property name="visible">True</property>
366 366
         <property name="orientation">vertical</property>
367 367
         <property name="spacing">5</property>
368 368
         <child>
369
-          <object class="GtkHBox" id="hbox1">
369
+          <object class="GtkHBox" id="hbox3">
370 370
             <property name="visible">True</property>
371 371
             <child>
372
-              <object class="GtkImage" id="image1">
372
+              <object class="GtkImage" id="image3">
373 373
                 <property name="visible">True</property>
374 374
                 <property name="xpad">10</property>
375 375
                 <property name="ypad">10</property>
@@ -382,7 +382,7 @@ This interface allows you to edit only the default endpoint.</property>
382 382
               </packing>
383 383
             </child>
384 384
             <child>
385
-              <object class="GtkLabel" id="label4">
385
+              <object class="GtkLabel" id="label7">
386 386
                 <property name="visible">True</property>
387 387
                 <property name="xalign">0</property>
388 388
                 <property name="xpad">10</property>
@@ -400,12 +400,12 @@ This interface allows you to edit only the default endpoint.</property>
400 400
           </packing>
401 401
         </child>
402 402
         <child>
403
-          <object class="GtkFrame" id="frame1">
403
+          <object class="GtkFrame" id="frame2">
404 404
             <property name="visible">True</property>
405 405
             <property name="label_xalign">0</property>
406 406
             <property name="shadow_type">none</property>
407 407
             <child>
408
-              <object class="GtkAlignment" id="alignment1">
408
+              <object class="GtkAlignment" id="alignment2">
409 409
                 <property name="visible">True</property>
410 410
                 <property name="left_padding">12</property>
411 411
                 <child>
@@ -419,7 +419,7 @@ This interface allows you to edit only the default endpoint.</property>
419 419
               </object>
420 420
             </child>
421 421
             <child type="label">
422
-              <object class="GtkLabel" id="label1">
422
+              <object class="GtkLabel" id="label8">
423 423
                 <property name="visible">True</property>
424 424
                 <property name="label" translatable="yes">&lt;b&gt;Error context&lt;/b&gt;</property>
425 425
                 <property name="use_markup">True</property>
@@ -431,12 +431,12 @@ This interface allows you to edit only the default endpoint.</property>
431 431
           </packing>
432 432
         </child>
433 433
         <child>
434
-          <object class="GtkFrame" id="frame2">
434
+          <object class="GtkFrame" id="frame3">
435 435
             <property name="visible">True</property>
436 436
             <property name="label_xalign">0</property>
437 437
             <property name="shadow_type">none</property>
438 438
             <child>
439
-              <object class="GtkAlignment" id="alignment2">
439
+              <object class="GtkAlignment" id="alignment3">
440 440
                 <property name="visible">True</property>
441 441
                 <property name="left_padding">12</property>
442 442
                 <child>
@@ -450,7 +450,7 @@ This interface allows you to edit only the default endpoint.</property>
450 450
               </object>
451 451
             </child>
452 452
             <child type="label">
453
-              <object class="GtkLabel" id="label2">
453
+              <object class="GtkLabel" id="label9">
454 454
                 <property name="visible">True</property>
455 455
                 <property name="label" translatable="yes">&lt;b&gt;Possible cause&lt;/b&gt;</property>
456 456
                 <property name="use_markup">True</property>
@@ -462,16 +462,16 @@ This interface allows you to edit only the default endpoint.</property>
462 462
           </packing>
463 463
         </child>
464 464
         <child>
465
-          <object class="GtkFrame" id="frame3">
465
+          <object class="GtkFrame" id="frame4">
466 466
             <property name="visible">True</property>
467 467
             <property name="label_xalign">0</property>
468 468
             <property name="shadow_type">none</property>
469 469
             <child>
470
-              <object class="GtkAlignment" id="alignment3">
470
+              <object class="GtkAlignment" id="alignment4">
471 471
                 <property name="visible">True</property>
472 472
                 <property name="left_padding">12</property>
473 473
                 <child>
474
-                  <object class="GtkVBox" id="vbox2">
474
+                  <object class="GtkVBox" id="vbox7">
475 475
                     <property name="visible">True</property>
476 476
                     <property name="orientation">vertical</property>
477 477
                     <child>
@@ -484,15 +484,15 @@ This interface allows you to edit only the default endpoint.</property>
484 484
                             <property name="visible">True</property>
485 485
                             <property name="left_padding">12</property>
486 486
                             <child>
487
-                              <object class="GtkVBox" id="vbox3">
487
+                              <object class="GtkVBox" id="vbox8">
488 488
                                 <property name="visible">True</property>
489 489
                                 <property name="orientation">vertical</property>
490 490
                                 <property name="spacing">2</property>
491 491
                                 <child>
492
-                                  <object class="GtkHBox" id="hbox2">
492
+                                  <object class="GtkHBox" id="hbox4">
493 493
                                     <property name="visible">True</property>
494 494
                                     <child>
495
-                                      <object class="GtkLabel" id="label8">
495
+                                      <object class="GtkLabel" id="label10">
496 496
                                         <property name="visible">True</property>
497 497
                                         <property name="label" translatable="yes">File: </property>
498 498
                                       </object>
@@ -544,7 +544,7 @@ This interface allows you to edit only the default endpoint.</property>
544 544
                           </object>
545 545
                         </child>
546 546
                         <child type="label">
547
-                          <object class="GtkLabel" id="label7">
547
+                          <object class="GtkLabel" id="label11">
548 548
                             <property name="visible">True</property>
549 549
                             <property name="label" translatable="yes">&lt;b&gt;Show mail message&lt;/b&gt;</property>
550 550
                             <property name="use_markup">True</property>
@@ -574,7 +574,7 @@ This interface allows you to edit only the default endpoint.</property>
574 574
                           </object>
575 575
                         </child>
576 576
                         <child type="label">
577
-                          <object class="GtkLabel" id="label6">
577
+                          <object class="GtkLabel" id="label12">
578 578
                             <property name="visible">True</property>
579 579
                             <property name="label" translatable="yes">&lt;b&gt;Check file permissions&lt;/b&gt;</property>
580 580
                             <property name="use_markup">True</property>
@@ -612,7 +612,7 @@ This interface allows you to edit only the default endpoint.</property>
612 612
                           </object>
613 613
                         </child>
614 614
                         <child type="label">
615
-                          <object class="GtkLabel" id="label5">
615
+                          <object class="GtkLabel" id="label13">
616 616
                             <property name="visible">True</property>
617 617
                             <property name="label" translatable="yes">&lt;b&gt;Run command&lt;/b&gt;</property>
618 618
                             <property name="use_markup">True</property>
@@ -628,7 +628,7 @@ This interface allows you to edit only the default endpoint.</property>
628 628
               </object>
629 629
             </child>
630 630
             <child type="label">
631
-              <object class="GtkLabel" id="label3">
631
+              <object class="GtkLabel" id="label14">
632 632
                 <property name="visible">True</property>
633 633
                 <property name="label" translatable="yes">&lt;b&gt;Proposed actions&lt;/b&gt;</property>
634 634
                 <property name="use_markup">True</property>
@@ -640,12 +640,12 @@ This interface allows you to edit only the default endpoint.</property>
640 640
           </packing>
641 641
         </child>
642 642
         <child>
643
-          <object class="GtkHButtonBox" id="hbuttonbox1">
643
+          <object class="GtkHButtonBox" id="hbuttonbox4">
644 644
             <property name="visible">True</property>
645 645
             <property name="layout_style">end</property>
646 646
             <child>
647 647
               <object class="GtkButton" id="bClose">
648
-                <property name="label" translatable="yes">gtk-close</property>
648
+                <property name="label">gtk-close</property>
649 649
                 <property name="visible">True</property>
650 650
                 <property name="can_focus">True</property>
651 651
                 <property name="receives_default">True</property>
@@ -679,6 +679,7 @@ This interface allows you to edit only the default endpoint.</property>
679 679
     <property name="copyright" translatable="yes">Copyright 2009 Enrico Tassi &lt;gares@fettunta.org&gt;</property>
680 680
     <property name="comments" translatable="yes">GNOME applet for syncmaildir</property>
681 681
     <property name="website">http://syncmaildir.sourceforge.net</property>
682
+    <property name="website_label" translatable="yes">syncmaildir website</property>
682 683
     <property name="license" translatable="yes">
683 684
 		    GNU GENERAL PUBLIC LICENSE
684 685
 		       Version 3, 29 June 2007

+ 4
- 2
smd-applet.vala View File

@@ -72,7 +72,7 @@ class smdApplet {
72 72
 	Gtk.StatusIcon si = null;
73 73
 	Gtk.Window win = null;
74 74
 	Gtk.Window err_win = null;
75
-	Gtk.Dialog about_win = null;
75
+	Gtk.AboutDialog about_win = null;
76 76
 
77 77
 	// the gconf client handler
78 78
 	GConf.Client gconf = null;
@@ -114,7 +114,7 @@ class smdApplet {
114 114
 		// load widgets and attach callbacks
115 115
 		win = builder.get_object("wPrefs") as Gtk.Window;
116 116
 		err_win = builder.get_object("wError") as Gtk.Window;
117
-		about_win = builder.get_object("wAbout") as Gtk.Dialog;
117
+		about_win = builder.get_object("wAbout") as Gtk.AboutDialog;
118 118
 
119 119
 		var close = builder.get_object("bClosePrefs") as Gtk.Button;
120 120
 		close.clicked += close_prefs_action;
@@ -179,6 +179,8 @@ class smdApplet {
179 179
 		var about = builder.get_object ("miAbout") as Gtk.MenuItem;
180 180
 		about_win.response += (id) => { about_win.hide(); };
181 181
 		about.activate += (b) => { about_win.run(); };
182
+		about_win.set_comments("GNOME applet for syncmaildir version " + 
183
+			SMDConf.VERSION);
182 184
 		var prefs = builder.get_object ("miPrefs") as Gtk.MenuItem;
183 185
 		prefs.activate += (b) => {  win.show(); };
184 186
 

Loading…
Cancel
Save