gcal-days-grid: fixed cell order in:marked signal
The ordering of the cell is done here to make it transparent t0o gcal-day-view and gcal-week-view.
This commit is contained in:
@@ -854,6 +854,8 @@ gcal_days_grid_button_release_event (GtkWidget *widget,
|
||||
gint height_block;
|
||||
gint left_pad;
|
||||
|
||||
gint cell_temp;
|
||||
|
||||
priv = gcal_days_grid_get_instance_private (GCAL_DAYS_GRID (widget));
|
||||
|
||||
if (priv->clicked_cell == -1)
|
||||
@@ -879,6 +881,13 @@ gcal_days_grid_button_release_event (GtkWidget *widget,
|
||||
|
||||
gtk_widget_queue_draw (widget);
|
||||
|
||||
if (priv->start_mark_cell > priv->end_mark_cell)
|
||||
{
|
||||
cell_temp = priv->end_mark_cell;
|
||||
priv->end_mark_cell = priv->start_mark_cell;
|
||||
priv->start_mark_cell = cell_temp;
|
||||
}
|
||||
|
||||
g_signal_emit (GCAL_DAYS_GRID (widget),
|
||||
signals[MARKED], 0,
|
||||
priv->start_mark_cell, priv->end_mark_cell);
|
||||
|
||||
Reference in New Issue
Block a user