Changeset ea7daa8
- Timestamp:
- Jun 12, 2010, 3:29:01 PM (14 years ago)
- Branches:
- master, release-1.10, release-1.7, release-1.8, release-1.9
- Children:
- 1aa4cc4
- Parents:
- 044f19f
- git-author:
- David Benjamin <davidben@mit.edu> (06/12/10 01:53:25)
- git-committer:
- David Benjamin <davidben@mit.edu> (06/12/10 15:29:01)
- Files:
-
- 2 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile.am
r8f9a044 rea7daa8 56 56 BASE_SRCS = $(CODELIST_SRCS) $(NORMAL_SRCS) 57 57 58 GEN_C = varstubs.c perlglue.c globalnotifier.c58 GEN_C = varstubs.c perlglue.c 59 59 GEN_H = owl_prototypes.h 60 60 … … 76 76 $(AM_V_GEN)perl $< $(sort $(filter-out $<,$+)) > $@ 77 77 78 globalnotifier.c: globalnotifiergen.pl variable.c79 $(AM_V_GEN)perl $< $(sort $(filter-out $<,$+)) > $@80 81 78 owl_prototypes.h.new: codelist.pl varstubs.c $(CODELIST_SRCS) 82 79 $(AM_V_GEN)perl $< $(sort $(filter-out $<,$+)) > $@ -
cmd.c
r044f19f rea7daa8 4 4 #include <unistd.h> 5 5 #include "owl.h" 6 #include "globalnotifier.h"7 6 8 7 extern const owl_cmd commands_to_init[]; -
doc/owl-window.txt
r4eee948 rea7daa8 165 165 init/cleanup/embed-in-struct. 166 166 167 - There is a generated GObject that emits signals for all variables168 and random other properties. It's currently not used much. It may be169 useful later, or not. I think there is some value in having change170 notifications for all our variables, although the initial port of171 the mainwin and sepbar turned out not to use it.172 173 167 - The editwin and a few others are strange and keep track of signal 174 168 ids. This is somewhat a side effect of us not using GObject -
global.c
r044f19f rea7daa8 8 8 #include <time.h> 9 9 #include "owl.h" 10 #include "globalnotifier.h"11 10 12 11 #ifndef MAXHOSTNAMELEN … … 20 19 char hostname[MAXHOSTNAMELEN]; 21 20 char *cd; 22 g->gn = owl_global_notifier_new(g);23 21 24 22 g->malloced=0; … … 241 239 void owl_global_set_curmsg(owl_global *g, int i) { 242 240 g->curmsg=i; 243 g_object_notify(G_OBJECT(g->gn), "curmsg");244 241 /* we will reset the vertical offset from here */ 245 242 /* we might want to move this out to the functions later */ … … 340 337 void owl_global_set_rightshift(owl_global *g, int i) { 341 338 g->rightshift = i; 342 g_object_notify(G_OBJECT(g->gn), "rightshift");343 344 339 owl_mainwin_redisplay(owl_global_get_mainwin(g)); 345 340 } … … 563 558 void owl_global_set_curmsg_vert_offset(owl_global *g, int i) { 564 559 g->curmsg_vert_offset = i; 565 g_object_notify(G_OBJECT(g->gn), "curmsg-vert-offset");566 560 } 567 561 -
owl.c
r044f19f rea7daa8 21 21 #include <locale.h> 22 22 #include "owl.h" 23 #include "globalnotifier.h"24 23 25 24 -
owl.h
r07b59ea rea7daa8 566 566 567 567 typedef struct _owl_global { 568 OwlGlobalNotifier *gn;569 568 owl_mainwin mw; 570 569 owl_popwin pw; -
stubgen.pl
r5b80b87 rea7daa8 19 19 void owl_global_set_${altvarname}_on(owl_global *g) { 20 20 owl_variable_set_bool_on(&g->vars, "$altvarname"); 21 g_object_notify(G_OBJECT(g->gn), "$detailname");22 21 } 23 22 void owl_global_set_${altvarname}_off(owl_global *g) { 24 23 owl_variable_set_bool_off(&g->vars, "$altvarname"); 25 g_object_notify(G_OBJECT(g->gn), "$detailname");26 24 } 27 25 int owl_global_is_$altvarname(const owl_global *g) { … … 33 31 void owl_global_set_${altvarname}(owl_global *g, const char *text) { 34 32 owl_variable_set_string(&g->vars, "$altvarname", text); 35 g_object_notify(G_OBJECT(g->gn), "$detailname");36 33 } 37 34 const char *owl_global_get_$altvarname(const owl_global *g) { … … 43 40 void owl_global_set_${altvarname}(owl_global *g, int n) { 44 41 owl_variable_set_int(&g->vars, "$altvarname", n); 45 g_object_notify(G_OBJECT(g->gn), "$detailname");46 42 } 47 43 int owl_global_get_$altvarname(const owl_global *g) {
Note: See TracChangeset
for help on using the changeset viewer.