In the new xo laptops with touch, we are using
the libabiword and python bindings.
One little issue we have is the first row is too close to the top border,
and is difficult to access with the finger.
One solution is set the view as Print Layout, and hide the rulers.
I can do:
abiword_canvas.view_print_layout()
but can't hide the rulers.
This can be solved with the following path.
Can this change be accepted? I prefer work so close to upstream as possible.
Gonzalo
diff -uNr abiword-20121011/src/wp/ap/gtk/abiwidget.cpp
abiword-20121011.new/src/wp/ap/gtk/abiwidget.cpp
--- abiword-20121011/src/wp/ap/gtk/abiwidget.cpp 2013-08-07
13:07:56.071825233 -0300
+++ abiword-20121011.new/src/wp/ap/gtk/abiwidget.cpp 2013-08-07
13:09:19.149423736 -0300
@@ -1550,6 +1550,14 @@
return res;
}
+extern "C" void
+abi_widget_toggle_rulers(AbiWidget * abi, gboolean visible)
+{
+ AP_UnixFrame * pFrame = (AP_UnixFrame *) abi->priv->m_pFrame;
+ if(pFrame != NULL)
+ pFrame->toggleRuler(visible);
+}
+
extern "C" gboolean
abi_widget_insert_table(AbiWidget * abi, gint32 rows, gint32 cols)
{
diff -uNr abiword-20121011/src/wp/ap/gtk/abiwidget.h
abiword-20121011.new/src/wp/ap/gtk/abiwidget.h
--- abiword-20121011/src/wp/ap/gtk/abiwidget.h 2012-05-25
12:46:20.000000000 -0300
+++ abiword-20121011.new/src/wp/ap/gtk/abiwidget.h 2013-08-07
13:11:52.132842939 -0300
@@ -428,6 +428,9 @@
gboolean abi_widget_edit_header (AbiWidget * w);
gboolean abi_widget_edit_footer (AbiWidget * w);
+ /* rulers methods */
+ void abi_widget_toggle_rulers(AbiWidget * abi, gboolean visible);
+
/* table functions */
gboolean abi_widget_insert_table(AbiWidget * w, gint32 rows, gint32 cols);
gboolean abi_widget_get_mouse_pos(AbiWidget * w, gint32 * x, gint32 * y);
Received on Wed Aug 7 20:25:48 2013
This archive was generated by hypermail 2.1.8 : Wed Aug 07 2013 - 20:25:48 CEST