FreeDesktop Web CVS Repositories

Please note, many of these repositories are now out of date, instead you really should try the git repositories at: http://cgit.freedesktop.org/

[ldtp] / ldtp / src / menu.c Repository:
fd.o logo

Log of /ldtp/src/menu.c

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Tag:

Revision 1.19 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Feb 28 04:20:47 2008 UTC (8 months, 3 weeks ago) by nagappan
Branch: MAIN
CVS Tags: HEAD
Changes since 1.18: +2 -70 lines
Diff to previous 1.18
2008-02-27  Nagappan A  <nagappan@gmail.com>

	* client-handler.c (handle_request): Removed unnecessary code.

	* ldtp-appmap.c (get_window_def): Added new function to lookup for
	the window definition in hash table.

	* ldtp-gui.c (get_context_def): Added new function to check,
	whether multiple window title exist in hash table and also the
	relevant component name.

	* page-tab-list.c (get_tab_name): Added new function to get the
	name of a tab.

	* menu.c (menu_main): Removed unnecessary code.

	* check-menu-item.c (is_menu_item_enabled): New function added to
	verify whether a menu item is enabled or not.

	* radio-menu-item.c (is_menu_item_enabled): New function added to
	verify whether a menu item is enabled or not.

	* menu-item.c (is_menu_item_enabled): New function added to verify
	whether a menu item is enabled or not.

Revision 1.18 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Feb 11 09:15:20 2008 UTC (9 months, 1 week ago) by nagappan
Branch: MAIN
CVS Tags: LDTP_1_0_0
Changes since 1.17: +95 -55 lines
Diff to previous 1.17
2008-02-11  Nagappan A  <nagappan@gmail.com>

	* ldtp.c (main): Avoid using external XML file as data file, if
	environment varialbe LDTP_EXTERNAL_TEMP_FILE is set or command
	line argument -n or --no-external-xml-file is passed or started
	LDTP as an TCP service.

	* client-handler.c (write2file): Write the given data to a temp
	file and return the file name, if success.
	(generate_response_packet): If, data size is 512, then write it to
	a file.
	(is_role_matching): If given role matches with the list, then
	return true, elase false.
	(add_matching_item_to_list): Add all matching items to the list.
	(handle_request): Modified SELECTMENUITEM case to use g_strsplit
	instead of strtok.
	Added GETCHILD case, to get the child of a given role
	or component and role.

	* menu.c (menu_main): Modified strtok to use g_strsplit.

Revision 1.17 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Jan 30 05:50:27 2008 UTC (9 months, 3 weeks ago) by nagappan
Branch: MAIN
Changes since 1.16: +1 -1 lines
Diff to previous 1.16
2008-01-29  Nagappan A  <nagappan@gmail.com>

	* ldtp.c (main): Backported to support RHEL4, by adding getopt_long
	function instead of g_option_context_parse.

	* client-handler.c (generate_response_packet, handle_client):
	Fixed compilation warnings.

Revision 1.16 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Sep 3 09:31:01 2007 UTC (14 months, 2 weeks ago) by nagappan
Branch: MAIN
CVS Tags: LDTP_0_9_1, LDTP_0_9_2
Changes since 1.15: +2 -2 lines
Diff to previous 1.15
2007-08-28  Nagappan A  <anagappan@novell.com>

	* *.[ch]: Updated all the files for the new address in LGPL
	license.

Revision 1.15 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Aug 28 13:11:21 2007 UTC (14 months, 3 weeks ago) by nagappan
Branch: MAIN
Changes since 1.14: +1 -1 lines
Diff to previous 1.14
2007-08-28  Nagappan A  <anagappan@novell.com>

	* calendar.c: Fixed compiler warnings.

	* client-handler.c: Fixed compiler warnings.

	* menu.c: Fixed compiler warnings.

Revision 1.14 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Aug 17 13:35:16 2007 UTC (15 months, 1 week ago) by uid2893
Branch: MAIN
CVS Tags: LDTP_0_9_0
Changes since 1.13: +13 -16 lines
Diff to previous 1.13
2007-08-17  Nagappan A  <anagappan@novell.com>

	* ldtp.c (report_window_event): Fixed the crasher in Solaris.
	Fixed few warnings.

	* ldtp-gui.c (trace_path_to_parent): Get the class of current
	object, can be used to verify whether we have traced the right
	object or not.
	(ldtp_gui_get_gui_handle): If the role type doesn't match between
	the current object to be selected and the one we have stored in
	appmap, then need to run remap.

	* ldtp-appmap.c (search_label_name): Commented this function as we
	no longer use them. Need to remove them at later point of time.

	* menu.c: Code alignment.

	* client-handler.c (is_cctxt_registered_callback): If the client
	disconnects, we have to destroy the client context stored.
	Fixed few warnings.

Revision 1.13 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Jan 22 11:09:57 2007 UTC (22 months ago) by nagappan
Branch: MAIN
CVS Tags: LDTP_0_8_0
Changes since 1.12: +3 -3 lines
Diff to previous 1.12
2007-01-22  Nagappan A  <anagappan@novell.com>

	* ldtp.c (is_window_reg_for_events): Removed GHashTable argument
	as its already a globla variable.
	Added global pthread mutex to avoid a crash when the callback
	functions client connection disconnected.

	* text.c (append_text, set_cursor_position, text_main): Fixed
	crashers reported by Palm Source team.

	* menu.c (menu_main): Removed extra condtions that check for ';'.

	* ldtp-command.h: Added new command to the structure.

	* ldtp-error.[c,h] (ldtp_error_get_message): Added new error
	LDTP_ERROR_EVENT_NOTIFIER_NOT_ENABLED.

	* ldtp-appmap.c (get_property): Check the return value of
	g_hash_table_lookup_extended, apart from value.

	* client-handler.c (unregister_window_creation_event): Added new
	function to unregister the callback function, that use to listen
	for window creation events.
	Added global pthread mutex to avoid a crash when the callback
	functions client connection disconnected.

Revision 1.12 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jan 18 17:13:34 2007 UTC (22 months ago) by nagappan
Branch: MAIN
Changes since 1.11: +3 -2 lines
Diff to previous 1.11
2007-01-18  Nagappan A  <anagappan@novell.com>

	* ldtp-gui.c (get_accessible_context_handle)
	(get_child_window_handle): Refined the object search algorithm.
	Recognize dialog with out any title, so it can accessed like dlg0,
	frm0 etc.
	You can access multiple windows with same title, so the first
	title will be same as the default one (example: frmNautilus), but
	the second title will be indexed from 1 (example: frmNautilus1).
	(get_accessible_component_handle): Modified function name from
	get_accessible_object_handle.
	(does_window_exist): Added new function to check whether a window
	exist or not.
	(remove_tmp_entries): Remove temporarily created hash table
	entries.

	* ldtp-appmap.c: Modified all g_hash_table_lookup to
	g_hash_table_lookup_extended. Because of this the appmap lookup
	now takes fast. Now we are not querying the accessible interface
	multiple times.

Revision 1.11 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Dec 5 19:12:50 2006 UTC (23 months, 2 weeks ago) by dobey
Branch: MAIN
CVS Tags: LDTP_0_7_0
Changes since 1.10: +1 -1 lines
Diff to previous 1.10
2006-12-05  Rodney Dawes  <dobey@novell.com>

	* ldtp-record.c (record_main):
	* menu.c (menu_main):
	Don't check if error is non-zero now, as zero is the SUCCESS case

	* text.c (get_text_property): Revert the commit of a g_print addition
	as it was a temporary debugging statement

Revision 1.10 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Nov 21 21:46:38 2006 UTC (2 years ago) by dobey
Branch: MAIN
Changes since 1.9: +23 -23 lines
Diff to previous 1.9
2006-11-21  Rodney Dawes  <dobey@novell.com>

	* ldtp-error.[ch]: Get rid of the LDTPError struct
	(ldtp_error_get_error, ldtp_error_free): Remove these methods as we
	don't need them any more
	(ldtp_error_get_message): Make this a public method that returns a
	const char * of the error message for when we need to print it

	* *.[ch]: Update the error handling code to use LDTPErrorCode instead
	of LDTPError everywhere, so we only pass around an enum value
	Call ldtp_error_get_message whenever we need to print an error message

	* ldtp-gui.c (object_state_contains): Unref the AccessibleStateSet when
	we are done using it
	(get_accessible_object_handle): Don't free the head struct that isn't
	owned by this method
	(ldtp_gui_get_gui_handle): Free the head pointer when done using it
	(ldtp_gui_wait_till_gui_exist, ldtp_gui_wait_till_gui_not_exist):
	(ldtp_gui_gui_exist): Free the accessible pointer when done with it

Revision 1.9 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Nov 21 15:18:52 2006 UTC (2 years ago) by dobey
Branch: MAIN
Changes since 1.8: +1 -0 lines
Diff to previous 1.8
2006-11-21  Rodney Dawes  <dobey@novell.com>

	* Makefile.am: We don't set LOCALIZATION_CFLAGS anywhere, so we don't
	need to add it to INCLUDES
	We can always include LOCALIZATION_LIB as we always AC_SUBST it now

	* ldtp-appmap.c (remove_context_entries, remove_appmap_entries): Add
	these back as we need to avoid destroying the hash tables until later,
	due to the potential of thread contention
	(ldtp_appmap_free): Add the _foreach back to destroy the hash table
	data that is stored in the appmap hash table

	* ldtp-gui.c (get_window_list): Don't create an extra variable to store
	the string in, and then assign that to another pointer, just assign
	the window_title string pointer directly
	Duplicate the string when inserting the key into the hash table
	Free the window_title string when done
	(get_accessible_context_handle): Print data before we free it
	(update_cur_window_appmap_handle): Don't create the hash table with
	_new_full and destructors, as there is potential thread contention

	* localizaiton.c (cleanup_hash_tables): Remove this unused method
	(ldtp_compare_with_locale): Free utf8_string before returning NULL

	* menu.c (menu_main): Free the accessible struct when done with it

	* remap.c (add_appmap_data, do_remap): Don't use _new_full to create
	the hash table with destructors, as there may be thread contention

Revision 1.8 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Aug 9 18:34:24 2006 UTC (2 years, 3 months ago) by nagappan
Branch: MAIN
CVS Tags: LDTP_0_5_0, LDTP_0_6_0
Changes since 1.7: +15 -1 lines
Diff to previous 1.7
        * menu.c (menu_main): Fixed crash, when token is NULL, quiting
        with appropriate error message.
        * ldtp-appmap.c (search_label_regexp_based, search_label_based):
        Search window based on regexp.
        * ldtp-appmap.c (search_key_regexp_based): Search window based on
        regexp.
        * ldtp-gui.c (trace_path_to_parent): Trace parent based on regular
        expression too
        (get_child_window_handle): Trace child window handle based on
        regular epression too

Revision 1.7 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Jul 22 19:04:16 2006 UTC (2 years, 4 months ago) by nagappan
Branch: MAIN
Changes since 1.6: +5 -2 lines
Diff to previous 1.6
Nagappan
        * tool-bar.c (verify_visible_button_count, verify_button_count):
        Fixed implementations to work appropriately.
        * menu.c (list_child_menu_items): Returns all the sub menuitem of
        menu.
        * ldtp-gui.c (trace_path_to_parent): Fixed core dump, if
        child_index property is NULL, avoid calling atoi.
        * combo-box.c (capture_to_file): Fixed core dump, if filename is NULL.

Revision 1.6 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jun 15 13:15:29 2006 UTC (2 years, 5 months ago) by nagappan
Branch: MAIN
Changes since 1.5: +6 -6 lines
Diff to previous 1.5
        * client-handler.c (handle_request): Added STOPSCRIPSERVER
        functionality, required for using with tinderbox
        * text.c (right_click): Added new function
        * ldtp.c (ldtp_server_thread): Added code for ldtp record handler
        * localization.c (ldtp_compare_with_locale): Regexp based search
        is implemented in localized object name too.
        * ldtp.c (ldtp_server_thread): Added a check in poll, whether the
        pollfd breaked due to ldtp script server thread or ldtp record
        server thread.
        * ldtp-server.c (init_ldtp_server): Removed LDTP_AUTH_SOCK
        environment variable setting, as its no longer been used.
        * ldtp-logger.c (close_log_file): NULL log file pointer after
        closing the file pointer.
        * ldtp-gui.c (get_accessible_context_handle): Fixed memory leak -
        freed the allocted string.
        * label.c (get_label_at_index): Implemented new function to get
        the label based on window, panel and index information.
        * client-handler.c (handle_client, handle_request): At end of
        stoplog, initialize log file pointer to NULL.

Revision 1.5 - (view) (download) (as text) (annotate) - [select for diffs]
Tue May 2 11:10:56 2006 UTC (2 years, 6 months ago) by nagappan
Branch: MAIN
Changes since 1.4: +13 -13 lines
Diff to previous 1.4
2006-05-02  Nagappan A <nagappan@gmail.com>

        * ldtp-gui.c (update_cur_window_appmap_handle): Added mutex lock /
        unlock to avoid corruption of application map

2006-04-27  Nagappan A <nagappan@gmail.com>

        * ldtp-logger.c (open_log_file): Modified the default option of
        opening file as overwrite - Bug # 339884

2006-04-25  Nagappan A <nagappan@gmail.com>

        * remap.c (get_object_info): Handles edit bar object type - Bug #
        339671

2006-04-17  Nagappan A <nagappan@gmail.com>

        * ldtp-gui.c (ldtp_gui_get_gui_handle): Handled multiple
        applications parallely - Bug # 338315

2006-04-14  Nagappan A <nagappan@gmail.com>

        * remap.c (strip_delim): Now this function is not static

2006-04-13  Nagappan A <nagappan@gmail.com>

        * ldtp-utils.c (read_line): Added new function to read data from
        given fd, line by line

2006-04-08  Nagappan A <nagappan@gmail.com>

        * ldtp-gui.c (get_relation_name, ldtp_gui_get_gui_handle):
        Valgrind and fixed memory leaks.

2006-04-07  Nagappan A <nagappan@gmail.com>

        * ldtp.c (main): Added command line options to ldtp engine

2006-04-06  Nagappan A <nagappan@gmail.com>

        * ldtp-appmap.c (search_label_based): Valgrind and fixed memory
        leaks.

2006-04-05  Nagappan A <nagappan@gmail.com>

        * client-handler.c (handle_request): Implemented reinitldtp

2006-04-04  Nagappan A <nagappan@gmail.com>

        * client-handler.c (createpo, deletepo, bind_text): Implemented
        new functions

2006-04-03  Nagappan A <nagappan@gmail.com>

        * calendar.c (select_calendar_date): Checked for NULL arguments to
        avoid crash
        * check-menu-item.c (uncheck_check_menu_item,
        verify_check_check_menu_item, verify_uncheck_check_menu_item):
        Removed functions

2006-04-01  Nagappan A <nagappan@gmail.com>

        * client-handler.h (_LDTPClientContext): Added individual log file
        for each new client connection

Revision 1.4 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Mar 30 11:38:34 2006 UTC (2 years, 7 months ago) by nagappan
Branch: MAIN
Changes since 1.3: +6 -6 lines
Diff to previous 1.3
        * ldtp-logger.c (log_msg): Pass / fail report of a group are now
        logged in the XML.
        * ldtp-logger.h: Updated #define entries to use enum and appended
        all LOG_ variables to LDTP_LOG_ enum variables. This impact all
        the usage of LOG_ variables, which has to be replaced with
        LDTP_LOG_.
        * label.c (select_labels_panel_by_name): New functions implemented
        - bug # 336458.
        * text.c (select_text_by_name): New functions implemented - bug #
        316044.

Revision 1.3 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Mar 16 04:56:42 2006 UTC (2 years, 8 months ago) by nagappan
Branch: MAIN
CVS Tags: LDTP_0_4_0
Changes since 1.2: +19 -6 lines
Diff to previous 1.2
        * calendar-view.c (select_event): Updated with appropriate error
        message
        * menu.c (menu_main): Patch to fix bug # 334401

Revision 1.2 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Feb 9 10:21:56 2006 UTC (2 years, 9 months ago) by vvaradan
Branch: MAIN
Changes since 1.1: +93 -99 lines
Diff to previous 1.1
        * combo-box.c:
        * ldtp-appmap.c:
        * localization.c:
        * menu.c:
        * table.c: Don't use g_strdup_printf for message-logging, it
        defragments memory.  Static arrays should suffice.
        Coding style fixes.

Revision 1.1.1.1 - (view) (download) (as text) (annotate) - [select for diffs] (vendor branch)
Wed Feb 1 05:52:04 2006 UTC (2 years, 9 months ago) by nagappan
Branch: Novell
CVS Tags: rel1_0
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 , to next main 1.19
2006-01-16 Nagappan A <nagappan@gmail.com>
        * New LDTP arch based on Varadhan <v.varadhan@gmail.com> suggestion
        * Regular expression based object search (both context and
        component)
        * Run time appmap generation (initialization of appmap is
        optional)
        * For unexpected windows (example: connection reset by peer /
        connection timed out dialogs) can be handled by registering a
        callback function and the respective callback function will be called,
        whenever the registered window with the title appears and even this window
        could be based on regular expression
        * Now the scripts can be written in any language even though the
        default one is Python


Revision 1.1 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Feb 1 05:52:04 2006 UTC (2 years, 9 months ago) by nagappan
Branch: MAIN
Branch point for: Novell
Initial revision

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

CVS Admin
ViewVC Help
Powered by ViewVC 1.1-dev