Sha256: 3f6e1253bf2d0c95fc4b3d698db224f0acc976ed75ed3dbdb1d9a8bdf4360aef
Contents?: true
Size: 1.11 KB
Versions: 12
Compression:
Stored size: 1.11 KB
Contents
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */ /************************************************ rbgdkdisplaymanager.c - $Author: mutoh $ $Date: 2006/06/17 06:59:32 $ Copyright (C) 2002-2006 Ruby-GNOME2 Project Team ************************************************/ #include "global.h" #if GTK_CHECK_VERSION(2,2,0) #define _SELF(obj) GDK_DISPLAY_MANAGER(RVAL2GOBJ(obj)) static VALUE gdkdisplaymanager_get(VALUE self) { return GOBJ2RVAL(gdk_display_manager_get()); } static VALUE gdkdisplaymanager_list_displays(VALUE self) { return GSLIST2ARYF(gdk_display_manager_list_displays(_SELF(self))); } /* Move to Gdk::Display. static VALUE gdkdisplaymanager_get_core_pointer(VALUE self) { return GOBJ2RVAL(gdk_display_get_core_pointer(_SELF(self))); } */ #endif void Init_gtk_gdk_display_manager() { #if GTK_CHECK_VERSION(2,2,0) VALUE gdkDisplayManager = G_DEF_CLASS(GDK_TYPE_DISPLAY_MANAGER, "DisplayManager", mGdk); rb_define_singleton_method(gdkDisplayManager, "get", gdkdisplaymanager_get, 0); rb_define_method(gdkDisplayManager, "displays", gdkdisplaymanager_list_displays, 0); #endif }
Version data entries
12 entries across 12 versions & 1 rubygems