Skip to content

Commit

Permalink
Merge pull request #165 from tokuhirom/show-symbol
Browse files Browse the repository at this point in the history
show input-mode symbol as an icon
  • Loading branch information
tokuhirom authored Jan 17, 2023
2 parents 334f79c + 1e97aa9 commit 30c555a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions ibus-akaza/akaza.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<license>GPL</license>
<author>Tokuhiro Matsuno &lt;[email protected]&gt;</author>
<icon>@DATADIR@/ibus-akaza/akaza.svg</icon>
<icon_prop_key>InputMode</icon_prop_key>
<layout>us</layout>
<layout_variant></layout_variant>
<layout_option></layout_option>
Expand Down
8 changes: 6 additions & 2 deletions ibus-akaza/src/input_mode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,12 @@ pub const INPUT_MODE_KATAKANA: InputMode =
InputMode::new("InputMode.Katakana", 2, "ア", "カタカナ (C-S-K)");
pub const INPUT_MODE_HALFWIDTH_KATAKANA: InputMode =
InputMode::new("InputMode.HalfWidthKatakana", 3, "_ア", "半角カタカナ");
pub const INPUT_MODE_FULLWIDTH_ALNUM: InputMode =
InputMode::new("InputMode.FullWidthAlnum", 4, "A", "全角カタカナ (C-S-l)");
pub const INPUT_MODE_FULLWIDTH_ALNUM: InputMode = InputMode::new(
"InputMode.FullWidthAlnum",
4,
"A",
"全角アルファベット (C-S-l)",
);

const _ALL_INPUT_MODE: [InputMode; 5] = [
INPUT_MODE_ALNUM,
Expand Down
2 changes: 2 additions & 0 deletions ibus-sys/src/property.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ extern "C" {
pub fn ibus_property_set_label(prop: *mut IBusProperty, label: *mut IBusText);

pub fn ibus_property_set_symbol(prop: *mut IBusProperty, symbol: *mut IBusText);

pub fn ibus_property_set_icon(prop: *mut IBusProperty, icon: *const gchar);
}

#[repr(C)]
Expand Down

0 comments on commit 30c555a

Please sign in to comment.