Ticket #4595: add_toggle_ruler.diff

File add_toggle_ruler.diff, 1.3 KB (added by godiard, 8 years ago)
  • src/wp/ap/gtk/abiwidget.cpp

    diff -uNr abiword-20121011/src/wp/ap/gtk/abiwidget.cpp abiword-20121011.new/src/wp/ap/gtk/abiwidget.cpp
    old new  
    15501550        return res;
    15511551}
    15521552
     1553extern "C" void
     1554abi_widget_toggle_rulers(AbiWidget * abi, gboolean visible)
     1555{
     1556        AP_UnixFrame * pFrame = (AP_UnixFrame *) abi->priv->m_pFrame;
     1557        if(pFrame != NULL)
     1558            pFrame->toggleRuler(visible);
     1559}
     1560
    15531561extern "C" gboolean
    15541562abi_widget_insert_table(AbiWidget * abi, gint32 rows, gint32 cols)
    15551563{
  • src/wp/ap/gtk/abiwidget.h

    diff -uNr abiword-20121011/src/wp/ap/gtk/abiwidget.h abiword-20121011.new/src/wp/ap/gtk/abiwidget.h
    old new  
    428428  gboolean abi_widget_edit_header (AbiWidget * w);
    429429  gboolean abi_widget_edit_footer (AbiWidget * w);
    430430
     431  /* rulers methods */
     432  void abi_widget_toggle_rulers(AbiWidget * abi, gboolean visible);
     433
    431434  /* table functions */
    432435  gboolean abi_widget_insert_table(AbiWidget * w, gint32 rows, gint32 cols);
    433436  gboolean abi_widget_get_mouse_pos(AbiWidget * w, gint32 * x, gint32 * y);