aboutsummaryrefslogtreecommitdiff
path: root/examples
AgeCommit message (Collapse)Author
2011-11-14Merged setplaceholdertext.patchTomasz Sterna
2010-06-24Add missing CFLAGS for several examplesClaudio Saavedra
2010-06-21Do not add items that don't have a icon to the touchselector examplesClaudio Saavedra
The newly added hildon stock items don't have a corresponding icon, so they shouldn't be added to the touchselector in these examples.
2010-01-21Changed touch selector examples to choose between single and multipleXabier Rodriguez Calvar
2010-01-15Fixed compilation warnings about live searchXabier Rodriguez Calvar
2010-01-14Initial changes to support HildonLiveSearch used with other widgetsClaudio Saavedra
This will allow GtkIconView users to plug a HildonLiveSearch together with it. Also, add a new example of this.
2009-12-15Rename hildon_gtk_window_take_screenshot_then_wait()Claudio Saavedra
To hildon_gtk_take_screenshot_sync(), for sake of simplicity. Also, added to the docs.
2009-12-15hildon_gtk_window_take_screenshot_then_wait()Adam Endrodi
Enhance the horrible take screenshot interface to block the client until it's complete. The test program may not build out of the box. Requires modified hildon-desktop from http://maemo.gitorious.org/fremantle-hildon-desktop/hildon-desktop/commits/screenshot. Signed-off-by: Claudio Saavedra <csaavedra@igalia.com>
2009-12-14Fix compilation warningsAlberto Garcia
2009-12-09No need to hide the live search widget explicitlyClaudio Saavedra
2009-11-17Rename filter function to visible functionXavier Claessens
This matches better the terminology in GtkTreeModelFilter. Also, slightly improve the documentation. Signed-off-by: Claudio Saavedra <csaavedra@igalia.com>
2009-11-16Fix leak in HildonLiveSearch exampleAlberto Garcia
2009-11-16Add an example for HildonLiveSearchAlberto Garcia
2009-11-16Revert "New HildonLiveSearch widget and search support for touch selectors"Claudio Saavedra
This reverts commit 6f8d33bee251c0d75f65599757efabf02682e6ff. We don't want squashed commits. Changes from the live-search will be rebased on top of master instead.
2009-11-11New HildonLiveSearch widget and search support for touch selectorsAlberto Garcia
Fixes: NB#142952 (Search support for lists)
2009-10-15Unrefed model in touch selector normal mode exampleXabier Rodriguez Calvar
2009-10-15Unrefed model in touch selector multicells exampleXabier Rodriguez Calvar
2009-10-15Unrefed store_icons in HildonTouchSelector exampleXabier Rodriguez Calvar
2009-10-06Plug a leak in the normal mode touch selector exampleClaudio Saavedra
2009-10-01Add hildon_banner_show_custom_widget()Claudio Saavedra
* doc/hildon-sections.txt: Add hildon_banner_show_custom_widget() * examples/hildon-banner-example.c: (area_expose), (custom_widget_new), (on_progress_idle): New example showing a custom widget. * hildon/hildon-banner.c: * hildon/hildon-banner.h: Add hildon_banner_show_custom_widget(). Fixes: NB#140140 (Allow custom widgets to be used in banners)
2009-09-18Do not return gboolean in GtkButton:clicked signal handlersClaudio Saavedra
* examples/hildon-banner-example.c: (on_information_clicked), (on_animation_clicked), (on_progress_clicked): GtkButton:clicked handlers do not return gboolean. Fix this.
2009-08-24Revert "Make HildonCheckButton derive from GtkToggleButton"Claudio Saavedra
This change reverts 2911cf0dc0242c87a95d2577d54c898ce060873f
2009-08-21Make HildonCheckButton derive from GtkToggleButtonAlberto Garcia
* hildon/hildon-check-button.h * hildon/hildon-check-button.c (hildon_check_button_clicked, hildon_check_button_class_init): Make HildonCheckButton derive from GtkToggleButton (hildon_check_button_toggled, hildon_check_button_set_active) (hildon_check_button_get_active): Deprecate unnecessary HildonCheckButton API and use the one from GtkToggleButton instead. * hildon/hildon-set-password-dialog.c (create_contents) (hildon_set_password_response_change, hildon_checkbox_toggled) * examples/hildon-check-button-example.c (button_toggled_cb): Update to use the GtkToggleButton API Fixes: MB#4739 (HildonCheckButton should inherit from GtkToggleButton) Fixes: NB#132661 (HildonCheckButton should inherit from GtkToggleButton)
2009-08-06Replace g_idle_add/g_timeout_add with their gdk_threads counterpartsAlberto Garcia
* examples/hildon-hvolumebar-timer-example.c (on_idle, main) * hildon/hildon-banner.c (hildon_banner_timeout, hildon_banner_ensure_timeout) * hildon/hildon-calendar.c (calendar_timer, start_spinning) * hildon/hildon-color-chooser.c (inline_limited_expose) * hildon/hildon-date-editor.c (hildon_date_editor_entry_focus_in) (hildon_date_editor_entry_validate) (hildon_date_editor_entry_select_all) * hildon/hildon-note.c (on_show_cb) * hildon/hildon-number-editor.c (hildon_number_editor_button_pressed) (hildon_number_editor_start_timer, do_mouse_timeout), (add_select_all_idle, hildon_number_editor_select_all) * hildon/hildon-time-editor.c (hildon_time_editor_entry_focus_in) (highlight_callback, hildon_time_editor_validate) (hildon_time_editor_entry_select_all) * hildon/hildon-time-picker.c (hildon_time_picker_arrow_press) (hildon_time_picker_key_repeat_timeout) * hildon/hildon-window.c (hildon_window_key_press_event) (hildon_window_escape_timeout): Replace all calls to g_idle_add/g_timeout_add with their gdk_threads counterparts. Fixes: NB#126198 (gdk-threads API should be used to install idle and timeout handlers)
2009-08-04Remove all placeholder code in HildonEntry/TextView now that it's in GTKAlberto Garcia
* hildon/hildon-text-view.c * hildon/hildon-entry.c: Remove all placeholder code from HildonEntry and HildonTextView and use the API in GtkEntry and GtkTextView instead. * examples/hildon-entry-example.c * examples/hildon-text-view-example.c * examples/hildon-wizard-dialog-example.c * hildon/hildon-get-password-dialog.c * hildon/hildon-login-dialog.c * hildon/hildon-picker-dialog.c * hildon/hildon-set-password-dialog.c * hildon/hildon-touch-selector-entry.c: Replace all deprecated calls to HildonEntry and HildonTextView with their Gtk counterparts. Fixes: NB#122395 (hildon_entry_set_placeholder() should be in GtkEntry)
2009-06-26Missed commit in order to fix compilation using '--enable-fatal' and ↵Alejandro Piñeiro
'--disable-deprecated' (see previous commit) * tests/check-hildon-banner.c * tests/check_text.c * tests/test_suites.h Protect hildon-banner tests with #ifndef HILDON_DISABLE_DEPRECATED, as were testing deprecated functions. * examples/hildon-banner-example.c: typo on button3 type, that causes a fail compiling with --with-examples but without --disable-deprecated Missed commit in order to fix compilation using '--enable-fatal' and '--disable-deprecated' (see previous commit)
2009-06-26Fixed the compilation using '--enable-fatal' and '--disable-deprecated' optionsAlejandro Piñeiro
* examples/hildon-banner-example.c: Protect deprecated hildon-banner functions with #ifndef HILDON_DISABLE_DEPRECATED * examples/hildon-find-toolbar.c: Protect deprecated HILDON_ICON_SIZE_TOOLBAR with #ifndef HILDON_DISABLE_DEPRECATED * hildon/hildon-find-toolbar.c: Change deprecated HILDON_ICON_SIZE_TOOLBAR in favor of HILDON_ICON_PIXEL_SIZE_FINGER * hildon/hildon-private.h: Unmark hildon_privfate_create_animation() as deprecated. * hildon/hildon-stackable-window.c: Added #undef HILDON_DISABLE_DEPRECATED to allow proper compilation of deprecated functions defined on the header
2009-06-25Allow to use HILDON_UI_MODE_NORMAL on the HildonTouchSelectorAlejandro Piñeiro
* hildon/hildon-picker-dialog.c: (selection_completed): take into account HILDON_UI_MODE_NORMAL * hildon/hildon-touch-selector.c (hildon_touch_selector_init): Initialize hildon-ui-mode (hildon_touch_selector_row_activated): new callback for the "row-activated" signal, in order to save the last activated (hildon_touch_selector_check_ui_mode_coherence): new method that checks if the current hildon-ui-mode is coherent with the touch selector (hildon_touch_selector_class_init) (hildon_touch_selector_get_property) (hildon_touch_selector_set_property) Added "hildon-ui-mode" property (disconnect_model_handlers): renamed to clean_column (hildon_touch_selector_remove): use clean_column function (_create_new_column): use the hildon-ui-mode to create the treeview, and only select the first element on HILDON_UI_MODE_EDIT (hildon_touch_selector_column_init): Initialize last_activate (hildon_touch_selector_append_column): check that the touch selector is coherent with the current hildon-ui-mode (hildon_touch_selector_get_hildon_ui_mode) (hildon_touch_selector_set_hildon_ui_mode) Added a getter/setter for the hildon-ui-mode property (hildon_touch_selector_get_last_activated_row): Added this method in order to get the last activated row * examples/hildon-touch-selector-normal-mode-example.c New example, that shows how to use the HildonTouchSelector in HILDON_UI_MODE_NORMAL Fixes: NB#95685 (Add field dialog should use HILDON_UI_MODE_NORMAL), using Kristian Rietveld <kris@lanedo.com> advices
2009-06-09Make hildon_touch_selector_column_get/set_column publicClaudio Saavedra
* doc/hildon-sections.txt: Add the new public methods below. * examples/hildon-picker-button-multicolumn-example.c: (create_touch_selector): * examples/hildon-touch-selector-example.c: (create_selector): * examples/hildon-touch-selector-multi-cells-example.c: (create_selector): Use hildon_touch_selector_column_set_text_column() * hildon/hildon-touch-selector-column.h: * hildon/hildon-touch-selector.c: (hildon_touch_selector_column_set_text_column), (hildon_touch_selector_column_get_text_column): Make hildon_touch_selector_column_set/get_column() public, use them in the inline example, document them, and reference to them in the docs.
2009-06-08Updated HildonBanner exampleAlberto Garcia
* examples/hildon-banner-example.c: Several style updates (on_animation_clicked, on_animation_idle) (on_progress_clicked, on_progress_idle): Add additional reference for the cases when the parent window is destroyed.
2009-05-28Ensure to show the scrollbars, if required, on the adjustment::changed signalAlejandro Piñeiro
handler * hildon/hildon-pannable-area.c (hildon_pannable_area_initial_effect): Remove the initial_effect management, check initial_hint (hildon_pannable_are_expose_event): Remove the initial_hint management, set initial_effect to FALSE (hildon_pannable_are_refresh): Check if we need to show the scrollbars, by launching the fade_timeout if the scrollbars state has changed and are visible * examples/hildon-pannable-area-initial-hint-example.c Modified to allow to remove rows too. Add and remove rows one by one
2009-05-25Ensure to show the initial-hint the first time the pannable becomesAlejandro Piñeiro
scrollable * src/hildon-pannable-area.c (hildon_pannable_area_initial_effect): set to FALSE initial_effect if the fadeout effect was used (hildon_pannable_area_expose_event): check if it is required to manage the initial effect on the begining of the function. Previously it was made at the end, but this doesn't ensure that the scrollbars will be painted on the first show. Do not set to FALSE initial_effect, to ensure that the initial hint is showed the first time the pannable becomes scrollable * examples/Makefile.am * examples/hildon-pannable-area-initial-hint-example.c: New example, to show that the initial-hint is showed when the widget becomes scrollable Fixes: NB#116607 (Pannable area should always have scrollbar visible initially if the application can be scrolled)
2009-05-20Fix some typos on the hildon_banner_show_information_override_dndAlejandro Piñeiro
* hildon/hildon-banner.[ch]: (hildon_banner_show_information_override_dnd): remove icon_name from the method definition as it is ignored. * examples/hildon-banner-dnd-example.c: updated with the change on hildon-banner.h API
2009-05-20Add a new method hildon_banner_show_information_override_dndAlejandro Piñeiro
* hildon/hildon-banner-private.h: new require_override_dnd and overrides_dnd variables * hildon/hildon-banner.h: (hildon_banner_show_information_override_dnd): new method, that shows the information but sets the override flag, in order to show important messages * hildon/hildon-banner.c (hildon_banner_show_information_override_dnd): new method (hildon_banner_set_override_flag): new utility function (hildon_banner_real_show_information): new utility function, in order to generalize the current hildon_banner_show_information_override_dnd and hildon_banner_show_information_override_dnd * examples/Makefile.am * examples/hildon-banner-dnd-example.c: New example that show how to use the new hildon_banner_show_information_override_dnd Fixes: NB#114874 (There is no possibility to show hildon banners with DND flag set)
2009-05-06Fix a include on the hildon-remote-texture-exampleAlejandro Piñeiro
* examples/hildon-remote-texture-example.c Change the include to the hildon-remote-texture in order to compile properly the examples on the installed libhildon1-examples package
2009-04-30Renamed src/ to hildon/Alberto Garcia
* src/ * Makefile.am * configure.ac * doc/Makefile.am * doc/hildon.types * po/POTFILES.in: Renamed src/ to hildon/ * examples/*.c * debian/changelog * debian/rules: Include <hildon/hildon.h> directly in all examples.
2009-04-28New API to change format policy on HildonTimeSelectorAlejandro Piñeiro
* src/hildon-time-selector.h: Added HildonTimeSelectorFormatPolicy * src/hildon-time-selector.c: Added PROP_TIME_FORMAT_POLICY (_check_ampm_format): renamed to check_automatic_ampm_format (update_format_policy), (update_format_dependant_columns): new functions (hildon_time_selector_class_init) (hildon_time_selector_contructor) (hildon_time_selector_init) (hildon_time_selector_get_property) (hildon_time_selector_set_property) (hildon_time_selector_get_time) (hildon_time_selector_set_time) * src/hildon-touch-selector.h: new file * src/hildon-touch-selector.c (hildon_touch_selector_emit_changed) (hildon_touch_selector_block_changed) (hildon_touch_selector_unblock_changed) Added functions to allow to block the emission of the "changed" signal * src/hildon-picker-dialog.c (hildon_picker_dialog_show): call the parent show before the custom code * examples/hildon-time-button-example.c Modified, so now you can configure the time format using the new property Added a new property "time-format-policy" that allow to choose the time format: AM/PM, 24H or AUTOMATIC. AUTOMATIC is the default one. In this case it uses gconf in order to check if the time selector must use AM/PM or 24H. Fixes: NB#111606 (HildonTimeSelector should expose API to set/unset am/pm mode)
2009-04-202009-04-20 Alberto Garcia <agarcia@igalia.com>Alberto Garcia
* examples/hildon-progress-indicator-example.c: Fix example * src/hildon-gtk.c (set_clear_window_flag) (hildon_gtk_window_set_progress_indicator): Create a generic function for setting flags to a window. Use GDK instead of direct Xlib calls.
2009-04-022009-03-20 Alberto Garcia <agarcia@igalia.com>Alberto Garcia
* doc/hildon-sections.txt * src/hildon-window-private.h * src/hildon-window.h * src/hildon-window.c (hildon_window_class_init) (hildon_window_init, hildon_window_finalize) (hildon_window_realize, hildon_window_get_property) (hildon_window_set_property, hildon_window_update_markup) (hildon_window_get_markup, hildon_window_set_markup): New "markup" property and hildon_window_{get,set}_markup() methods. * examples/hildon-stackable-window-example.c (new_window): Update example to use hildon_window_set_markup() Fixes: NB#106375 (Need API to retitle a window with a title including markup)
2009-03-172009-03-17 Alejandro Pinheiro <apinheiro@igalia.com>Alejandro Piñeiro
* examples/hildon-pannable-area-touch-list-example.c * examples/hildon-pannagle-area-touch-grid-example.c * examples/hildon-edit-toolbar-example.c * examples/hildon-touch-selector-multi-cells-example.c Removed the call to gtk_rc_parse_string, as it is not required since some time ago.
2009-03-122009-03-12 Claudio Saavedra <csaavedra@igalia.com>Claudio Saavedra
* examples/hildon-pannable-area-tuning-example.c: Fix copyright.
2009-03-062009-03-06 Alberto Garcia <agarcia@igalia.com>Alberto Garcia
Patch by Mox Soini (ext-mox.soini@nokia.com) * tests/TEST-CASES.txt * tests/check-hildon-banner.c * tests/check-hildon-note.c * src/hildon-banner.c * src/hildon-code-dialog.c * src/hildon-date-editor.c (real_set_calendar_icon_state) * src/hildon-time-editor.c * examples/hildon-lookup-example.c (main): Replace obsolete icon names with new ones. * src/hildon-find-toolbar-private.h: * src/hildon-find-toolbar.c (hildon_find_toolbar_init) (-hildon_find_toolbar_emit_search): Remove find button and change icon of close button. Fixes: NB#104819 (Clean up old icon names from hildon-widgets)
2009-03-052009-03-05 Alejandro G. Castro <alex@igalia.com>Alejandro G. Castro
Added a new example application that allows tuning the pannable area and replaced defines with properties in order to simplify the tuning: PROP_DRAG_INERTIA, PROP_PANNING_THRESHOLD, PROP_SCROLLBAR_FADE_DELAY, PROP_BOUNCE_STEPS, PROP_FORCE and PROP_DIRECTION_ERROR_MARGIN. * examples/hildon-pannable-area-tuning-example.c: New example application. * src/hildon-pannable-area.c, (hildon_pannable_area_class_init), (hildon_pannable_area_init), (hildon_pannable_area_get_property), (hildon_pannable_area_set_property), (hildon_pannable_area_launch_fade_timeout), (hildon_pannable_area_adjust_value_changed), (hildon_pannable_axis_scroll), (hildon_pannable_area_motion_notify_cb), (hildon_pannable_area_scroll_cb), (hildon_pannable_area_button_release_cb): We have converted some of the defines that control the widget to properties to simplify the tuning.
2009-03-042009-03-04 Alberto Garcia <agarcia@igalia.com>Alberto Garcia
* doc/hildon-sections.txt * src/hildon-stackable-window-private.h * src/hildon-stackable-window.h * src/hildon-stackable-window.c (-hildon_stackable_window_set_app_menu) (-hildon_stackable_window_get_app_menu) (-hildon_stackable_window_toggle_menu) (-hildon_stackable_window_finalize) (hildon_stackable_window_class_init) (hildon_stackable_window_init) * src/hildon-window-private.h * src/hildon-window.h * src/hildon-window.c (hildon_window_init) (hildon_window_destroy, +hildon_window_toggle_gtk_menu) (+hildon_window_toggle_app_menu, hildon_window_toggle_menu_real) (hildon_window_get_main_menu, hildon_window_set_main_menu) (+hildon_window_set_app_menu, +hildon_window_get_app_menu): Moved all HildonAppMenu code to HildonWindow. The menu does not require a HildonStackableWindow anymore. * src/hildon-app-menu.c * src/hildon-program.c * examples/hildon-app-menu-example.c (main): Update examples and documentation to reflect HildonAppMenu changes.
2009-03-022009-03-02 Alberto Garcia <agarcia@igalia.com>Alberto Garcia
* src/hildon-window.h * src/hildon-window.c (+hildon_window_get_main_menu) (hildon_window_get_menu): Created hildon_window_get_main_menu() and deprecated hildon_window_get_menu(). * src/hildon-stackable-window.h * src/hildon-stackable-window.c (+hildon_stackable_window_set_app_menu) (+hildon_stackable_window_get_app_menu) (hildon_stackable_window_set_main_menu): Created hildon_stackable_window_{get,set}_app_menu() and deprecated hildon_stackable_window_set_main_menu(). * doc/hildon-sections.txt * examples/hildon-app-menu-example.c (main) * src/hildon-app-menu.c * src/hildon-program.c: Updated examples and documentation. Fixes: NB#103758 (No way to obtain a menu from a HildonStackableWindow)
2009-03-022009-03-02 Claudio Saavedra <csaavedra@igalia.com>Claudio Saavedra
* examples/hildon-remote-texture-example.c: Include hildon-remote-texture.h explicitely. * src/hildon.h: Remove hildon-remote-texture.h to avoid breaking applications not defining _XOPEN_SOURCE which don't require this header.
2009-02-182009-02-18 Alberto Garcia <agarcia@igalia.com>Alberto Garcia
* examples/hildon-button-example.c (common_buttons_window): Don't leak size groups.
2009-02-11* src/hildon-remote-texture.c * src/hildon-remote-texture.h * ↵Gordon Williams
src/hildon-remote-texture-private.h * examples/hildon-remote-texture-example.c: Updates/fixes to remote-texture and its example.
2009-02-11* src/hildon.h * src/hildon-remote-texture.c * src/hildon-remote-texture.h * ↵Gordon Williams
src/hildon-remote-texture-private.h * src/Makefile.am Added remote texture widget (for Clutter shared memory textures) * examples/hildon-remote-texture-example.c * examples/Makefile.am Added example file for remote texture usage
2009-02-052009-02-05 Alberto Garcia <agarcia@igalia.com>Alberto Garcia
* examples/hildon-stackable-window-example.c (add_window): Remove unnecessary return.