Changeset 5b80b87 for global.c


Ignore:
Timestamp:
Jun 1, 2010, 8:28:15 PM (11 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.7, release-1.8, release-1.9
Children:
b2ea16b
Parents:
e20dd769
Message:
Avoid flagrant violations of layering and just g_object_notify in the setters.

g_object_set_property calls g_object_freeze_notify and
g_object_thaw_notify, so it should Just Work.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • global.c

    re20dd769 r5b80b87  
    341341
    342342void owl_global_set_rightshift(owl_global *g, int i) {
    343   g_object_set(g->gn, "rightshift", i, NULL);
     343  g->rightshift = i;
     344  g_object_notify(G_OBJECT(g->gn), "rightshift");
    344345}
    345346
     
    592593
    593594void owl_global_set_curmsg_vert_offset(owl_global *g, int i) {
    594   g_object_set(g->gn, "curmsg-vert-offset", i, NULL);
     595  g->curmsg_vert_offset = i;
     596  g_object_notify(G_OBJECT(g->gn), "curmsg-vert-offset");
    595597}
    596598
Note: See TracChangeset for help on using the changeset viewer.