Commit Graph

59 Commits

Author SHA1 Message Date
Matthew Barnes f62371c4d7 Whitespace cleanups. 2012-06-02 07:55:43 -04:00
Milan Crha 9179758e50 Bug #206484 - Add year scrolling to date picker 2012-05-16 23:01:39 +02:00
Matthew Barnes fcbbdfbd18 Coding style and whitespace cleanup. 2011-09-04 07:34:32 -04:00
Matthew Barnes f014ab82c8 Coding style and whitespace cleanups. 2011-06-08 13:14:48 -04:00
Matthew Barnes cb97c2dc8f Coding style and whitespace cleanup. 2011-05-21 17:56:06 -04:00
Matthew Barnes 7a1677520d Remove NULL checks for GObject methods.
As of GLib 2.28 all GObject virtual methods, including constructed(),
are safe to chain up to unconditionally.  Remove unnecessary checks.
2011-02-12 12:54:08 -05:00
Rodrigo Moya b7c2f49973 Adapt size_request vfuncs to latest gtk+-3.0 API. 2011-01-25 10:37:16 -05:00
Milan Crha 1c6f2d154e Bug #631320 - GtkObject is gone in GTK3 2010-10-06 19:26:08 +02:00
Matthew Barnes 4c05b9e925 Coding style and whitespace cleanup. 2010-08-29 11:22:28 -04:00
Matthew Barnes ecf3434da0 GObject boilerplate cleanup.
Prefer thread-safe G_DEFINE_TYPE and G_DEFINE_INTERFACE macros over
manual GType registration.

This is just a start... lots more to do.
2010-08-24 14:37:02 -04:00
Matthew Barnes 6caf022926 ECanvas cleanups. 2010-08-12 15:41:02 -04:00
Javier Jardón 96421ff37c Use accessor functions instead direct access (GSEAL work)
Still remaining:
GtkAccessible::widget
GtkAssistant::forward
GtkAssistant::back
GtkObject::flags
GtkTreeStore::stamp

The GtkAssistant fields are related to bug #596428.  We don't
need accessor functions so much as the enhancement described
there implemented.

https://bugzilla.gnome.org/show_bug.cgi?id=615613
2010-04-13 16:23:16 +02:00
Matthew Barnes 72797decc1 Giant leap towards GSEAL compliance. 2010-04-08 11:05:26 -04:00
Matthew Barnes 2836a54dd6 Work around recent GTK+ deprecations. 2010-03-05 07:36:23 -05:00
Matthew Barnes 2ef43b4cf4 Fix a compiler warning. 2010-02-06 21:18:00 -05:00
Matthew Barnes 0cc56c014f Bug 602416 - Changing shell views emits many runtime warnings 2010-02-06 20:48:27 -05:00
Matthew Barnes a6d296b998 Baby steps toward GSEAL compliance. 2010-01-13 14:17:42 -05:00
Matthew Barnes 79741ccd3f Bug 606250 - Remove usage of deprecated GTK+ symbols
Several GtkWidget macros were recently deprecated.
2010-01-07 14:45:43 -05:00
Matthew Barnes e77ee5d5d3 Coding style and whitespace cleanup. 2010-01-03 12:15:01 -06:00
Matthew Barnes 2a8e2030e4 Chip away at GSEAL compliance. 2009-08-16 12:36:46 -04:00
Matthew Barnes 374bd42f69 Fix excessive whitespace. 2009-07-14 11:26:22 -04:00
Matthew Barnes 14f8eee012 Whitespace cleanup. 2009-05-28 13:21:01 -04:00
Matthew Barnes e4afd3f9fb Remove trailing whitespace, again. 2009-05-26 23:21:02 -04:00
Sankarasivasubramanian Pasupathilingam 79d878670a License changes from GPL to LGPL
svn path=/trunk/; revision=36344
2008-09-16 10:52:29 +00:00
Jeffrey Stedfast abda2bda85 updated novell copyright notices (left others alone)
svn path=/trunk/; revision=35665
2008-06-20 22:26:57 +00:00
Matthew Barnes 4503c052d0 ** Allow evolution to build with G_DISABLE_SINGLE_INCLUDES and
2008-06-06  Matthew Barnes  <mbarnes@redhat.com>

	** Allow evolution to build with G_DISABLE_SINGLE_INCLUDES and
	   GTK_DISABLE_SINGLE_INCLUDES defined.  (#536637)


svn path=/trunk/; revision=35606
2008-06-06 15:12:53 +00:00
Matthew Barnes 8e47917e8c Update FSF address in header comments (#469886). Patch from Tobias
2007-09-02  Matthew Barnes  <mbarnes@redhat.com>

	* Update FSF address in header comments (#469886).
	  Patch from Tobias Mueller.


svn path=/trunk/; revision=34151
2007-09-02 04:19:22 +00:00
Matthew Barnes 64977cb1bc Massive code cleanup (bug #429422)
svn path=/trunk/; revision=33432
2007-04-19 18:53:33 +00:00
Matthew Barnes cba3097cad ** Fixes bug #419524
2007-03-20  Matthew Barnes  <mbarnes@redhat.com>

	** Fixes bug #419524

	* Include <glib/gi18n.h> instead of <libgnome/gnome-i18n.h>.

	* e-util/e-xml-utils.c (e_xml_get_child_by_name_by_lang_list):
	* mail/em-migrate.c (emm_setup_initial):
	* shell/e-component-registry.c (query_components):
	* shell/e-shell-settings-dialog.c (load_pages):
	* shell/e-shell-window-commands.c (command_quick_reference):
	* tools/killev.c (main):
	Use g_get_language_names() instead of gnome_i18n_get_language_list().

	* e-util/e-util.c: Remove e_gettext().

	* e-util/Makefile.am: Remove e-i18n.h.


svn path=/trunk/; revision=33319
2007-03-20 17:23:58 +00:00
Behnam Esfahbod 0e0dc0b15d flip month view in RTL locale - fixes bug 342443. committed by Andre
2006-08-23  Behnam Esfahbod  <behnam@zwnj.org>

	* e-calendar.c:
	* e-calendar-item.c:
	flip month view in RTL locale - fixes bug 342443.
	committed by Andre Klapper

svn path=/trunk/; revision=32641
2006-08-23 09:23:38 +00:00
Boby Wang dace8f4623 ** Fixes bug #339138
2006-04-27  Boby Wang <boby.wang@sun.com>

        ** Fixes bug #339138

        * e-calendar.c: (e_calendar_init):
        Correct the button's accessible name.

svn path=/trunk/; revision=31916
2006-04-27 09:47:01 +00:00
Karsten Bräckelmann dc8e4af46d a11y changes for bug #330723
svn path=/trunk/; revision=31477
2006-02-10 22:28:38 +00:00
Kjartan Maraas 4a4b322c39 Tons of cleanups of the following sort: - remove unused vars - remove
2006-01-30  Kjartan Maraas  <kmaraas@gnome.org>

	* e-timezone-dialog/e-timezone-dialog.c: (get_zone_from_point):
	* menus/gal-view-menus.c:
	* misc/e-attachment-bar.c: (calculate_height_width),
	(update_remote_file), (e_attachment_bar_get_attachment),
	(class_init):
	* misc/e-attachment.c: (async_progress_update_cb),
	(download_to_local_path):
	* misc/e-calendar-item.c: (e_calendar_item_get_arg),
	(e_calendar_item_realize), (e_calendar_item_ensure_days_visible):
	* misc/e-calendar.c: (e_calendar_drag_motion),
	(e_calendar_drag_leave), (e_calendar_focus):
	* misc/e-canvas-background.c: (ecb_get_property):
	* misc/e-canvas.c: (e_canvas_class_init), (pick_current_item):
	* misc/e-cell-date-edit.c: (e_cell_date_edit_do_popup),
	(e_cell_date_edit_show_popup):
	* misc/e-cell-percent.c:
	* misc/e-charset-picker.c: (e_charset_picker_bonobo_ui_populate):
	* misc/e-config-page.c: (e_config_page_class_init):
	* misc/e-dateedit.c: (e_date_edit_set_date),
	(e_date_edit_set_date_and_time_of_day),
	(on_date_popup_date_selected):
	* misc/e-dropdown-button.c: (e_dropdown_button_class_init):
	* misc/e-expander.c: (get_expander_bounds), (e_expander_expose),
	(is_in_expander_panel):
	* misc/e-filter-bar.c: (option_changed), (build_items):
	* misc/e-image-chooser.c: (e_image_chooser_init),
	(image_drag_data_received_cb):
	* misc/e-map.c: (e_map_size_allocate), (e_map_button_press),
	(e_map_button_release), (e_map_motion), (e_map_zoom_to_location),
	(e_map_zoom_out), (update_render_point), (repaint_point),
	(zoom_in_smooth):
	* misc/e-multi-config-dialog.c: (impl_response):
	* misc/e-reflow.c: (e_reflow_realize), (e_reflow_event):
	* misc/e-search-bar.c: (clear_search), (search_now_verb_cb),
	(entry_activated_cb), (activate_button_clicked_cb),
	(clear_button_clicked_cb):
	* misc/e-selection-model.c: (e_selection_model_key_press):
	* misc/e-send-options.c: (delay_until_date_changed_cb),
	(e_sendoptions_get_need_general_options):
	* misc/e-unicode.c: (e_stripped_char):
	* table/e-cell-progress.c: (eprog_draw_border), (eprog_draw),
	(eprog_event):
	* table/e-cell-spin-button.c: (ecsb_event), (ecsb_focus),
	(ecsb_unfocus), (ecsb_dispose):
	* table/e-cell-text.c: (ect_draw), (ect_show_tooltip):
	* table/e-cell-toggle.c: (etog_draw), (etog_event):
	* table/e-cell-tree.c: (ect_max_width):
	* table/e-cell-vbox.c:
	* table/e-table-click-to-add.c: (etcta_event):
	* table/e-table-config.c: (create_global_store):
	* table/e-table-field-chooser-dialog.c:
	* table/e-table-field-chooser-item.c: (etfci_find_button),
	(etfci_reflow), (etfci_get_property), (etfci_realize):
	* table/e-table-field-chooser.c:
	(e_table_field_chooser_class_init):
	* table/e-table-group-container.c: (etgc_unrealize):
	* table/e-table-group.c: (e_table_group_new):
	* table/e-table-header-item.c: (e_table_header_item_get_height),
	(ethi_realize), (ethi_event):
	* table/e-table-header-utils.c: (e_table_draw_elided_string),
	(e_table_header_draw_button):
	* table/e-table-item.c: (eti_set_property), (eti_get_property),
	(eti_draw), (eti_event), (eti_cursor_change):
	* table/e-table-scrolled.c: (e_table_scrolled_class_init):
	* table/e-table-search.c:
	* table/e-table-sort-info.c: (e_table_sort_info_save_to_node):
	* table/e-table.c: (table_canvas_reflow_idle),
	(table_canvas_size_allocate), (canvas_vbox_event),
	(click_to_add_event), (do_drag_motion), (e_table_class_init):
	* table/e-tree-scrolled.c: (e_tree_scrolled_class_init):
	* table/e-tree.c: (tree_canvas_reflow_idle),
	(tree_canvas_size_allocate), (e_tree_drag_get_data),
	(do_drag_motion), (e_tree_class_init):
	* text/e-text.c: (e_text_set_property), (e_text_draw),
	(_do_tooltip), (primary_clear_cb), (_get_position),
	(e_text_command): Tons of cleanups of the following sort:
	- remove unused vars
	- remove extraneous semi-colons
	- add some comments where assignments were done without using
	  the results later
	- remove break; statements after return foo;
	- add casts in some places to be more type correct
	- rename variables with name clashes
	- s/if/ifdef in some cases
	- mark some code static
	- remove some unused functions
	- use guint for 1-bit bitfields

svn path=/trunk/; revision=31371
2006-01-30 12:28:21 +00:00
Li Yuan f4a4681685 use widget->style instead of hard code colors.
2005-04-28  Li Yuan  <li.yuan@sun.com>

	* misc/e-calendar-item.c: (e_calendar_item_realize),
	(e_calendar_item_set_selection_if_emission),
	(e_calendar_item_style_set):
	use widget->style instead of hard code colors.
	* misc/e-calendar-item.h:
	* misc/e-calendar.c: (e_calendar_style_set):
	call e_calendar_item_style_set when style changes.

	Fixes #6767.

svn path=/trunk/; revision=29234
2005-04-28 08:03:47 +00:00
JP Rosevear ba0bc7dff0 test prog
2004-11-26  JP Rosevear  <jpr@novell.com>

	* test-info-label.c: test prog

	* e-url-entry.c: get image directly from icon factory

	* e-combo-button.c: ditto; convert to G_DEFINE_TYPE

	* e-activity-handler.c: convert to G_DEFINE_TYPE

	* e-task-widget.c: ditto

	* e-task-bar.c: ditto

	* e-multi-config-dialog.c: ditto

	* e-dropdown-button.c: ditto

	* e-cell-renderer-combo.c: ditto

	* e-cell-date-edit.c: ditto

	* e-calendar.c: ditto

	* e-calendar-item.c: ditto

	* Makefile.am: don't build the title bar, build an info label test
	program

svn path=/trunk/; revision=27999
2004-11-26 15:15:36 +00:00
Li Yuan cb9c99c5f4 Add a name for timezone combox. Make accessibility name and description
2004-10-28  Li Yuan  <li.yuan@sun.com>

        * e-timezone-dialog/e-timezone-dialog.glade:
        Add a name for timezone combox.
        * misc/e-calendar.c: (e_calendar_init), (e_calendar_new):
        Make accessibility name and description translatable.
        Add a atk name for the two buttons so that they can be UI
        grabbed by GOK.
        * misc/e-dateedit.c: (e_date_edit_new), (create_children):
        Add a name for atk object.
        Make accessibility name and description translatable.
        Add name and description for the date_entry, date_button
        and time_combo.
        (e_date_edit_show_date_popup), (hide_date_popup):
        Grab and ungrab keyboard.
        add_relation():
        New function to add labelled_by relation for entry
        and combobox.
        * misc/e-map.c: (e_map_new):
        Add a name for world map widget.
        Make accessibility name and description translatable.
        Set the atk role to image.
        * misc/e-multi-config-dialog.c: (e_multi_config_dialog_add_page):
        Add an atk name for the page.

svn path=/trunk/; revision=27776
2004-11-01 05:04:37 +00:00
Harry Lu c65fbd94c0 Fix for bugzilla bug #51624 and #51627.
2003-12-04  Harry Lu <harry.lu@sun.com>

        Fix for bugzilla bug #51624 and #51627.

        * e-calendar-item.c: (e_calendar_item_selection_add_days):
        set the date to the first day of the month so that user can use
        keyboard's arrow key to select a date.
        (e_calendar_item_set_selection_if_emission): only set selection_changed
        if emission is TRUE.
        * e-calendar.c: (e_calendar_init): add back the "clicked" handler so
        that user can use keyboard to click the button.
         (e_calendar_start_auto_move): no need to move since it is already
        handled by the clicked handler
        (e_calendar_on_prev_clicked), (e_calendar_on_next_clicked): move the
        month here.
        * e-dateedit.c: (e_date_edit_show_date_popup): use gdk_window_focus
        instead of gdk_keyboard_grab so that the focus won't lost if user click
        the button with keyboard.
        (hide_date_popup): no need to call gdk_keyboard_ungrab.

svn path=/trunk/; revision=23642
2003-12-05 02:01:46 +00:00
ERDI Gergo 5a1cbefa40 canned the _clicked handlers as those make it impossible to move just one
2003-11-30  ERDI Gergo  <cactus@cactus.rulez.org>

        * e-calendar.c: canned the _clicked handlers as those make it
        impossible to move just one month at a time

svn path=/trunk/; revision=23517
2003-12-01 12:14:27 +00:00
Bolian Yin 88d4fd5eac Fixes #1245. ECalendar should be usable with the keyboard
2003-09-19  Bolian Yin <bolian.yin@sun.com>

        Fixes #1245. ECalendar should be usable with the keyboard

        *misc/e-calendar-item.c (e_calendar_item_focus): new func, focus handler.
        (e_calendar_item_key_press_event): new func, key press event handler
        (e_calendar_item_selection_add_days, e_calendar_item_stop_selecting): helpers.
        (e_calendar_item_ensure_days_visible, e_calendar_item_set_selection_if_emission):
         add the flag to control if we should emit e-calendar signals.
        (e_calendar_item_class_init): register focus handler.
        (e_calendar_item_event): add code for GDK_FOCUS_CHANGE and GDK_KEY_PRESS.

        *misc/e-calendar.c (e_calendar_focus): new func, focus handler
        (e_calendar_button_has_focus): new func, if prev/next button has focus.
        (e_calendar_on_next_clicked, e_calendar_on_prev_clicked): click signal handler
         for prev/next buttons.
        (e_calendar_set_focusable): set if the e-calendar is focusable

        *misc/e-dateedit.c (e_date_edit_show_date_popup, hide_date_popup): grab/ungrab gdk keyboard.

svn path=/trunk/; revision=22632
2003-09-22 03:19:00 +00:00
Hans Petter Jansson db8f0cbfbc Unref the metrics. (e_calendar_item_draw): Re-use the widget's context
2003-04-15  Hans Petter Jansson  <hpj@ximian.com>

	* e-calendar-item.c (e_calendar_item_update): Unref the metrics.
	(e_calendar_item_draw): Re-use the widget's context instead of
	creating a new one. Unref the metrics.
	(e_calendar_item_draw_month): Unref the metrics. Don't create the
	layout where it might be leaked by an early return. Unref the layout
	before returning if we're outside the clip area.
	(e_calendar_item_draw_day_numbers): Unref the metrics.
	(e_calendar_item_recalc_sizes): Unref the metrics.
	(e_calendar_item_convert_position_to_day): Unref the metrics.

	* e-calendar.c (e_calendar_size_allocate): Unref the metrics.

svn path=/trunk/; revision=20855
2003-04-15 21:43:05 +00:00
Hans Petter Jansson c3efd8d943 Nuke GdkFont and use Pango's font measuring for everything.
2003-04-01  Hans Petter Jansson  <hpj@ximian.com>

	* e-calendar-item.c (e_calendar_item_class_init)
	(e_calendar_item_destroy)
	(e_calendar_item_get_arg)
	(e_calendar_item_set_arg)
	(e_calendar_item_update)
	(e_calendar_item_draw)
	(e_calendar_item_draw_month)
	(e_calendar_item_draw_day_numbers)
	(e_calendar_item_recalc_sizes)
	(e_calendar_item_convert_position_to_day): Nuke GdkFont and use
	Pango's font measuring for everything.

	* e-calendar-item.h: Ditto.

	* e-calendar.c (e_calendar_init)
	(e_calendar_size_allocate): Ditto.

svn path=/trunk/; revision=20633
2003-04-02 05:38:19 +00:00
Dan Winship cb46b4039b #include gtkarrow.h Likewise
* e-calendar.c: #include gtkarrow.h
	* e-combo-button.c: Likewise

	* e-charset-picker.c: Update for e_notice move

svn path=/trunk/; revision=20499
2003-03-25 15:48:09 +00:00
Rodney Dawes c6a1e23298 Use GtkArrow instead of pixmaps Use GtkArrow instead of pixmaps
2003-03-10  Rodney Dawes  <dobey@ximian.com>

	* e-calendar.c: Use GtkArrow instead of pixmaps
	* e-combo-button.c: Use GtkArrow instead of pixmaps
	* e-filter-bar.c: gtk_window_set_policy () is deprecated
	* e-url-entry.c: Load the icon in a pixbuf instead of GdkPixmap

svn path=/trunk/; revision=20254
2003-03-11 21:22:14 +00:00
Hans Petter Jansson 9c2e592707 Use Pango to draw. (e_calendar_item_class_init): Add font_desc and
2003-02-02  Hans Petter Jansson  <hpj@ximian.com>

	* e-calendar-item.[ch]: Use Pango to draw.
	(e_calendar_item_class_init): Add font_desc and week_number_font_desc
	args.
	(e_calendar_item_get_arg): Ditto.
	(e_calendar_item_set_arg): Ditto.
	(e_calendar_item_draw_month): Use Pango.
	(e_calendar_item_draw_day_numbers): Ditto.

	* e-calendar.c: Use Pango to draw. Specify just the size of the small
	font to use, instead of all aspects of it.
	(e_calendar_init): Produce the small font description and pass it to
	the ECalendarItem.

svn path=/trunk/; revision=19705
2003-02-02 08:02:27 +00:00
Not Zed 4354c0ac03 Add include of gnome-dialog.h
2002-11-27  Not Zed  <NotZed@Ximian.com>

        * e-charset-picker.c: Add include of gnome-dialog.h

        * *.[ch]: ran fix.sh script over everything.

svn path=/trunk/; revision=18978
2002-12-02 03:28:22 +00:00
Ettore Perazzoli 9c73777f22 First big sync of my GNOME 2 porting work (incomplete, and still
pretty broken).

Weeeeee!

svn path=/trunk/; revision=18503
2002-11-02 08:25:03 +00:00
Ettore Perazzoli 08fb7329cb Fixing the license text.
svn path=/trunk/; revision=14212
2001-10-27 16:59:46 +00:00
Ettore Perazzoli 02dcd0aadf Update the licensing information to require version 2 of the GPL
(instead of version 2 or any later version).

svn path=/trunk/; revision=14190
2001-10-27 00:25:49 +00:00
Ettore Perazzoli 91cc026904 Update the copyrights, replacing Helix Code with Ximian and
helixcode.com with ximian.com all over the place.

svn path=/trunk/; revision=10440
2001-06-23 08:52:02 +00:00
Kjartan Maraas 0345c9047d Added #include <glib.h> and moved corresponding local headers to the top.
2001-04-24  Kjartan Maraas  <kmaraas@gnome.org>

	* e-calendar-item.c, e-calendar.c, e-cell-date-edit.c,
	e-clipped-label.c: Added #include <glib.h> and moved
	corresponding local headers to the top.

svn path=/trunk/; revision=9540
2001-04-24 09:26:28 +00:00