diff options
author | Dave Davenport <DaveDavenport@users.noreply.github.com> | 2016-10-08 18:57:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-08 18:57:59 +0200 |
commit | 3c64507f02b36a541c9893dd21b0a45e19a8ba9e (patch) | |
tree | 6d91f23333937d98483dcf8d0f8898ec70888f43 /test | |
parent | 0da0587087129825f27df4a6229383be892b3bf0 (diff) |
Qtk widgets (#478)
* Initial support for using boxes for packing widgets.
* Make CapiTalIzation more consistent
* Move widgets to subdirectory
* Removed nolonger needed resize function.
* Small cleanup
* When switching mode, reuse view, don't rebuild it. Reduces artifacts.
* Needs cleaning up.
* Remove separate prompt argument, use display_name
* Simplify run-switcher code.
* Add notion of parents, and trigger parent update on resize.
* Use widget_get_height wrapper, avoid crash
* Size separator width based on height. (indent)
* TODO add margin to box.
* First draft version of listview.
* Add scrollbar to listview widget
* Add padding option to box
* Move access to global config out of widget. (1/2 done)
* Remove printf
* Make listview not access global config
* Add click support, implement on mode buttons.
* Re-introduce mouse handling on list-view.
* TODO draggin on scrollbar.
* Fix multi-select
* Fix warnings
* Fix include
Diffstat (limited to 'test')
-rw-r--r-- | test/textbox-test.c | 6 | ||||
-rw-r--r-- | test/widget-test.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/test/textbox-test.c b/test/textbox-test.c index cb679695..5383e8e9 100644 --- a/test/textbox-test.c +++ b/test/textbox-test.c @@ -7,7 +7,7 @@ #include <history.h> #include <string.h> #include <xcb/xcb.h> -#include <textbox.h> +#include <widgets/textbox.h> #include <rofi.h> #include <cairo-xlib.h> #include "settings.h" @@ -70,10 +70,10 @@ int main ( G_GNUC_UNUSED int argc, G_GNUC_UNUSED char **argv ) textbox_cursor_end ( box ); TASSERT ( box->cursor == 6 ); - TASSERT ( textbox_get_width ( box ) > 0 ); + TASSERT ( widget_get_width ( WIDGET ( box ) ) > 0 ); TASSERT ( textbox_get_height ( box ) > 0 ); - TASSERT ( textbox_get_width ( box ) >= textbox_get_font_width ( box ) ); + TASSERT ( widget_get_width ( WIDGET ( box ) ) >= textbox_get_font_width ( box ) ); TASSERT ( textbox_get_height ( box ) >= textbox_get_font_height ( box ) ); TASSERT ( textbox_get_estimated_char_width ( ) > 0 ); diff --git a/test/widget-test.c b/test/widget-test.c index c49ec690..d500c414 100644 --- a/test/widget-test.c +++ b/test/widget-test.c @@ -5,7 +5,7 @@ #include <assert.h> #include <glib.h> #include <string.h> -#include <widget.h> +#include <widgets/widget.h> unsigned int test =0; #define TASSERT( a ) { \ assert ( a ); \ @@ -16,7 +16,7 @@ unsigned int test =0; int main ( G_GNUC_UNUSED int argc, G_GNUC_UNUSED char **argv ) { // box 20 by 40 - Widget widget = { 10,10,20,40 }; + widget widget = { 10,10,20,40 }; // Left of box TASSERT ( widget_intersect ( &widget, 0, 0) == 0 ); |