Commit Graph

3204 Commits

Author SHA1 Message Date
Matthew Barnes fcd764d059 Bug 695477 - Crash in EContactListEditor 2013-03-11 10:58:19 -04:00
Matthew Barnes 4c556405fb evolution-addressbook-export: Remove main loop event flushing.
Not needed anymore since it finally dawned on me to use weak references
in main loop event closures.  The EBookClient now dies when it should.
2013-03-08 15:18:17 -05:00
Matthew Barnes 4ff90f2bfd Use EClientComboBox where appropriate.
Basically any place where we use both EClient and ESourceComboBox.
2013-03-01 18:16:07 -05:00
Matthew Barnes c10031f067 evolution-addressbook-export: Flush event sources before exiting.
Flush any undispated event sources from the default main loop context.
Since this program does not use a main loop, these event sources would
otherwise leak.
2013-02-25 17:36:08 -05:00
Matthew Barnes 8d6e1c903e evolution-addressbook-export: Return nothing from action functions.
The previous return value was not being checked anyway.
2013-02-25 17:36:08 -05:00
Matthew Barnes 361dd78922 evolution-addressbook-export: Add ESourceRegistry to ActionContext. 2013-02-25 17:36:08 -05:00
Matthew Barnes 4d1bf133ce evolution-addressbook-export: Make ActionContext a struct.
Defining this as a union makes the code needlessly verbose.
2013-02-25 17:36:08 -05:00
Matthew Barnes b31f2ad720 evolution-addressbook-export: Remove --async option.
Pointless option, does the same as "evolution-addressbook-export &".
2013-02-25 17:36:08 -05:00
Matthew Barnes 5fdcdbc785 EAddressbookModel: Listen to the cache for client readonly changes.
Change notifications for EClient's "readonly" property can come on any
thread.  Our "notify::readonly" signal handler immediately updates the
model's editable status, which triggers GTK+ calls, which can crash the
application if we're not in the correct thread.

Connect instead to EClientCache's "client-notify" signal, which is
always emitted from EClientCache's dedicated main loop context, and
happens to be the same main loop context that GTK+ uses.  It's also
less bookkeeping when the model's EBookClient gets replaced.
2013-02-25 09:27:35 -05:00
Matthew Barnes f5d1b8bc5a EAddressbookModel: Replace "registry" property with "client-cache".
Registry can still be accessed through e_client_cache_ref_registry(),
but we'll want to utilize the client cache as well.

e_addressbook_model_new() now takes an EClientCache instead of an
ESourceRegistry, and e_addressbook_model_get_registry() is replaced
by e_addressbook_model_get_client_cache().
2013-02-25 09:27:35 -05:00
Vadim Rutkovsky 0beee88d10 Bug 694460 - 'Email' section toggle button in contact editor has incorrect name 2013-02-24 19:12:31 -05:00
Matthew Barnes 33bbdaa50b Coding style and whitespace cleanup. 2013-02-23 22:24:59 -05:00
Vadim Rutkovsky ab88c78d56 Correct label for "Country:" textbox in Work section on
"Mailing Address" tab of contact editor

https://bugzilla.gnome.org/show_bug.cgi?id=692020
2013-02-22 14:43:49 +01:00
Matthew Barnes c3ea33df61 EAddressbookSelector: Inherit from EClientSelector.
Use e_client_selector_get_client() to obtain an EClient.
2013-02-18 14:19:34 -05:00
Matthew Barnes 9714a4bbf1 Defer "backend-died" alerts to EShell. 2013-02-16 18:57:09 -05:00
Vadim Rutkovsky 269149baf5 Add mnemonic widgets for title and suffix comboboxes
https://bugzilla.gnome.org/show_bug.cgi?id=692720
2013-02-08 11:41:23 +01:00
Matthew Barnes 763081aa86 Fix up error handling around e_book/cal_client_connect_finish(). 2013-01-30 12:45:55 -05:00
Matthew Barnes e583928e04 Use e_book_client_connect().
Instead of e_client_utils_open_new() and e_book_client_new().
2013-01-30 08:37:15 -05:00
Milan Crha 41edc5515b Contact's print doesn't decode QP encoded email addresses 2013-01-22 17:06:53 +01:00
Matthew Barnes 8e2902eefc Bump GDK_VERSION_MIN_REQUIRED to GDK_VERSION_3_2.
Clean up resulting deprecation warnings, which were all related to
GtkOrientable consolidation (e.g. gtk_hbox_new() -> gtk_box_new()).
2013-01-19 19:08:01 -05:00
Matthew Barnes d545bdb78c Avoid deprecated libedataserver APIs.
I forgot to include this in 3.7.4, but no matter.
2013-01-15 09:43:40 -05:00
Milan Crha 6aeb10160e Bug #691640 - Distinguish the word "Title" for translation 2013-01-14 20:51:22 +01:00
Milan Crha 9ac0364b4c Bug #691134 - Only autocompleted name is added to a contact list 2013-01-11 11:00:05 +01:00
Milan Crha 268b609f9d Bug #691134 - New contact lists always saved to a default book 2013-01-08 22:15:38 +01:00
Matthew Barnes 79f9fe7f77 e-config: Remove unused functions.
e_config_add_skip_check()
e_config_class_remove_factory()
e_config_create_window()
e_config_page_get()
e_config_page_next()
e_config_page_prev()
e_config_set_page_is_finish()

Also remove E_CONFIG_ASSISTANT and all the assistant support therein.
2012-12-16 18:07:54 -05:00
Matthew Barnes bed06d9ec3 Move the contact map widgets to addressbook/gui/widgets.
Move the supporting widgets for the contact maps feature alongside
EABContactDisplay.  Removing them from libeutil helps isolate our usage
of libchamplain so it's not imposed on the entire application, and even
3rd party software.  That libchamplain is an optional dependency only
further complicates the matter.

Ideally I'd like to somehow isolate this feature in an extension module,
but we currently lack sufficient hooks for such an extension.  So this
arrangement will have to suffice for now.
2012-12-12 14:33:47 -05:00
Matthew Barnes d09d8de870 Consolidate base utility libraries into libeutil.
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.
2012-12-12 14:33:43 -05:00
Milan Crha ab3f65a15e Address couple issues found by a Coverity scan 2012-11-30 15:30:45 +01:00
Matthew Barnes d52ad1054d Add a GdkDevice parameter to gnome_canvas_item_grab().
GnomeCanvas will stash the GdkDevice and reuse it in the subsequent
gnome_canvas_item_ungrab() call.
2012-11-29 18:15:35 -05:00
Matthew Barnes d2fb5ee1a8 Avoid using GdkEventButton directly in certain places.
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.
2012-11-29 13:24:24 -05:00
Milan Crha c073de6c4c Bug #687360 - Crash on quit in gtk_style_context_get_valist() 2012-11-29 14:22:19 +01:00
Matthew Barnes 2c4ae5e768 Coding style and whitespace cleanup. 2012-11-10 15:54:43 -05:00
Milan Crha 75595d233b Bug #683877 - No more contextual menus for links 2012-11-08 17:27:37 +01:00
Milan Crha e1807b3155 Bug #317153 - Contact editor too large for small screens 2012-10-29 22:53:15 +01:00
Milan Crha e9749faddd Bug #679862 - Do not use ENameSelectorEntry in .ui files 2012-08-21 14:31:56 +02:00
Matthew Barnes c85109fc32 Coding style and whitespace cleanup. 2012-08-19 14:17:55 -04:00
Matthew Barnes 53aa02a923 e-book-shell-view-actions.c: Support deleting remote resources. 2012-08-03 11:40:13 -04:00
Matthew Barnes 54f4ab63ba addressbook.error.xml: Remove GroupWise-specific errors. 2012-08-03 11:40:13 -04:00
Matthew Barnes fe779eef25 addressbook.error.xml: Fix indentation. 2012-08-03 11:40:13 -04:00
Matthew Barnes b95e110b94 Remove "modal" attribute from error.xml files.
The "modal" attribute is ignored nowadays anyway, but these should have
never been modal to begin with.
2012-08-03 11:40:13 -04:00
Dan Vrátil a456ef68fd Bug #680666 - Contacts/Tasks/Memos preview pane does not follow theme colors 2012-08-02 11:11:41 +02:00
Matthew Barnes e57a4bb617 Fix error XML definitions with one button.
Don't need an "OK" button because EAlert already adds an [X] button to
dismiss the alert.  So we wind up seeing [ OK ] [X], which looks silly.
2012-07-05 09:02:05 -04:00
Dan Vrátil f77a83e875 Display local contact photos in EContactEditor's EImageChooser
Some contacts have photos stored locally as files. Until now
EContactEditor displayed thumbnail of contact photo in EImageChooser
only if the photo was embedded in the vCard as data. This patch
adds support for dispalying thumbnails of photos stored in local files
to indicate that the contact has a picture set.
2012-06-27 14:18:39 +02:00
Dan Vrátil 2a86155e71 Bug #674427 - Crash when formatting contact in addressbook 2012-06-27 14:18:39 +02:00
Dan Vrátil 255e052904 Fix displaying photos in contacts preview
EContactPhoto URIs are already escaped, but WebKit escapes it again, so images
are not displayed sometimes. Unescaping the URI before writing it to the HTML
fixes to problem.
2012-06-27 14:18:38 +02:00
Matthew Barnes cc8bf823ec Coding style and whitespace cleanup. 2012-06-24 20:31:43 -04:00
Matthew Barnes f960fd2dff Reduce usage of g_type_class_peek_parent().
G_DEFINE_TYPE macros define a static "parent_class" variable.
2012-06-24 20:31:42 -04:00
Cosimo Cecchi 7cbdc483cc all: don't set draw_background to FALSE on EText 2012-06-18 10:27:01 -04:00
Milan Crha 6c05b09be1 Do not call g_object_notify() when property didn't change 2012-06-18 15:35:44 +02:00
Dan Vrátil 031c40a517 Bug #764467 - URL popup shows all Copy options 2012-06-18 13:42:39 +02:00