~tatokis/alarm-clock/master

« back to all changes in this revision

Viewing changes to src/alarm.c

  • Committer: Tasos Sahanidis
  • Date: 2022-11-04 20:42:30 UTC
  • Revision ID: git-v1:3d1f85f0531183619de11b8c8572da1b482a2b16
Fix bouncing labels in GtkTreeView (2)

Unfortunately, gtk_tree_view_columns_autosize() only takes into
account visible rows, meaning that the text would get cut off
if it was not visible at the time of the adjustment.

This changes the time column size from fixed to grow only (undoing the
performance improvements). It still calls gtk_tree_view_columns_autosize()
to shrink the time column when required.

Additionally, only changed and active rows are updated now.

Show diffs side-by-side

added added

removed removed

Lines of Context:
305
305
    g_value_transform(value, &strval);
306
306
    g_debug("Alarm(%p) #%d: set %s=%s", alarm, alarm->id, pspec->name, g_value_get_string(&strval));
307
307
 
 
308
    alarm->changed = TRUE; // Do this for all properties for now (not too much overhead, anyway)
 
309
 
308
310
    switch(prop_id) {
309
311
    case PROP_ID:
310
312
        // FIXME: This should be int64 to account for -1