aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-map.c
Commit message (Collapse)AuthorAgeFilesLines
* Consolidate base utility libraries into libeutil.Matthew Barnes2012-12-131-1430/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Evolution consists of entirely too many small utility libraries, which increases linking and loading time, places a burden on higher layers of the application (e.g. modules) which has to remember to link to all the small in-tree utility libraries, and makes it difficult to generate API documentation for these utility libraries in one Gtk-Doc module. Merge the following utility libraries under the umbrella of libeutil, and enforce a single-include policy on libeutil so we can reorganize the files as desired without disrupting its pseudo-public API. libemail-utils/libemail-utils.la libevolution-utils/libevolution-utils.la filter/libfilter.la widgets/e-timezone-dialog/libetimezonedialog.la widgets/menus/libmenus.la widgets/misc/libemiscwidgets.la widgets/table/libetable.la widgets/text/libetext.la This also merges libedataserverui from the Evolution-Data-Server module, since Evolution is its only consumer nowadays, and I'd like to make some improvements to those APIs without concern for backward-compatibility. And finally, start a Gtk-Doc module for libeutil. It's going to be a project just getting all the symbols _listed_ much less _documented_. But the skeletal structure is in place and I'm off to a good start.
* Avoid gtk_style_attach().Matthew Barnes2012-12-011-5/+0
| | | | | Documentation claims this step is unnecessary with GtkStyleContext, and indeed the current gtk_style_attach() code does nothing at all.
* Avoid gdk_keyboard_grab/ungrab() and gdk_pointer_grab/ungrab().Matthew Barnes2012-12-011-1/+1
| | | | | | | Use gdk_device_grab() and gdk_device_ungrab() instead. In some cases this requires stashing the grabbed device so it can be ungrabbed outside of an GdkEvent handler.
* Avoid using GdkEventButton directly in certain places.Matthew Barnes2012-11-301-3/+6
| | | | | | | | | | | | Prefer dealing with GdkEvent pointers and using accessor functions like gdk_event_get_button(). This is complicated by the fact that some GtkWidget method declarations still use GdkEventButton pointers, and synthesizing button events pretty much requires direct GdkEventButton access. But GDK seems to be nudging itself toward sealing the GdkEvent union. Likely to happen in GDK4. Mainly clean up signal handlers and leave method overrides alone for now.
* Coding style and whitespace cleanup.Matthew Barnes2012-11-111-25/+32
|
* Coding style and whitespace cleanup.Matthew Barnes2012-08-201-2/+2
|
* Remove all GDK threads usage.Matthew Barnes2012-08-061-1/+1
| | | | | | | | | | | | According to [1], we don't need to worry about GDK's global lock since we don't call gdk_threads_init() or gdk_threads_set_lock_functions(). The GDK threads API is being aggressively deprecated by GTK+ developers so let's just abandon it entirely. I've never really understood when you're supposed to use it or not use it anyway, so it's good to be rid of this confusion. [1] https://mail.gnome.org/archives/desktop-devel-list/2012-August/msg00005.html
* Coding style and whitespace cleanup.Matthew Barnes2012-02-201-10/+14
|
* Coding style and whitespace cleanup.Matthew Barnes2011-09-041-29/+57
|
* Coding style and whitespace cleanups.Matthew Barnes2011-06-091-2/+6
|
* Bug #646109 - Fix use of include <config.h> to make sure translations workMilan Crha2011-05-271-0/+3
|
* Whitespace and coding style cleanups.Matthew Barnes2011-05-081-1/+3
|
* Coding style and whitespace cleanup.Matthew Barnes2011-01-301-52/+101
|
* Adapt EMap to latest gtk+-3.0 API.Matthew Barnes2011-01-261-140/+243
|
* Adapt size_request vfuncs to latest gtk+-3.0 API.Rodrigo Moya2011-01-251-5/+21
|
* Drop backward-compatibility cruft.Matthew Barnes2011-01-251-3/+0
|
* Merge miscellaneous changes from gtk3 branch.Matthew Barnes2011-01-151-539/+433
| | | | Mostly coding style and whitespace changes, to reduce diff noise.
* Coding style and whitespace cleanup.Matthew Barnes2010-11-081-11/+11
|
* e-map: Take colormap and visual from the widgetBenjamin Otte2010-10-301-2/+2
| | | | | No need to use magic visuals and colormaps anymore, we're all cairo these days.
* e-map: Stuff tween duration into a macro so it's easier to changeBenjamin Otte2010-10-301-2/+3
|
* e-map: Add simplification API to zoom from a certain stateBenjamin Otte2010-10-301-16/+17
|
* e-map: Zoom out smoothly, tooBenjamin Otte2010-10-301-1/+14
|
* e-map: Redo zoomingBenjamin Otte2010-10-301-387/+223
| | | | | Instead of hacky magic, we now use cairo and a naïve implementation of tweening.
* e-map: Make center_at() function take longitude/latitudeBenjamin Otte2010-10-301-21/+29
| | | | | | | Way easier than to try to get the coordinates right. Includes refactoring to introduce e_map_world_to_render_surface() that computes coordinates on the background surface to make this stuff easier.
* e-map: Introduce e_map_get_current_location()Benjamin Otte2010-10-301-13/+13
| | | | ... and use it when zooming out
* e-map: Use gtk_alignment_configure()Benjamin Otte2010-10-301-22/+14
| | | | Nothing but a massive code cleanup
* e-map: Repaint points unconditionallyBenjamin Otte2010-10-301-1/+2
| | | | | | | The in_view() check is broken because it doesn't repaint points that are 1px outside the window. The point take 2 extra pixels in every direction after all. And gtk_widget_queue_draw_area() will automatically discard out-of-range rects anyway.
* e-map: Make cache a server-side surfaceBenjamin Otte2010-10-301-95/+92
| | | | Doing performance optimizations on the client is not a good idea...
* e-map: Query adjustment for size, not pixbufBenjamin Otte2010-10-301-2/+2
|
* e-map: pass width and height to set_scroll_area() directlyBenjamin Otte2010-10-301-19/+7
|
* e-map: Draw with cairoBenjamin Otte2010-10-301-38/+11
|
* e-map: Update the xofs/yofs properties together with the adjustmentsBenjamin Otte2010-10-301-11/+9
|
* e-map: Don't block signal handlersBenjamin Otte2010-10-301-23/+0
| | | | | The signal handler will no-op the operations anyway, because nothing changed.
* e-map: Move all rendering into the expose eventBenjamin Otte2010-10-301-114/+65
| | | | | For the zoom, we now use the long-deprecated gtk_widget_draw() to force repaints.
* e-map: Always repaint the whole window on scrollsBenjamin Otte2010-10-301-93/+1
| | | | We cannot move parts of the window with GTK3 APIs, so stop doing it.
* Get rid of deprecated GtkObject in EMap widgetMilan Bouchet-Valat2010-10-041-24/+2
| | | | | | | Remove GtkObject::destroy() handler. Move disconnecting signal handlers to e_map_finalize(). https://bugzilla.gnome.org/show_bug.cgi?id=630766
* Use new GDK keysym names if available.Matthew Barnes2010-09-181-4/+7
| | | | | | | In GTK+ 2.21.8, the keysym names were renamed from GDK_* to GDK_KEY_*. I've added backward-compatibility macors to gtk-compat.h, which can be dumped as soon as we require GTK+ >= 2.22.0.
* Coding style and whitespace cleanup.Matthew Barnes2010-08-291-3/+3
|
* GObject boilerplate cleanup.Matthew Barnes2010-08-251-73/+6
| | | | | | | Prefer thread-safe G_DEFINE_TYPE and G_DEFINE_INTERFACE macros over manual GType registration. This is just a start... lots more to do.
* Use accessor functions instead direct access (GSEAL work)Javier Jardón2010-04-131-3/+6
| | | | | | | | | | | | | | | 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
* Giant leap towards GSEAL compliance.Matthew Barnes2010-04-081-41/+0
|
* Update win32 directory relocation and some consistency cleanupFridrich Strba2010-03-101-1/+1
|
* Work around recent GTK+ deprecations.Matthew Barnes2010-03-051-1/+42
|
* Coding style and whitespace cleanup.Matthew Barnes2010-02-081-10/+10
|
* Coding style and whitespace cleanup.Matthew Barnes2010-01-311-26/+26
|
* Remove dead assignments found by clang.Matthew Barnes2010-01-161-3/+0
|
* Baby steps toward GSEAL compliance.Matthew Barnes2010-01-141-111/+182
|
* Disable gdk_event_get_graphics_expose() call in EMap.Matthew Barnes2009-09-201-0/+8
| | | | | | The function is deprecated in GTK+ now. Looks like it was just an optimization anyway -- the map seems to work fine without it -- but I left the logic intact in case I'm wrong.
* Fix excessive whitespace.Matthew Barnes2009-07-131-65/+0
|
* More code cleanup.Matthew Barnes2009-06-021-3/+3
|
* Whitespace cleanup.Matthew Barnes2009-05-291-4/+4
|
* Prefer GLib basic types over C types.Matthew Barnes2009-05-291-28/+28
|
* Remove trailing whitespace, again.Matthew Barnes2009-05-291-1/+1
|
* Bug 577929 – Consolidate marshallersMatthew Barnes2009-04-231-1/+1
| | | | | | Consolidate all marshalling specifications to e-util/e-marshal.list. This reduces code duplication and makes it slightly easier to locate unused marshallers.
* Change License from GPL to LGPL. 2nd batch.Sankarasivasubramanian Pasupathilingam2008-09-031-13/+15
| | | | | | More changes to come. svn path=/trunk/; revision=36247
* updated novell copyright notices (left others alone)Jeffrey Stedfast2008-06-211-1/+1
| | | | svn path=/trunk/; revision=35665
* ** Allow evolution to build with G_DISABLE_SINGLE_INCLUDES andMatthew Barnes2008-06-061-2/+0
| | | | | | | | | | 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
* ** Fixes bug #534360Matthew Barnes2008-05-231-15/+16
| | | | | | | | | | | | 2008-05-22 Matthew Barnes <mbarnes@redhat.com> ** Fixes bug #534360 Migrate from deprecated GtkObject symbols to GObject equivalents. Touches over 150 files in all components; too many to list. svn path=/trunk/; revision=35526
* ** Fixes bug #529641Matthew Barnes2008-04-231-1/+1
| | | | | | | | | | | | | | | 2008-04-22 Matthew Barnes <mbarnes@redhat.com> ** Fixes bug #529641 * widgets/e-timezone-dialog/e-timezone-dialog.glade: * widgets/e-dateedit.c (create_children): * widgets/e-map.c (e_map_new): Prefer the term "drop-down combination box" to "combo box" per the GNOME Documentation Style Guide. svn path=/trunk/; revision=35402
* ** Remove trailing whitespace from source code.Matthew Barnes2007-11-151-25/+25
| | | | | | | | | 2007-11-14 Matthew Barnes <mbarnes@redhat.com> ** Remove trailing whitespace from source code. svn path=/trunk/; revision=34537
* Warning fixes: - NULL vs 0 vs FALSE - ANSIfication of functionKjartan Maraas2007-10-311-23/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-10-29 Kjartan Maraas <kmaraas@gnome.org> * e-activity-handler.c: (e_activity_handler_new): * e-canvas.c: (e_canvas_new), (emit_event), (pick_current_item), (e_canvas_button): * e-combo-button.c: (menu_detacher), (impl_destroy), (impl_button_press_event): * e-combo-cell-editable.c: (e_combo_cell_editable_new): * e-expander.c: (e_expander_init), (e_expander_size_request), (e_expander_size_allocate), (e_expander_button_press), (e_expander_focus): * e-gui-utils.c: (e_popup_menu), (e_container_change_tab_order_callback): * e-image-chooser.c: (image_drag_data_received_cb): * e-info-label.c: (e_info_label_new): * e-map.c: (e_map_key_press), (e_map_new), (update_render_pixbuf), (blowup_window_area), (zoom_do), (set_scroll_area): * e-pilot-settings.c: (e_pilot_settings_get_source): * e-printable.c: (e_printable_will_fit): * e-reflow.c: (items_inserted), (model_changed), (set_empty), (e_reflow_event), (e_reflow_draw): * e-search-bar.c: (set_option): * e-search-bar.h: * e-unicode.c: (e_xml_get_translated_utf8_string_prop_by_name): Warning fixes: - NULL vs 0 vs FALSE - ANSIfication of function declarations. - Use non-deprecated GSignal functions - Don't mix different enum types svn path=/trunk/; revision=34466
* Update FSF address in header comments (#469886). Patch from TobiasMatthew Barnes2007-09-021-2/+2
| | | | | | | | | | 2007-09-02 Matthew Barnes <mbarnes@redhat.com> * Update FSF address in header comments (#469886). Patch from Tobias Mueller. svn path=/trunk/; revision=34151
* Massive code cleanup (bug #429422)Matthew Barnes2007-04-201-5/+3
| | | | svn path=/trunk/; revision=33432
* ** Fixes bug #419524Matthew Barnes2007-03-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | 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
* ** Fixes bug #352450Matthew Barnes2006-09-181-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-08-23 Matthew Barnes <mbarnes@redhat.com> ** Fixes bug #352450 * misc/e-canvas-background.c: * misc/e-cursors.c: * misc/e-map.c: * misc/e-reflow.c: * misc/e-task-widget.c: * misc/gal-combo-box.c: * table/e-cell-text.c: * table/e-cell-toggle.c: * table/e-table-field-chooser-item.c: * table/e-table-field-chooser.c: * table/e-table-header-item.c: * table/e-table-header-utils.c: * table/e-table-item.c: * table/e-table.c: * table/e-tree-memory.c: * table/e-tree-sorted.c: * table/e-tree.c: * table/e-text.c: Replace deprecated GLib and GDK function calls. svn path=/trunk/; revision=32783
* Don't use gtk_signal_new() for the set_scroll_adjustments signal, and useFederico Mena Quintero2006-06-081-8/+10
| | | | | | | | | | 2006-06-07 Federico Mena Quintero <federico@novell.com> * e-map.c (e_map_class_init): Don't use gtk_signal_new() for the set_scroll_adjustments signal, and use the correct marshaler. Fixes bug #331743. svn path=/trunk/; revision=32091
* Tons of cleanups of the following sort: - remove unused vars - removeKjartan Maraas2006-01-301-44/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Construct map file name at run-time.Tor Lillqvist2005-12-181-1/+5
| | | | | | | | 2005-12-18 Tor Lillqvist <tml@novell.com> * e-map.c: Construct map file name at run-time. svn path=/trunk/; revision=30865
* Add a name for timezone combox. Make accessibility name and descriptionLi Yuan2004-11-011-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Use g_signal_handlers_disconnect_by_func sinceDan Winship2003-02-251-10/+16
| | | | | | | | | * e-map.c (e_map_destroy): Use g_signal_handlers_disconnect_by_func since gtk_signal_disconnect_by_data doesn't seem to work right. (e_map_set_scroll_adjustments): Likewise. svn path=/trunk/; revision=20052
* Add include of gnome-dialog.hNot Zed2002-12-021-14/+14
| | | | | | | | | | 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
* First big sync of my GNOME 2 porting work (incomplete, and stillEttore Perazzoli2002-11-021-41/+20
| | | | | | | | pretty broken). Weeeeee! svn path=/trunk/; revision=18503
* updated to new version from Ximian Setup Tools. Fixes bug #7641.Damon Chaplin2001-11-291-41/+61
| | | | | | | | | | | | | | | 2001-11-28 Damon Chaplin <damon@ximian.com> * e-map.c: updated to new version from Ximian Setup Tools. Fixes bug #7641. 2001-11-27 Damon Chaplin <damon@ximian.com> * e-dateedit.c (e_date_edit_get_date): if allow_no_date_set is FALSE, return the last valid date entered, even if the field is currently empty. Fixes bug #15749. svn path=/trunk/; revision=14817
* More fixing of the license texts.Ettore Perazzoli2001-10-281-9/+9
| | | | svn path=/trunk/; revision=14241
* copied the EMap widget verbatim from Ximian Setup Tools. Hmm. Maybe itDamon Chaplin2001-06-141-0/+1783
2001-06-14 Damon Chaplin <damon@ximian.com> * e-map.[hc]: copied the EMap widget verbatim from Ximian Setup Tools. Hmm. Maybe it should go in gal, but its not a very general widget. * Makefile.am (INCLUDES): defined MAP_DIR for e-map.c. (libemiscwidgets_a_SOURCES): added e-map.[hc]. svn path=/trunk/; revision=10221