aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-alert-dialog.c
Commit message (Collapse)AuthorAgeFilesLines
* Bug #646109 - Fix use of include <config.h> to make sure translations workMilan Crha2011-05-271-0/+4
|
* Fix alignment of extra widgets in EAlertDialogs.Matthew Barnes2011-03-251-2/+21
| | | | | | | Add e_alert_dialog_get_content_area(), which returns the GtkVBox containing the primary and secondary labels. Use this instead of gtk_dialog_get_content_area() to maintain the dialog's left margin beneath the image.
* Coding style and whitespace cleanup.Matthew Barnes2011-03-061-1/+2
|
* Bug #614480 - Avoid using G_TYPE_INSTANCE_GET_PRIVATE repeatedlyMilan Crha2011-02-251-6/+2
|
* Coding style and whitespace cleanup.Matthew Barnes2011-02-191-2/+8
|
* Slightly nicer EAlertDialog after move to gtk3Milan Crha2011-02-161-5/+12
|
* Remove NULL checks for GObject methods.Matthew Barnes2011-02-131-2/+2
| | | | | As of GLib 2.28 all GObject virtual methods, including constructed(), are safe to chain up to unconditionally. Remove unnecessary checks.
* Drop backward-compatibility cruft.Matthew Barnes2011-01-251-4/+0
|
* Free/busy meeting view doesn't work due to non-working extensionMilan Crha2010-12-061-0/+3
|
* Send errors to an EAlertSink instead of the task bar.Matthew Barnes2010-10-191-31/+0
| | | | | | This marks the end of unintrusive error dialogs, which were too unintrusive. We now show errors directly in the main window using the EAlert / EAlertSink framework.
* EAlert: Allow arbitrary actions to be added.Matthew Barnes2010-10-191-51/+49
| | | | | | | | | | | | | | You can now amend the predefined actions in an EAlert by calling e_alert_add_action(). Useful for adding actions from an existing GtkUIManager. Call e_alert_peek_actions() to obtain a combined list of predefined and custom actions. These will typically serve as "related" actions for GtkButtons (cf. gtk_activatable_set_related_action()). Also, both EShellWindow and EShellView now implement EAlertSink. Use EShellWindow for application-wide alerts, EShellView for view-specific alerts.
* Composer: Show cancellable operations and errors inline.Matthew Barnes2010-10-131-144/+153
| | | | | | | | | | | | | | | 'Send' and 'Save Draft' are now asynchronous and run outside of Evolution's MailMsg infrastructure. Add an EActivityBar to the composer window so these asynchronous operations can be tracked and cancelled even in the absense of a main window. Also add an EAlertBar to the composer window so error messages can be shown directly in the window. Instead of calling e_alert_dialog_run_for_args(), call e_alert_submit() and pass the EMsgComposer as the widget argument. The EMsgComposer will decide whether to show an EAlertDialog or use the EAlertBar, depending on the GtkMessageType of the alert.
* Messin around with EAlerts.Matthew Barnes2010-09-301-55/+52
| | | | | | | | | | | | | | | | | | | Trying out a new interface called EAlertSink. The idea is to centralize how errors are shown to the user. A GtkWindow subclass would implement the EAlertSink interface, which consists of a single method: void (*submit_alert) (EAlertSink *alert_sink, EAlert *alert); The subclass has complete control over what to do with the EAlert, although I imagine we'll wind up implementing various alert-handling policies as standalone widgets such as EAlertDialog. I'd like to try an EAlertInfoBar. Code that would otherwise display an error dialog itself would instead pass the EAlert to an appropriate EAlertSink and be done with it. Nothing is final yet. Still hacking on EAlert trying to find an API that feels right for these use cases.
* EAlert cleanups.Matthew Barnes2010-09-291-16/+0
| | | | Clean up the header, drop some unused cruft.
* Re-work my GtkDialog:has-separator workaround.Matthew Barnes2010-09-111-2/+2
| | | | | | | If we're using GTK+ 2.21.8 (where gtk_dialog_set_has_separator() is deprecated but the property is still present and defaults to TRUE), we still need to set the property to FALSE. So instead use g_object_set() up through GTK+ 2.90.6, after which the property itself is gone.
* Work around deprecation of gtk_dialog_set_has_separator()Matthew Barnes2010-09-111-0/+2
| | | | | | Unfortunately the default value for this property is TRUE (bzzt, WRONG!) so we can't just remove the function outright until we require GTK+ 2.22. It was deprecated in GTK+ 2.21.8.
* Coding style and whitespace cleanup.Matthew Barnes2010-08-291-36/+36
|
* GObject boilerplate cleanup.Matthew Barnes2010-08-251-1/+4
| | | | | | | Prefer thread-safe G_DEFINE_TYPE and G_DEFINE_INTERFACE macros over manual GType registration. This is just a start... lots more to do.
* Merge branch 'express2'Matthew Barnes2010-05-271-1/+2
|\
| * Coding style and whitespace cleanup.Matthew Barnes2010-05-251-3/+8
| |
* | Coding style and whitespace cleanup.Matthew Barnes2010-05-021-2/+6
| |
* | Giant leap towards GSEAL compliance.Matthew Barnes2010-04-081-1/+1
|/
* Prevent future bugs like #612792.Matthew Barnes2010-03-151-6/+6
| | | | | | Add G_GNUC_NULL_TERMINATED to EAlert functions with variable-length parameter lists and drop the unnecessary "arg0" parameter so the function attribute works correctly.
* Add option to escape EAlert strings.Matthew Barnes2010-02-181-3/+3
| | | | | | EAlertDialog wants the primary and secondary strings escaped for use in markup text, EActivityProxy does not use markup. So make it an explicit part of the EAlert API.
* Remove dead assignments found by clang.Matthew Barnes2010-01-161-1/+1
|
* Coding style and whitespace cleanup.Matthew Barnes2009-12-201-2/+0
|
* Use EAlert API in EAlertActivity rather than using g_object_get_dataJonathon Jongsma2009-12-091-10/+23
| | | | | | | | previously we were storing the EAlert's primary and secondary text in the dialog object (using g_object_set_data_full). Since EAlertDialog encapsulates an EAlert and we have access to the underlying EAlert object, we can just use the EAlert API to get the primary and secondary text rather than storing duplicates copies of it in the dialog.
* BugĀ 604098 - Missing \n in EAlertJonathon Jongsma2009-12-091-1/+1
| | | | Fix another minor regression from my EAlert refactoring
* rename e_alert_get_buttons -> e_alert_peek_buttonsJonathon Jongsma2009-12-091-1/+1
| | | | | Make it obvious that this does not need to be freed like the other things that use get_* (e.g. e_alert_get_title)
* Add EAlertDialogJonathon Jongsma2009-12-081-0/+362
This is a proper implementation of the various alert dialog helper functions. It is a proper subclass of GtkDialog, etc.