Renamed Gobject -> GObject (changed case...)

This commit is contained in:
nathan 2018-04-05 13:07:29 +02:00
parent dea819cd28
commit 2b24e8c9cb
3 changed files with 8 additions and 8 deletions

View File

@ -29,16 +29,16 @@ import dorkbox.util.jna.JnaHelper;
* Direct-mapping, See: https://github.com/java-native-access/jna/blob/master/www/DirectMapping.md
*/
public
class Gobject {
class GObject {
static {
try {
NativeLibrary library = JnaHelper.register("gobject-2.0", Gobject.class);
NativeLibrary library = JnaHelper.register("gobject-2.0", GObject.class);
if (library == null) {
LoggerFactory.getLogger(Gobject.class).error("Error loading GObject library, it failed to load.");
LoggerFactory.getLogger(GObject.class).error("Error loading GObject library, it failed to load.");
}
} catch (Throwable e) {
LoggerFactory.getLogger(Gobject.class).error("Error loading GObject library, it failed to load {}", e.getMessage());
LoggerFactory.getLogger(GObject.class).error("Error loading GObject library, it failed to load {}", e.getMessage());
}
}

View File

@ -37,11 +37,11 @@ class GObjectType extends PointerType {
public
void ref() {
Gobject.g_object_ref(getPointer());
GObject.g_object_ref(getPointer());
}
public
void unref() {
Gobject.g_object_unref(getPointer());
GObject.g_object_unref(getPointer());
}
}

View File

@ -101,7 +101,7 @@ class GtkTheme {
Gtk2.gtk_container_add(offscreen, item);
PointerByReference r = new PointerByReference();
Gobject.g_object_get(item, "image", r.getPointer(), null);
GObject.g_object_get(item, "image", r.getPointer(), null);
Pointer imageWidget = r.getValue();
GtkRequisition gtkRequisition = new GtkRequisition();
@ -432,7 +432,7 @@ My ratio is 1.47674, that means I have no scaling at all when there is a 1.5 fac
// NOTE: gtk-icon-sizes is deprecated and ignored since GTK+ 3.10.
// A list of icon sizes. The list is separated by colons, and item has the form: size-name = width , height
Gobject.g_object_get(settings, "gtk-icon-sizes", pointer.getPointer(), null);
GObject.g_object_get(settings, "gtk-icon-sizes", pointer.getPointer(), null);
Pointer value = pointer.getValue();
if (value != null) {