Sophie

Sophie

distrib > Mageia > 2 > i586 > media > core-release-src > by-pkgid > 149e70819dc55136798bc297d60472f0 > files > 1

perl-Gtk2-NotificationBubble-0.01-13.mga2.src.rpm

--- Gtk2-NotificationBubble-0.01/eggnotificationbubble.c.triangle	2005-08-19 17:32:41.000000000 +0200
+++ Gtk2-NotificationBubble-0.01/eggnotificationbubble.c	2005-08-24 17:14:58.000000000 +0200
@@ -449,10 +449,13 @@
   monitor_num = gdk_screen_get_monitor_at_window (screen, widget->window);
   gdk_screen_get_monitor_geometry (screen, monitor_num, &monitor);
 
-  if ((x + w) > monitor.x + monitor.width)
-    x -= (x + w) - (monitor.x + monitor.width);
-  else if (x < monitor.x)
+  if ((x + w) > monitor.x + monitor.width) {
+    gint offset = (x + w) - (monitor.x + monitor.width);
+    triangle_offset += offset;
+    x -= offset;
+  } else if (x < monitor.x) {
     x = monitor.x;
+  }
 
   if ((y + h + widget->allocation.height + 4) > monitor.y + monitor.height)
     {