~vcs-imports/beagle/trunk

« back to all changes in this revision

Viewing changes to tools/settings.glade

  • Committer: dbera
  • Date: 2008-07-08 23:52:06 UTC
  • Revision ID: vcs-imports@canonical.com-20080708235206-1axm3o8wmkjxawcq
Add a python script (from CCSM) to grab shortcut keys from user input. Use the script in beagle-settings to get the shortcut key for beagle-search. Store the entire binding string in config instead of separately storing ctrl, alt and the key. Note that CCSM is GPLv2+ so we are including the script as GPLv3. It is possible to create a C# program to do what the script does but I am not taking the risk yet.

Show diffs side-by-side

added added

removed removed

Lines of Context:
242
242
                                <property name="column_spacing">5</property>
243
243
                                <property name="row_spacing">3</property>
244
244
                                <child>
245
 
                                  <widget class="GtkHBox" id="hbox17">
 
245
                                  <widget class="GtkLabel" id="shortcut_label">
246
246
                                    <property name="visible">True</property>
247
 
                                    <property name="spacing">5</property>
248
 
                                    <child>
249
 
                                      <widget class="GtkCheckButton" id="press_ctrl_toggle">
250
 
                                        <property name="visible">True</property>
251
 
                                        <property name="can_focus">True</property>
252
 
                                        <property name="label" translatable="yes">Ctrl</property>
253
 
                                        <property name="use_underline">True</property>
254
 
                                        <property name="response_id">0</property>
255
 
                                        <property name="draw_indicator">True</property>
256
 
                                      </widget>
257
 
                                      <packing>
258
 
                                        <property name="expand">False</property>
259
 
                                        <property name="fill">False</property>
260
 
                                      </packing>
261
 
                                    </child>
262
 
                                    <child>
263
 
                                      <widget class="GtkCheckButton" id="press_alt_toggle">
264
 
                                        <property name="visible">True</property>
265
 
                                        <property name="can_focus">True</property>
266
 
                                        <property name="label" translatable="yes">Alt</property>
267
 
                                        <property name="use_underline">True</property>
268
 
                                        <property name="response_id">0</property>
269
 
                                        <property name="draw_indicator">True</property>
270
 
                                      </widget>
271
 
                                      <packing>
272
 
                                        <property name="expand">False</property>
273
 
                                        <property name="fill">False</property>
274
 
                                        <property name="position">1</property>
275
 
                                      </packing>
276
 
                                    </child>
277
 
                                    <child>
278
 
                                      <widget class="GtkEntry" id="show_search_window_entry">
279
 
                                        <property name="visible">True</property>
280
 
                                        <property name="can_focus">True</property>
281
 
                                        <property name="width_chars">5</property>
282
 
                                      </widget>
283
 
                                      <packing>
284
 
                                        <property name="expand">False</property>
285
 
                                        <property name="fill">False</property>
286
 
                                        <property name="position">2</property>
287
 
                                      </packing>
288
 
                                    </child>
 
247
                                    <property name="xalign">0</property>
 
248
                                    <property name="label" translatable="yes">Display the search window by pressing</property>
289
249
                                  </widget>
290
250
                                  <packing>
291
251
                                    <property name="left_attach">1</property>
292
252
                                    <property name="right_attach">2</property>
293
 
                                    <property name="y_options">GTK_FILL</property>
294
 
                                  </packing>
295
 
                                </child>
296
 
                                <child>
297
 
                                  <widget class="GtkLabel" id="label48">
298
 
                                    <property name="visible">True</property>
299
 
                                    <property name="xalign">0</property>
300
 
                                    <property name="label" translatable="yes">Display the search window by pressing:</property>
301
 
                                  </widget>
302
 
                                  <packing>
303
253
                                    <property name="x_options">GTK_FILL</property>
304
254
                                    <property name="y_options"></property>
305
255
                                    <property name="y_padding">4</property>
306
256
                                  </packing>
307
257
                                </child>
 
258
                                <child>
 
259
                                  <widget class="GtkButton" id="shortcut_button">
 
260
                                    <property name="visible">True</property>
 
261
                                    <property name="can_focus">True</property>
 
262
                                    <property name="receives_default">True</property>
 
263
                                    <property name="label" translatable="yes">Change</property>
 
264
                                    <property name="response_id">0</property>
 
265
                                  </widget>
 
266
                                  <packing>
 
267
                                    <property name="x_options">GTK_FILL</property>
 
268
                                    <property name="y_options"></property>
 
269
                                  </packing>
 
270
                                </child>
308
271
                              </widget>
309
272
                              <packing>
310
273
                                <property name="expand">False</property>
1490
1453
                        <property name="column_spacing">6</property>
1491
1454
                        <property name="row_spacing">6</property>
1492
1455
                        <child>
1493
 
                          <widget class="GtkLabel" id="label60">
1494
 
                            <property name="visible">True</property>
1495
 
                            <property name="xalign">0</property>
1496
 
                            <property name="label" translatable="yes">_Password:</property>
1497
 
                            <property name="use_underline">True</property>
1498
 
                            <property name="mnemonic_widget">password_entry</property>
1499
 
                          </widget>
1500
 
                          <packing>
1501
 
                            <property name="top_attach">2</property>
1502
 
                            <property name="bottom_attach">3</property>
1503
 
                            <property name="x_options">GTK_FILL</property>
1504
 
                            <property name="y_options"></property>
1505
 
                          </packing>
1506
 
                        </child>
1507
 
                        <child>
1508
 
                          <widget class="GtkEntry" id="password_entry">
 
1456
                          <widget class="GtkEntry" id="name_entry">
1509
1457
                            <property name="visible">True</property>
1510
1458
                            <property name="can_focus">True</property>
1511
 
                            <property name="visibility">False</property>
1512
1459
                          </widget>
1513
1460
                          <packing>
1514
1461
                            <property name="left_attach">1</property>
1515
1462
                            <property name="right_attach">2</property>
1516
 
                            <property name="top_attach">2</property>
1517
 
                            <property name="bottom_attach">3</property>
1518
1463
                            <property name="y_options"></property>
1519
1464
                          </packing>
1520
1465
                        </child>
1521
1466
                        <child>
1522
 
                          <widget class="GtkLabel" id="label59">
 
1467
                          <widget class="GtkLabel" id="label62">
1523
1468
                            <property name="visible">True</property>
1524
1469
                            <property name="xalign">0</property>
1525
 
                            <property name="label" translatable="yes">_Hostname:</property>
1526
 
                            <property name="use_underline">True</property>
 
1470
                            <property name="label" translatable="yes">Name:</property>
1527
1471
                          </widget>
1528
1472
                          <packing>
1529
 
                            <property name="top_attach">1</property>
1530
 
                            <property name="bottom_attach">2</property>
1531
1473
                            <property name="x_options">GTK_FILL</property>
1532
1474
                            <property name="y_options"></property>
1533
1475
                          </packing>
1574
1516
                          </packing>
1575
1517
                        </child>
1576
1518
                        <child>
1577
 
                          <widget class="GtkLabel" id="label62">
 
1519
                          <widget class="GtkLabel" id="label59">
1578
1520
                            <property name="visible">True</property>
1579
1521
                            <property name="xalign">0</property>
1580
 
                            <property name="label" translatable="yes">Name:</property>
 
1522
                            <property name="label" translatable="yes">_Hostname:</property>
 
1523
                            <property name="use_underline">True</property>
1581
1524
                          </widget>
1582
1525
                          <packing>
 
1526
                            <property name="top_attach">1</property>
 
1527
                            <property name="bottom_attach">2</property>
1583
1528
                            <property name="x_options">GTK_FILL</property>
1584
1529
                            <property name="y_options"></property>
1585
1530
                          </packing>
1586
1531
                        </child>
1587
1532
                        <child>
1588
 
                          <widget class="GtkEntry" id="name_entry">
 
1533
                          <widget class="GtkEntry" id="password_entry">
1589
1534
                            <property name="visible">True</property>
1590
1535
                            <property name="can_focus">True</property>
 
1536
                            <property name="visibility">False</property>
1591
1537
                          </widget>
1592
1538
                          <packing>
1593
1539
                            <property name="left_attach">1</property>
1594
1540
                            <property name="right_attach">2</property>
 
1541
                            <property name="top_attach">2</property>
 
1542
                            <property name="bottom_attach">3</property>
 
1543
                            <property name="y_options"></property>
 
1544
                          </packing>
 
1545
                        </child>
 
1546
                        <child>
 
1547
                          <widget class="GtkLabel" id="label60">
 
1548
                            <property name="visible">True</property>
 
1549
                            <property name="xalign">0</property>
 
1550
                            <property name="label" translatable="yes">_Password:</property>
 
1551
                            <property name="use_underline">True</property>
 
1552
                            <property name="mnemonic_widget">password_entry</property>
 
1553
                          </widget>
 
1554
                          <packing>
 
1555
                            <property name="top_attach">2</property>
 
1556
                            <property name="bottom_attach">3</property>
 
1557
                            <property name="x_options">GTK_FILL</property>
1595
1558
                            <property name="y_options"></property>
1596
1559
                          </packing>
1597
1560
                        </child>
1726
1689
                          <placeholder/>
1727
1690
                        </child>
1728
1691
                        <child>
1729
 
                          <widget class="GtkRadioButton" id="type_path_radio">
1730
 
                            <property name="visible">True</property>
1731
 
                            <property name="can_focus">True</property>
1732
 
                            <property name="label" translatable="yes">_Folder path</property>
1733
 
                            <property name="use_underline">True</property>
1734
 
                            <property name="focus_on_click">False</property>
1735
 
                            <property name="response_id">0</property>
1736
 
                            <property name="draw_indicator">True</property>
1737
 
                            <signal name="toggled" handler="OnRadioGroupChanged"/>
1738
 
                          </widget>
1739
 
                          <packing>
1740
 
                            <property name="left_attach">1</property>
1741
 
                            <property name="right_attach">2</property>
1742
 
                            <property name="x_options">GTK_FILL</property>
1743
 
                            <property name="y_options"></property>
1744
 
                          </packing>
1745
 
                        </child>
1746
 
                        <child>
1747
 
                          <widget class="GtkRadioButton" id="type_pattern_radio">
1748
 
                            <property name="visible">True</property>
1749
 
                            <property name="can_focus">True</property>
1750
 
                            <property name="label" translatable="yes">Filename _pattern</property>
1751
 
                            <property name="use_underline">True</property>
1752
 
                            <property name="focus_on_click">False</property>
1753
 
                            <property name="response_id">0</property>
1754
 
                            <property name="draw_indicator">True</property>
1755
 
                            <property name="group">type_path_radio</property>
1756
 
                            <signal name="toggled" handler="OnRadioGroupChanged"/>
1757
 
                          </widget>
1758
 
                          <packing>
1759
 
                            <property name="left_attach">1</property>
1760
 
                            <property name="right_attach">2</property>
1761
 
                            <property name="top_attach">1</property>
1762
 
                            <property name="bottom_attach">2</property>
1763
 
                            <property name="x_options">GTK_FILL</property>
1764
 
                            <property name="y_options"></property>
1765
 
                          </packing>
1766
 
                        </child>
1767
 
                        <child>
1768
 
                          <widget class="GtkRadioButton" id="type_mailfolder_radio">
1769
 
                            <property name="visible">True</property>
1770
 
                            <property name="can_focus">True</property>
1771
 
                            <property name="label" translatable="yes">_Mail folder</property>
1772
 
                            <property name="use_underline">True</property>
1773
 
                            <property name="focus_on_click">False</property>
1774
 
                            <property name="response_id">0</property>
1775
 
                            <property name="draw_indicator">True</property>
1776
 
                            <property name="group">type_path_radio</property>
1777
 
                            <signal name="toggled" handler="OnRadioGroupChanged"/>
1778
 
                          </widget>
1779
 
                          <packing>
1780
 
                            <property name="left_attach">1</property>
1781
 
                            <property name="right_attach">2</property>
1782
 
                            <property name="top_attach">2</property>
1783
 
                            <property name="bottom_attach">3</property>
1784
 
                            <property name="x_options">GTK_FILL</property>
1785
 
                            <property name="y_options"></property>
1786
 
                          </packing>
1787
 
                        </child>
1788
 
                        <child>
1789
 
                          <widget class="GtkHBox" id="hbox7">
1790
 
                            <property name="visible">True</property>
1791
 
                            <child>
1792
 
                              <placeholder/>
1793
 
                            </child>
1794
 
                            <child>
1795
 
                              <widget class="GtkEntry" id="value_entry">
1796
 
                                <property name="visible">True</property>
1797
 
                                <property name="can_focus">True</property>
1798
 
                                <property name="has_focus">True</property>
1799
 
                                <property name="activates_default">True</property>
1800
 
                                <property name="width_chars">25</property>
1801
 
                              </widget>
1802
 
                              <packing>
1803
 
                                <property name="expand">False</property>
1804
 
                                <property name="fill">False</property>
1805
 
                                <property name="position">1</property>
1806
 
                              </packing>
1807
 
                            </child>
1808
 
                          </widget>
1809
 
                          <packing>
1810
 
                            <property name="left_attach">1</property>
1811
 
                            <property name="right_attach">2</property>
 
1692
                          <widget class="GtkLabel" id="label25">
 
1693
                            <property name="width_request">80</property>
 
1694
                            <property name="visible">True</property>
 
1695
                            <property name="xalign">0</property>
 
1696
                            <property name="label" translatable="yes">Type:</property>
 
1697
                            <property name="mnemonic_widget">type_path_radio</property>
 
1698
                          </widget>
 
1699
                          <packing>
 
1700
                            <property name="x_options">GTK_FILL</property>
 
1701
                            <property name="y_options"></property>
 
1702
                          </packing>
 
1703
                        </child>
 
1704
                        <child>
 
1705
                          <widget class="GtkLabel" id="value_name_label">
 
1706
                            <property name="visible">True</property>
 
1707
                            <property name="xalign">0</property>
 
1708
                            <property name="label" translatable="yes">P_ath:</property>
 
1709
                            <property name="use_underline">True</property>
 
1710
                            <property name="mnemonic_widget">value_entry</property>
 
1711
                          </widget>
 
1712
                          <packing>
1812
1713
                            <property name="top_attach">3</property>
1813
1714
                            <property name="bottom_attach">4</property>
1814
1715
                            <property name="x_options">GTK_FILL</property>
1815
 
                            <property name="y_options">GTK_FILL</property>
 
1716
                            <property name="y_options"></property>
1816
1717
                          </packing>
1817
1718
                        </child>
1818
1719
                        <child>
1867
1768
                          </packing>
1868
1769
                        </child>
1869
1770
                        <child>
1870
 
                          <widget class="GtkLabel" id="value_name_label">
 
1771
                          <widget class="GtkHBox" id="hbox7">
1871
1772
                            <property name="visible">True</property>
1872
 
                            <property name="xalign">0</property>
1873
 
                            <property name="label" translatable="yes">P_ath:</property>
1874
 
                            <property name="use_underline">True</property>
1875
 
                            <property name="mnemonic_widget">value_entry</property>
 
1773
                            <child>
 
1774
                              <placeholder/>
 
1775
                            </child>
 
1776
                            <child>
 
1777
                              <widget class="GtkEntry" id="value_entry">
 
1778
                                <property name="visible">True</property>
 
1779
                                <property name="can_focus">True</property>
 
1780
                                <property name="has_focus">True</property>
 
1781
                                <property name="activates_default">True</property>
 
1782
                                <property name="width_chars">25</property>
 
1783
                              </widget>
 
1784
                              <packing>
 
1785
                                <property name="expand">False</property>
 
1786
                                <property name="fill">False</property>
 
1787
                                <property name="position">1</property>
 
1788
                              </packing>
 
1789
                            </child>
1876
1790
                          </widget>
1877
1791
                          <packing>
 
1792
                            <property name="left_attach">1</property>
 
1793
                            <property name="right_attach">2</property>
1878
1794
                            <property name="top_attach">3</property>
1879
1795
                            <property name="bottom_attach">4</property>
1880
1796
                            <property name="x_options">GTK_FILL</property>
1881
 
                            <property name="y_options"></property>
1882
 
                          </packing>
1883
 
                        </child>
1884
 
                        <child>
1885
 
                          <widget class="GtkLabel" id="label25">
1886
 
                            <property name="width_request">80</property>
1887
 
                            <property name="visible">True</property>
1888
 
                            <property name="xalign">0</property>
1889
 
                            <property name="label" translatable="yes">Type:</property>
1890
 
                            <property name="mnemonic_widget">type_path_radio</property>
1891
 
                          </widget>
1892
 
                          <packing>
 
1797
                            <property name="y_options">GTK_FILL</property>
 
1798
                          </packing>
 
1799
                        </child>
 
1800
                        <child>
 
1801
                          <widget class="GtkRadioButton" id="type_mailfolder_radio">
 
1802
                            <property name="visible">True</property>
 
1803
                            <property name="can_focus">True</property>
 
1804
                            <property name="label" translatable="yes">_Mail folder</property>
 
1805
                            <property name="use_underline">True</property>
 
1806
                            <property name="focus_on_click">False</property>
 
1807
                            <property name="response_id">0</property>
 
1808
                            <property name="draw_indicator">True</property>
 
1809
                            <property name="group">type_path_radio</property>
 
1810
                            <signal name="toggled" handler="OnRadioGroupChanged"/>
 
1811
                          </widget>
 
1812
                          <packing>
 
1813
                            <property name="left_attach">1</property>
 
1814
                            <property name="right_attach">2</property>
 
1815
                            <property name="top_attach">2</property>
 
1816
                            <property name="bottom_attach">3</property>
 
1817
                            <property name="x_options">GTK_FILL</property>
 
1818
                            <property name="y_options"></property>
 
1819
                          </packing>
 
1820
                        </child>
 
1821
                        <child>
 
1822
                          <widget class="GtkRadioButton" id="type_pattern_radio">
 
1823
                            <property name="visible">True</property>
 
1824
                            <property name="can_focus">True</property>
 
1825
                            <property name="label" translatable="yes">Filename _pattern</property>
 
1826
                            <property name="use_underline">True</property>
 
1827
                            <property name="focus_on_click">False</property>
 
1828
                            <property name="response_id">0</property>
 
1829
                            <property name="draw_indicator">True</property>
 
1830
                            <property name="group">type_path_radio</property>
 
1831
                            <signal name="toggled" handler="OnRadioGroupChanged"/>
 
1832
                          </widget>
 
1833
                          <packing>
 
1834
                            <property name="left_attach">1</property>
 
1835
                            <property name="right_attach">2</property>
 
1836
                            <property name="top_attach">1</property>
 
1837
                            <property name="bottom_attach">2</property>
 
1838
                            <property name="x_options">GTK_FILL</property>
 
1839
                            <property name="y_options"></property>
 
1840
                          </packing>
 
1841
                        </child>
 
1842
                        <child>
 
1843
                          <widget class="GtkRadioButton" id="type_path_radio">
 
1844
                            <property name="visible">True</property>
 
1845
                            <property name="can_focus">True</property>
 
1846
                            <property name="label" translatable="yes">_Folder path</property>
 
1847
                            <property name="use_underline">True</property>
 
1848
                            <property name="focus_on_click">False</property>
 
1849
                            <property name="response_id">0</property>
 
1850
                            <property name="draw_indicator">True</property>
 
1851
                            <signal name="toggled" handler="OnRadioGroupChanged"/>
 
1852
                          </widget>
 
1853
                          <packing>
 
1854
                            <property name="left_attach">1</property>
 
1855
                            <property name="right_attach">2</property>
1893
1856
                            <property name="x_options">GTK_FILL</property>
1894
1857
                            <property name="y_options"></property>
1895
1858
                          </packing>