Changeset 8bba1ae


Ignore:
Timestamp:
Jul 14, 2010, 1:32:46 AM (11 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.7, release-1.8, release-1.9
Children:
63d9de9
Parents:
3f11c00
Message:
Rename owl_global_get_curs_typwin to owl_global_get_typwin_window

This is more consistent with us no longer exporting raw WINDOWs.
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    re8128c5 r8bba1ae  
    292292  owl_editwin_set_cbdata(e, data, cleanup);
    293293  owl_editwin_set_callback(e, callback);
    294   owl_global_push_context(&g, OWL_CTX_EDITMULTI, e, "editmulti", owl_global_get_curs_typwin(&g));
     294  owl_global_push_context(&g, OWL_CTX_EDITMULTI, e, "editmulti", owl_global_get_typwin_window(&g));
    295295}
    296296
     
    19021902  owl_editwin_insert_string(tw, line);
    19031903
    1904   owl_global_push_context(&g, OWL_CTX_EDITLINE, tw, "editline", owl_global_get_curs_typwin(&g));
     1904  owl_global_push_context(&g, OWL_CTX_EDITLINE, tw, "editline", owl_global_get_typwin_window(&g));
    19051905  owl_editwin_set_callback(tw, owl_callback_command);
    19061906}
     
    19141914  owl_editwin_set_locktext(tw, line);
    19151915
    1916   owl_global_push_context(&g, OWL_CTX_EDITRESPONSE, tw, "editresponse", owl_global_get_curs_typwin(&g));
     1916  owl_global_push_context(&g, OWL_CTX_EDITRESPONSE, tw, "editresponse", owl_global_get_typwin_window(&g));
    19171917  return tw;
    19181918}
     
    19281928  owl_editwin_set_locktext(tw, line);
    19291929
    1930   owl_global_push_context(&g, OWL_CTX_EDITRESPONSE, tw, "editresponse", owl_global_get_curs_typwin(&g));
     1930  owl_global_push_context(&g, OWL_CTX_EDITRESPONSE, tw, "editresponse", owl_global_get_typwin_window(&g));
    19311931  return tw;
    19321932}
  • global.c

    r0be3efd r8bba1ae  
    298298}
    299299
    300 /* curses windows */
    301 
    302 owl_window *owl_global_get_curs_typwin(const owl_global *g) {
     300/* underlying owl_windows */
     301
     302owl_window *owl_global_get_typwin_window(const owl_global *g) {
    303303  return g->mainpanel.typwin;
    304304}
     
    342342
    343343  if (g->typwin_erase_id) {
    344     g_signal_handler_disconnect(owl_global_get_curs_typwin(g), g->typwin_erase_id);
     344    g_signal_handler_disconnect(owl_global_get_typwin_window(g), g->typwin_erase_id);
    345345    g->typwin_erase_id = 0;
    346346  }
    347347
    348   g->tw = owl_editwin_new(owl_global_get_curs_typwin(g),
     348  g->tw = owl_editwin_new(owl_global_get_typwin_window(g),
    349349                          owl_global_get_typwin_lines(g),
    350350                          g->cols,
     
    361361  if (!g->typwin_erase_id) {
    362362    g->typwin_erase_id =
    363       g_signal_connect(owl_global_get_curs_typwin(g), "redraw", G_CALLBACK(owl_window_erase_cb), NULL);
    364   }
    365   owl_window_dirty(owl_global_get_curs_typwin(g));
     363      g_signal_connect(owl_global_get_typwin_window(g), "redraw", G_CALLBACK(owl_window_erase_cb), NULL);
     364  }
     365  owl_window_dirty(owl_global_get_typwin_window(g));
    366366
    367367  g->tw = NULL;
Note: See TracChangeset for help on using the changeset viewer.