aboutsummaryrefslogtreecommitdiff
path: root/examples/hildon-app-menu-example.c
AgeCommit message (Collapse)Author
2012-05-30Fixed examples to new widgets codeTomasz Sterna
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-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-01-282009-01-28 Alberto Garcia <agarcia@igalia.com>Alberto Garcia
* src/hildon-app-menu.c (+hildon_app_menu_show_all) (+hildon_app_menu_hide_all, hildon_app_menu_class_init): Show/hide all menu items, but not the menu itself. (hildon_app_menu_repack_filters, hildon_app_menu_repack_items) (hildon_app_menu_insert, hildon_app_menu_add_filter): Realize menu items after adding them to the menu so keyboard accelerators work. (hildon_app_menu_show): Don't show the menu if it contains items but none of them are visible. * examples/hildon-app-menu-example.c (create_menu): Use gtk_widget_show_all() to show all menu items.
2008-12-022008-12-02 Alberto Garcia <agarcia@igalia.com>Alberto Garcia
* examples/hildon-app-menu-example.c (create_menu) Show items after adding them to the menu, as in the future the menu will no longer call gtk_widget_show() on the added items. * src/hildon-app-menu.c: Update example as explained above.
2008-11-242008-11-24 Claudio Saavedra <csaavedra@igalia.com>Claudio Saavedra
Based on initial code by Christian Dywan (christian@imendio.com) * doc/hildon-docs.sgml: Add section for hildon-main. * examples/*.c: (main): Replace gtk_main() calls with hildon_gtk_main(). * src/Makefile.am: Add new hildon-main.[ch] * src/hildon-defines.h: Update the icon sizes. * src/hildon-main.c: (+hildon_init), (+hildon_gtk_init): Add new library initialization files and register icon sizes. * src/hildon-main.h: New declarations. * src/hildon.h: Include hildon-main.h Add new initialization functions to the library. These methods will register the hildon specific icon sizes and can be used in the future for other hildon specific bits. Fixes: NB#92476 (Update icon size constants to Fremantle (hildon-defines.h)) Fixes: NB#93075 (Update icon size constants to Fremantle)
2008-11-122008-11-12 Alberto Garcia <agarcia@igalia.com>Alberto Garcia
* examples/hildon-app-menu-example.c (create_menu): Make all buttons finger size.
2008-11-062008-11-06 Claudio Saavedra <csaavedra@igalia.com>Claudio Saavedra
* examples/hildon-app-menu-example.c: (main): Do not set RC style properties, not needed at all.
2008-10-232008-10-23 Alejandro Pinheiro <apinheiro@igalia.com>Alejandro Piñeiro
* debian/control: Added new package libhildon1-examples, in order to pack the current hildon examples as documentation * debian/rules: Not to compress .c files, modify some includes on the examples (as normally are compiled locally, but when installed it will require to include the installed libhildon1 library), and rename Makefile.static * examples/Makefile.am: Added examplesdir and examples_DATA, in order to install all the example files on the new example package * examples/Makefile.static: Added static makefile that can be used to compile the examples, once installed the new example package * examples: Most of the examples were modified in order to grant that all use only '#include "hildon.h"', in order to be easy to prepare it on the example package
2008-10-222008-10-22 Alberto Garcia <agarcia@igalia.com>Alberto Garcia
* examples/hildon-app-menu-example.c: Add keyboard accelerator.
2008-08-252008-08-25 Alberto Garcia <agarcia@igalia.com>Alberto Garcia
* src/hildon-app-menu.c * examples/hildon-app-menu-example.c (create_menu): Update examples and documentation to explain how to connect callbacks.
2008-07-29* examples/hildon-app-menu-example.c (main): Let the window destroy the menu.Alberto Garcia
2008-07-28* src/hildon-app-menu-private.h * src/hildon-app-menu.c ↵Alberto Garcia
(hildon_app_menu_button_press) (hildon_app_menu_button_release, hildon_app_menu_init) (hildon_app_menu_class_init): Don't hide the menu on button release if the user didn't press outside first. * src/hildon-window.h * src/hildon-window.c (hildon_window_toggle_menu) (hildon_window_toggle_menu_real, hildon_window_class_init): Make hildon_window_toggle_menu a virtual function for the stackable window to override it. * src/hildon-stackable-window.h * src/hildon-stackable-window-private.h * src/hildon-stackable-window.c (hildon_stackable_window_realize) (hildon_stackable_window_finalize) (hildon_stackable_window_class_init) (hildon_stackable_window_init) (hildon_stackable_window_set_main_menu): New function to set the app menu of a HildonStackableWindow. * examples/hildon-app-menu-example.c: Remove the button to show the app menu, now it'll be shown when clicking on the title bar instead.
2008-06-25* examples/hildon-app-menu-example.c (create_menu): * ↵Alberto Garcia
examples/hildon-hvolumebar-insensitive-example.c (main): * examples/hildon-hvolumebar-timer-example.c (on_idle): * examples/hildon-toolbar-seekbar-example.c (main): * src/hildon-app-menu.c (hildon_app_menu_add_filter): * src/hildon-banner.c (hildon_banner_set_property): * src/hildon-dialog.c (hildon_dialog_new_with_buttons): Fix compilation warnings
2008-06-17* src/hildon-app-menu.h Update API. * src/hildon-app-menu.c ↵Alberto Garcia
(hildon_app_menu_init, hildon_app_menu_class_init): Remove multiple filter groups related code and API. Now we support only one filter group. * examples/hildon-app-menu-example.c: (create_menu): Update to reflect API changes.
2008-06-12* src/hildon-note.c (hildon_note_button_release): Use root coordinates to ↵Alberto Garcia
check if the release event happened outside the widget. * src/hildon-app-menu.c (hildon_app_menu_button_release): Remove unnecessary check * examples/hildon-app-menu-example.c (button_clicked): Add cast to fix warning
2008-06-12* src/hildon-app-menu.c (hildon_app_menu_class_init): New inner-border style ↵Alberto Garcia
property. Set all default spacings to 16 (hildon_app_menu_init): Use vertical-spacing to set the space between filter buttons and regular menu buttons. Set the default container border using the inner-border value. * examples/hildon-app-menu-example.c (create_menu): Don't set the menu border explicitly, now we have the inner-border style property for that.
2008-06-10* src/hildon-app-menu.h * src/hildon-app-menu.c * ↵Alberto Garcia
examples/hildon-app-menu-example.c Remove hildon_app_menu_popup(), use gtk_widget_show() instead
2008-05-23* doc/hildon-docs.sgml * doc/hildon.types * examples/Makefile.am * ↵Alberto Garcia
examples/hildon-app-menu-example.c * src/Makefile.am * src/hildon-app-menu-private.h * src/hildon-app-menu.c * src/hildon-app-menu.h * src/hildon.h New HildonAppMenu widget