Renamed Gobject -> GObject (changed case...)
This commit is contained in:
parent
dea819cd28
commit
2b24e8c9cb
@ -29,16 +29,16 @@ import dorkbox.util.jna.JnaHelper;
|
|||||||
* Direct-mapping, See: https://github.com/java-native-access/jna/blob/master/www/DirectMapping.md
|
* Direct-mapping, See: https://github.com/java-native-access/jna/blob/master/www/DirectMapping.md
|
||||||
*/
|
*/
|
||||||
public
|
public
|
||||||
class Gobject {
|
class GObject {
|
||||||
|
|
||||||
static {
|
static {
|
||||||
try {
|
try {
|
||||||
NativeLibrary library = JnaHelper.register("gobject-2.0", Gobject.class);
|
NativeLibrary library = JnaHelper.register("gobject-2.0", GObject.class);
|
||||||
if (library == null) {
|
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) {
|
} 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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -37,11 +37,11 @@ class GObjectType extends PointerType {
|
|||||||
|
|
||||||
public
|
public
|
||||||
void ref() {
|
void ref() {
|
||||||
Gobject.g_object_ref(getPointer());
|
GObject.g_object_ref(getPointer());
|
||||||
}
|
}
|
||||||
|
|
||||||
public
|
public
|
||||||
void unref() {
|
void unref() {
|
||||||
Gobject.g_object_unref(getPointer());
|
GObject.g_object_unref(getPointer());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -101,7 +101,7 @@ class GtkTheme {
|
|||||||
Gtk2.gtk_container_add(offscreen, item);
|
Gtk2.gtk_container_add(offscreen, item);
|
||||||
|
|
||||||
PointerByReference r = new PointerByReference();
|
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();
|
Pointer imageWidget = r.getValue();
|
||||||
GtkRequisition gtkRequisition = new GtkRequisition();
|
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.
|
// 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
|
// 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();
|
Pointer value = pointer.getValue();
|
||||||
if (value != null) {
|
if (value != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user