date-selector: remove hack

Seems like Gtk+ fixed the positioning code, and we don't
need this hack anymore.
This commit is contained in:
Georges Basile Stavracas Neto
2016-09-14 16:11:33 -03:00
parent 18c5607d87
commit e9a5a12d5e
-3
View File
@@ -102,9 +102,6 @@ icon_pressed_cb (GcalDateSelector *self,
gtk_entry_get_icon_area (GTK_ENTRY (self), position, &icon_bounds);
/* HACK: seems like the popover is 2.5 px misplaced */
icon_bounds.x += 3;
gtk_popover_set_relative_to (GTK_POPOVER (self->date_selector_popover), GTK_WIDGET (self));
gtk_popover_set_pointing_to (GTK_POPOVER (self->date_selector_popover), &icon_bounds);