Revision: 53964
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at December 4, 2011 04:46 by kdaniel
Initial Code
/** * This interface provides access to some native Unity methods. * @author kdaniel * */ public interface UnityLauncherLibrary extends Library { UnityLauncherLibrary INSTANCE = (UnityLauncherLibrary) Native.loadLibrary("libunity", UnityLauncherLibrary.class); /** * Gets an "object" corresponding to particular *.desktop file. * @param id - the id of the launcher * @return a pointer to the object */ public abstract Pointer unity_launcher_entry_get_for_desktop_id (String id); /** * Makes a progress bar visible for particular launcher entry. * @param self - a launcher entry that should or should not display the progress bar * @param visible - true if the progress bar should be made visible. */ public abstract void unity_launcher_entry_set_progress_visible (Pointer self, boolean visible); /** * Actually updates the progress bar in Unity Launcher. * @param self - a launcher entry that should or should not display the progress bar * @param progress - a value from range 0.0 to 1.0. */ public abstract void unity_launcher_entry_set_progress (Pointer self, double progress); }
Initial URL
http://eclipseandlinux.blogspot.com/
Initial Description
This snippet presents how the java library to ubuntu unity launcher could look like.
Initial Title
Unity Launcher Binding
Initial Tags
java, ubuntu
Initial Language
Java