Skip to content

Commit

Permalink
Drop icon resource and use any available info icon from the system th…
Browse files Browse the repository at this point in the history
…eme instead
  • Loading branch information
ztefn committed Sep 4, 2024
1 parent eb2744b commit c77d9f5
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
3 changes: 0 additions & 3 deletions data/com.github.ztefn.haguichi.gresource.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,4 @@
<file preprocess="xml-stripblanks">ui/widgets/sidebar-page.ui</file>
<file preprocess="xml-stripblanks">ui/window.ui</file>
</gresource>
<gresource prefix="/com/github/ztefn/haguichi/icons/scalable/actions">
<file preprocess="xml-stripblanks">info-symbolic.svg</file>
</gresource>
</gresources>
4 changes: 0 additions & 4 deletions data/icons/resource/info-symbolic.svg

This file was deleted.

2 changes: 1 addition & 1 deletion data/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ test('Validate schema file', compile_schemas,

resources = gnome.compile_resources(app_name.to_lower() + '-resources', app_id + '.gresource.xml',
c_name: app_name.to_lower(),
source_dir: ['icons/resource', 'stylesheets']
source_dir: ['stylesheets']
)

subdir('icons')
3 changes: 1 addition & 2 deletions data/ui/widgets/command-entry-row.ui
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
<interface>
<template class="HaguichiCommandEntryRow" parent="AdwEntryRow">
<child type="suffix">
<object class="GtkMenuButton">
<property name="icon-name">info-symbolic</property>
<object class="GtkMenuButton" id="menu_button">
<property name="tooltip-text" translatable="yes">Command Variables</property>
<property name="valign">center</property>
<property name="popover">
Expand Down
11 changes: 11 additions & 0 deletions src/widgets/command-entry-row.vala
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
namespace Haguichi {
[GtkTemplate (ui = "/com/github/ztefn/haguichi/ui/widgets/command-entry-row.ui")]
public class CommandEntryRow : Adw.EntryRow {
[GtkChild]
public unowned Gtk.MenuButton menu_button;

[GtkChild]
public unowned CommandVariableBox address_var;
[GtkChild]
Expand All @@ -25,5 +28,13 @@ namespace Haguichi {
public unowned CommandVariableBox file_manager_var;
[GtkChild]
public unowned CommandVariableBox remote_desktop_var;

construct {
menu_button.icon_name = Utils.get_available_theme_icon ({
"info-symbolic",
"help-info-symbolic",
"help-about-symbolic"
});
}
}
}

0 comments on commit c77d9f5

Please sign in to comment.