Changeset ea7daa8


Ignore:
Timestamp:
Jun 12, 2010, 3:29:01 PM (14 years ago)
Author:
David Benjamin <davidben@mit.edu>
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)
Message:
Remove the global notifier
Files:
2 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • Makefile.am

    r8f9a044 rea7daa8  
    5656BASE_SRCS = $(CODELIST_SRCS) $(NORMAL_SRCS)
    5757
    58 GEN_C = varstubs.c perlglue.c globalnotifier.c
     58GEN_C = varstubs.c perlglue.c
    5959GEN_H = owl_prototypes.h
    6060
     
    7676        $(AM_V_GEN)perl $< $(sort $(filter-out $<,$+)) > $@
    7777
    78 globalnotifier.c: globalnotifiergen.pl variable.c
    79         $(AM_V_GEN)perl $< $(sort $(filter-out $<,$+)) > $@
    80 
    8178owl_prototypes.h.new: codelist.pl varstubs.c $(CODELIST_SRCS)
    8279        $(AM_V_GEN)perl $< $(sort $(filter-out $<,$+)) > $@
  • cmd.c

    r044f19f rea7daa8  
    44#include <unistd.h>
    55#include "owl.h"
    6 #include "globalnotifier.h"
    76
    87extern const owl_cmd commands_to_init[];
  • doc/owl-window.txt

    r4eee948 rea7daa8  
    165165  init/cleanup/embed-in-struct.
    166166
    167 - There is a generated GObject that emits signals for all variables
    168   and random other properties. It's currently not used much. It may be
    169   useful later, or not. I think there is some value in having change
    170   notifications for all our variables, although the initial port of
    171   the mainwin and sepbar turned out not to use it.
    172 
    173167- The editwin and a few others are strange and keep track of signal
    174168  ids. This is somewhat a side effect of us not using GObject
  • global.c

    r044f19f rea7daa8  
    88#include <time.h>
    99#include "owl.h"
    10 #include "globalnotifier.h"
    1110
    1211#ifndef MAXHOSTNAMELEN
     
    2019  char hostname[MAXHOSTNAMELEN];
    2120  char *cd;
    22   g->gn = owl_global_notifier_new(g);
    2321
    2422  g->malloced=0;
     
    241239void owl_global_set_curmsg(owl_global *g, int i) {
    242240  g->curmsg=i;
    243   g_object_notify(G_OBJECT(g->gn), "curmsg");
    244241  /* we will reset the vertical offset from here */
    245242  /* we might want to move this out to the functions later */
     
    340337void owl_global_set_rightshift(owl_global *g, int i) {
    341338  g->rightshift = i;
    342   g_object_notify(G_OBJECT(g->gn), "rightshift");
    343 
    344339  owl_mainwin_redisplay(owl_global_get_mainwin(g));
    345340}
     
    563558void owl_global_set_curmsg_vert_offset(owl_global *g, int i) {
    564559  g->curmsg_vert_offset = i;
    565   g_object_notify(G_OBJECT(g->gn), "curmsg-vert-offset");
    566560}
    567561
  • owl.c

    r044f19f rea7daa8  
    2121#include <locale.h>
    2222#include "owl.h"
    23 #include "globalnotifier.h"
    2423
    2524
  • owl.h

    r07b59ea rea7daa8  
    566566
    567567typedef struct _owl_global {
    568   OwlGlobalNotifier *gn;
    569568  owl_mainwin mw;
    570569  owl_popwin pw;
  • stubgen.pl

    r5b80b87 rea7daa8  
    1919void owl_global_set_${altvarname}_on(owl_global *g) {
    2020  owl_variable_set_bool_on(&g->vars, "$altvarname");
    21   g_object_notify(G_OBJECT(g->gn), "$detailname");
    2221}
    2322void owl_global_set_${altvarname}_off(owl_global *g) {
    2423  owl_variable_set_bool_off(&g->vars, "$altvarname");
    25   g_object_notify(G_OBJECT(g->gn), "$detailname");
    2624}
    2725int owl_global_is_$altvarname(const owl_global *g) {
     
    3331void owl_global_set_${altvarname}(owl_global *g, const char *text) {
    3432  owl_variable_set_string(&g->vars, "$altvarname", text);
    35   g_object_notify(G_OBJECT(g->gn), "$detailname");
    3633}
    3734const char *owl_global_get_$altvarname(const owl_global *g) {
     
    4340void owl_global_set_${altvarname}(owl_global *g, int n) {
    4441  owl_variable_set_int(&g->vars, "$altvarname", n);
    45   g_object_notify(G_OBJECT(g->gn), "$detailname");
    4642}
    4743int owl_global_get_$altvarname(const owl_global *g) {
Note: See TracChangeset for help on using the changeset viewer.