Logo Search packages:      
Sourcecode: libnotify version File versions  Download package

void notify_notification_set_geometry_hints ( NotifyNotification *  notification,
GdkScreen *  screen,
gint  x,
gint  y 
)

notify_notification_set_geometry_hints: : The notification. : The GdkScreen the notification should appear on. : The X coordinate to point to. : The Y coordinate to point to.

Sets the geometry hints on the notification. This sets the screen the notification should appear on and the X, Y coordinates it should point to, if the particular notification supports X, Y hints.

Since: 0.4.1

Definition at line 652 of file notification.c.

References notify_notification_set_hint_int32(), and notify_notification_set_hint_string().

{
      char *display_name;

      g_return_if_fail(notification != NULL);
      g_return_if_fail(NOTIFY_IS_NOTIFICATION(notification));
      g_return_if_fail(screen != NULL);
      g_return_if_fail(GDK_IS_SCREEN(screen));

      notify_notification_set_hint_int32(notification, "x", x);
      notify_notification_set_hint_int32(notification, "y", y);

      display_name = gdk_screen_make_display_name(screen);
      notify_notification_set_hint_string(notification, "xdisplay", display_name);
      g_free(display_name);
}


Generated by  Doxygen 1.6.0   Back to index