Skip to content

Commit

Permalink
flat style; filter
Browse files Browse the repository at this point in the history
  • Loading branch information
artemanufrij committed Nov 19, 2017
1 parent 6dab0cc commit 2bfb7a1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
Binary file modified Screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions data/com.github.artemanufrij.hashit.appdata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@
</screenshot>
</screenshots>
<releases>
<release version="0.1.5" date="2017-11-5">
<description>
<p>New:</p>
<ul>
<li>Flat style</li>
<li>Icon</li>
</ul>
</description>
</release>
<release version="0.1.5" date="2017-11-5">
<description>
<p>Translation:</p>
Expand Down
6 changes: 6 additions & 0 deletions src/MainWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ namespace HashIt {
headerbar = new Gtk.HeaderBar ();
headerbar.show_close_button = true;
headerbar.title = _("Hash It");
headerbar.get_style_context ().add_class("flat");
this.set_titlebar (headerbar);

open_file = new Gtk.Button.from_icon_name ("document-open", Gtk.IconSize.LARGE_TOOLBAR);
Expand Down Expand Up @@ -199,6 +200,11 @@ namespace HashIt {
_("_Cancel"), Gtk.ResponseType.CANCEL,
_("_Open"), Gtk.ResponseType.ACCEPT);

var filter = new Gtk.FileFilter ();
filter.set_filter_name (_("All files"));
filter.add_pattern ("*");
file.add_filter (filter);

if (file.run () == Gtk.ResponseType.ACCEPT) {
selected_file = file.get_file ();
debug (file.get_filename ());
Expand Down

0 comments on commit 2bfb7a1

Please sign in to comment.