Sha256: 26b409863f6ede4f64af2c92d801db1af5f5b1c1c649fe17934452c6068a9720
Contents?: true
Size: 1.14 KB
Versions: 15
Compression:
Stored size: 1.14 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(self) VALUE self; { return GOBJ2RVAL(gdk_display_manager_get()); } static VALUE gdkdisplaymanager_list_displays(self) VALUE self; { return GSLIST2ARYF(gdk_display_manager_list_displays(_SELF(self))); } /* Move to Gdk::Display. static VALUE gdkdisplaymanager_get_core_pointer(self) 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
15 entries across 15 versions & 1 rubygems