Changeset 5b80b87
- Timestamp:
- Jun 1, 2010, 8:28:15 PM (14 years ago)
- Branches:
- master, release-1.10, release-1.7, release-1.8, release-1.9
- Children:
- b2ea16b
- Parents:
- e20dd769
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
global.c
re20dd769 r5b80b87 341 341 342 342 void 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"); 344 345 } 345 346 … … 592 593 593 594 void 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"); 595 597 } 596 598 -
globalnotifiergen.pl
re20dd769 r5b80b87 62 62 /* normal properties */ 63 63 case PROP_RIGHTSHIFT: 64 notifier->g->rightshift = g_value_get_int(value);64 owl_global_set_rightshift(notifier->g, g_value_get_int(value)); 65 65 break; 66 66 case PROP_CURMSG_VERT_OFFSET: 67 notifier->g->curmsg_vert_offset = g_value_get_int(value);67 owl_global_set_curmsg_vert_offset(notifier->g, g_value_get_int(value)); 68 68 break; 69 69 /* generated from variable listings */ -
stubgen.pl
re20dd769 r5b80b87 18 18 print <<EOT; 19 19 void owl_global_set_${altvarname}_on(owl_global *g) { 20 g_object_set(G_OBJECT(g->gn), "$detailname", TRUE, NULL); 20 owl_variable_set_bool_on(&g->vars, "$altvarname"); 21 g_object_notify(G_OBJECT(g->gn), "$detailname"); 21 22 } 22 23 void owl_global_set_${altvarname}_off(owl_global *g) { 23 g_object_set(G_OBJECT(g->gn), "$detailname", FALSE, NULL); 24 owl_variable_set_bool_off(&g->vars, "$altvarname"); 25 g_object_notify(G_OBJECT(g->gn), "$detailname"); 24 26 } 25 27 int owl_global_is_$altvarname(const owl_global *g) { … … 30 32 print <<EOT; 31 33 void owl_global_set_${altvarname}(owl_global *g, const char *text) { 32 g_object_set(G_OBJECT(g->gn), "$detailname", text, NULL); 34 owl_variable_set_string(&g->vars, "$altvarname", text); 35 g_object_notify(G_OBJECT(g->gn), "$detailname"); 33 36 } 34 37 const char *owl_global_get_$altvarname(const owl_global *g) { … … 39 42 print <<EOT; 40 43 void owl_global_set_${altvarname}(owl_global *g, int n) { 41 g_object_set(G_OBJECT(g->gn), "$detailname", n, NULL); 44 owl_variable_set_int(&g->vars, "$altvarname", n); 45 g_object_notify(G_OBJECT(g->gn), "$detailname"); 42 46 } 43 47 int owl_global_get_$altvarname(const owl_global *g) {
Note: See TracChangeset
for help on using the changeset viewer.