Commit cd579e99c5b04efaa6efa4d2ccdb99d2171fa400

Authored by Perry Werneck
1 parent bdae8089

Implementing PF/PA keys on keypad.

Showing 2 changed files with 16 additions and 16 deletions   Show diff stats
keypad/00-right.xml
... ... @@ -35,62 +35,62 @@
35 35  
36 36 <button width='2'>
37 37 <attribute name="label" translatable="no">PF1</attribute>
38   - <attribute name="action"></attribute>
  38 + <attribute name="action">win.pfkey(1)</attribute>
39 39 </button>
40 40  
41 41 <button width='2'>
42 42 <attribute name="label" translatable="no">PF2</attribute>
43   - <attribute name="action"></attribute>
  43 + <attribute name="action">win.pfkey(2)</attribute>
44 44 </button>
45 45  
46 46 <button width='2'>
47 47 <attribute name="label" translatable="no">PF3</attribute>
48   - <attribute name="action"></attribute>
  48 + <attribute name="action">win.pfkey(3)</attribute>
49 49 </button>
50 50  
51 51 <button width='2'>
52 52 <attribute name="label" translatable="no">PF4</attribute>
53   - <attribute name="action"></attribute>
  53 + <attribute name="action">win.pfkey(4)</attribute>
54 54 </button>
55 55  
56 56 <button width='2'>
57 57 <attribute name="label" translatable="no">PF5</attribute>
58   - <attribute name="action"></attribute>
  58 + <attribute name="action">win.pfkey(5)</attribute>
59 59 </button>
60 60  
61 61 <button width='2'>
62 62 <attribute name="label" translatable="no">PF6</attribute>
63   - <attribute name="action"></attribute>
  63 + <attribute name="action">win.pfkey(6)</attribute>
64 64 </button>
65 65  
66 66 <button width='2'>
67 67 <attribute name="label" translatable="no">PF7</attribute>
68   - <attribute name="action"></attribute>
  68 + <attribute name="action">win.pfkey(7)</attribute>
69 69 </button>
70 70  
71 71 <button width='2'>
72 72 <attribute name="label" translatable="no">PF8</attribute>
73   - <attribute name="action"></attribute>
  73 + <attribute name="action">win.pfkey(8)</attribute>
74 74 </button>
75 75  
76 76 <button width='2'>
77 77 <attribute name="label" translatable="no">PF9</attribute>
78   - <attribute name="action"></attribute>
  78 + <attribute name="action">win.pfkey(9)</attribute>
79 79 </button>
80 80  
81 81 <button width='2'>
82 82 <attribute name="label" translatable="no">PF10</attribute>
83   - <attribute name="action"></attribute>
  83 + <attribute name="action">win.pfkey(10)</attribute>
84 84 </button>
85 85  
86 86 <button width='2'>
87 87 <attribute name="label" translatable="no">PF11</attribute>
88   - <attribute name="action"></attribute>
  88 + <attribute name="action">win.pfkey(11)</attribute>
89 89 </button>
90 90  
91 91 <button width='2'>
92 92 <attribute name="label" translatable="no">PF12</attribute>
93   - <attribute name="action"></attribute>
  93 + <attribute name="action">win.pfkey(12)</attribute>
94 94 </button>
95 95  
96 96 \ <button column='2' width='2'>
... ... @@ -120,17 +120,17 @@
120 120  
121 121 <button width='2' column='0'>
122 122 <attribute name="label" translatable="no">PA1</attribute>
123   - <attribute name="action"></attribute>
  123 + <attribute name="action">win.pakey(1)</attribute>
124 124 </button>
125 125  
126 126 <button width='2'>
127 127 <attribute name="label" translatable="no">PA2</attribute>
128   - <attribute name="action"></attribute>
  128 + <attribute name="action">win.pakey(2)</attribute>
129 129 </button>
130 130  
131 131 <button width='2'>
132 132 <attribute name="label" translatable="no">PA3</attribute>
133   - <attribute name="action"></attribute>
  133 + <attribute name="action">win.pakey(3)</attribute>
134 134 </button>
135 135  
136 136 <button width='3'>
... ...
src/objects/keypad/widget.c
... ... @@ -45,7 +45,7 @@
45 45 }
46 46  
47 47 if(element->action && *element->action) {
48   - gtk_actionable_set_action_name(GTK_ACTIONABLE(button),g_intern_string(element->action));
  48 + gtk_actionable_set_detailed_action_name(GTK_ACTIONABLE(button),element->action);
49 49 }
50 50  
51 51 gtk_button_set_relief(GTK_BUTTON(button),GTK_RELIEF_NORMAL);
... ...