clipboard_get_timestamp



Once code starts looking like an #ifdef soup it might be time to introduce
a method on, say, the window object.

IMHO, of course.

Morten



#ifdef GDK_WINDOWING_X11
      if (GDK_IS_X11_WINDOW (window))
	{
	  timestamp = gdk_x11_get_server_time (gtk_widget_get_window
(clipboard_widget));
	}
      else
#endif
#if defined GDK_WINDOWING_WIN32
      if (GDK_IS_WIN32_WINDOW (window))
	{
	  timestamp = GetMessageTime ();
	}
      else
#endif
#if defined GDK_WINDOWING_BROADWAY
      if (GDK_IS_BROADWAY_WINDOW (window))
	{
	  timestamp = gdk_broadway_get_last_seen_time (window);
	}
      else
#endif


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]