Skip to content

Commit

Permalink
Updated dbusmenu & changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
rilian-la-te committed May 8, 2015
1 parent bdd4304 commit 3534ced
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 19 deletions.
2 changes: 1 addition & 1 deletion app/application.vala
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ namespace ValaPanel
{
var actions = string.joinv(" ",list_actions());
cmdl.printerr(_("%s: invalid command - %s. Doing nothing.\nValid commands: %s\n"),
GLib.Environment.get_application_name(),actions);
GLib.Environment.get_application_name(),command,actions);
}
}
activate();
Expand Down
25 changes: 8 additions & 17 deletions app/runner.vala
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,11 @@ namespace ValaPanel
private Entry main_entry;
[GtkChild (name="terminal-button")]
private ToggleButton terminal_button;
//~ [GtkChild (name="main-box", internal=true)]
//~ private Box main_box;
[GtkChild (name="main-box", internal=true)]
private Box main_box;

private CompletionThread? thread;
private Thread<void*> thread_ref;

private GLib.List<GLib.AppInfo> apps_list;
private AppInfoMonitor monitor;
private bool cached;
private App app
{
Expand All @@ -135,29 +132,23 @@ namespace ValaPanel
}
construct
{
//~ PanelCSS.apply_from_resource(this,"/org/vala-panel/app/style.css","-panel-run-dialog");
//~ main_box.get_style_context().add_class("-panel-run-header");
PanelCSS.apply_from_resource(this,"/org/vala-panel/app/style.css","-panel-run-dialog");
main_box.get_style_context().add_class("-panel-run-header");
//FIXME: Implement cache
cached = false;
this.set_visual(this.get_screen().get_rgba_visual());
this.set_default_response(Gtk.ResponseType.OK);
this.set_keep_above(true);
thread = null;
monitor = AppInfoMonitor.get();
apps_list = AppInfo.get_all();
monitor.changed.connect(()=>
{
apps_list = AppInfo.get_all();
});
}

private unowned DesktopAppInfo? match_app_by_exec(string exec)
private DesktopAppInfo? match_app_by_exec(string exec)
{
unowned DesktopAppInfo? ret = null;
DesktopAppInfo? ret = null;
string exec_path = GLib.Environment.find_program_in_path(exec);
if (exec_path == null)
return null;
foreach(unowned AppInfo app in apps_list)
foreach(unowned AppInfo app in AppInfo.get_all())
{
var app_exec = app.get_executable();
if (app_exec == null)
Expand Down Expand Up @@ -251,7 +242,7 @@ namespace ValaPanel
[GtkCallback]
private void on_entry_changed()
{
unowned DesktopAppInfo? app = null;
DesktopAppInfo? app = null;
if (main_entry.get_text()!=null && main_entry.get_text() != "")
app = match_app_by_exec(main_entry.get_text());
if (app != null)
Expand Down
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
vala-panel (0.3.4-1) vivid; urgency=medium

* New upstream release.

-- Konstantin <[email protected]> Fri, 8 May 2015 18:10:43 +0600

vala-panel (0.3.3-1) vivid; urgency=medium

* New upstream release.
Expand Down
2 changes: 1 addition & 1 deletion lib/dbusmenu
Submodule dbusmenu updated from 0ef852 to 84fe1e

0 comments on commit 3534ced

Please sign in to comment.