aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-ft-manager.c
Commit message (Collapse)AuthorAgeFilesLines
* builder: move empathy_builder_* from Empathy to tp-account-widgetsMarco Barisione2013-08-201-3/+4
| | | | | | | This commit also changes the licence of the moved code from GPL to LGPL. See GOSSIP-RELICENSING.txt for details. https://bugzilla.gnome.org/show_bug.cgi?id=699492
* Reorder header inclusions accordingly to the Telepathy coding styleEmanuele Aina2013-04-021-6/+5
| | | | | | | | | | | | Sort by: • "config.h" • API declarations, if any • public libraries • internal headers, alphabetically sorted (mostly) http://telepathy.freedesktop.org/wiki/Style#A.23includes https://bugzilla.gnome.org/show_bug.cgi?id=697076
* Use a flat namespace for internal includesEmanuele Aina2013-04-011-4/+4
| | | | | | | | Directly add the libempathy, libempathy-gtk and extensions directories to the include search path. This decouples header inclusions from their location and helps when reorganizing the source files layout. https://bugzilla.gnome.org/show_bug.cgi?id=696950
* Use double quotes for all internal headersEmanuele Aina2013-04-011-4/+4
| | | | | | | This makes a bit more obvious which headers come from public libraries and which ones come from uninstalled utility libraries. https://bugzilla.gnome.org/show_bug.cgi?id=696950
* Drop unused/redundant header inclusionsEmanuele Aina2013-03-281-5/+0
| | | | | | | With the help of the script posted at http://stackoverflow.com/a/7135530 and some manual fixes, drop the unused or redundant #include directives. https://bugzilla.gnome.org/show_bug.cgi?id=696718
* Merge remote-tracking branch 'jonny/ft'Guillaume Desmottes2011-11-291-3/+2
|\ | | | | | | | | Conflicts: libempathy/empathy-tp-file.c
| * client-factory: stop creating EmpathyTpFile objectsJonny Lamb2011-11-091-3/+2
| | | | | | | | | | | | | | TpAutomaticClientFactory will create TpFileTransferChannels for us and they're, like, way better. Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* | Use _unref instead of _free _destroy when possible.unrefXavier Claessens2011-11-161-1/+1
|/ | | | | | | | | | | Replace g_(ptr_)array_free (foo, TRUE) and g_hash_table_destroy with respectively g_(ptr_)array_unref (foo) and g_hash_table_unref. I used this command to generate this patch: for f in `find -name "*.c"`; do sed -i $f -re 's/g_ptr_array_free \(([^ ,]+), TRUE\)/g_ptr_array_unref \(\1\)/'; done See Danielle's blog for explanation of possible bug _free can do: http://blogs.gnome.org/danni/2011/11/16/mistakes-with-g_value_set_boxed/
* use g_format_size instead of g_format_size_for_displayGuillaume Desmottes2011-10-251-3/+3
| | | | | The latter has been deprecated in GLib 2.31 but g_format_size() has been added in 2.30 so we can already use it without bumping the dep.
* fix unused-but-set-variable warningsMarc Plano-Lesay2011-05-051-3/+0
|
* ft-manager: add a 'Close' button (#646084)Guillaume Desmottes2011-04-071-1/+8
|
* factor out close_window()Guillaume Desmottes2011-04-071-16/+22
|
* Patch to transfer window to allow opening file with double clicks for #637195Kushal Das2011-01-101-7/+27
|
* GDK keys are now GDK_KEY_*Guillaume Desmottes2010-10-041-2/+2
|
* Don't abort when closing the FT dialoguePhilip Withnall2010-08-111-0/+4
| | | | | Ensure we handle the case where the dialogue is closed by the window manager or programmatically gracefully.
* Fix missing entries in switch statementsPhilip Withnall2010-08-051-0/+2
| | | | Added missing default cases and missing enum cases.
* Merge EmpathyContact:name and *_set_alias() to EmpathyContact:aliasPhilip Withnall2010-07-221-5/+5
| | | | The "name" API was a relic of Gossip.
* Port Empathy code to GSettings, remove EmpathyConfDanielle Madeley2010-06-181-1/+0
|
* Correctly store/restore maximized state of windows.Xavier Claessens2009-11-161-58/+1
|
* empathy-ft-manager: save the size of the window when disposingGuillaume Desmottes2009-11-091-1/+5
|
* ft-manager: allow closing the dialog with C-w or EscJonny Lamb2009-10-231-0/+17
| | | | Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
* Format contact information when hashingCosimo Cecchi2009-06-011-3/+9
|
* Clear the remaining time when transfer endsCosimo Cecchi2009-06-011-1/+22
| | | | | Also, use empathy_builder_unref_and_keep_widget() on the EmpathyFTManager toplevel.
* Add the received files to GtkRecentManagerCosimo Cecchi2009-06-011-0/+10
|
* Plug a leakCosimo Cecchi2009-06-011-0/+2
|
* Fix coding styleCosimo Cecchi2009-06-011-2/+2
|
* Set use_hash according to what the CM returnsCosimo Cecchi2009-06-011-3/+7
| | | | | | Set use_hash according to what the CM returns and not what the user would like it to be, so that clients won't be confused about whether they should connect to "hashing-started" after "transfer-done".
* Set the completed message anywayCosimo Cecchi2009-06-011-3/+1
| | | | | Set the completed message anyway in the UI, as it's not guaranteed that the hashing will take place even if use_hash is TRUE
* Remove useless gtk-doc annotationsCosimo Cecchi2009-06-011-17/+0
| | | | gtk-doc annotations are useless for files outside of libempathy*
* Use gchar* instead of char* for allocated retvalsCosimo Cecchi2009-06-011-3/+3
|
* Plug a string leakCosimo Cecchi2009-06-011-0/+2
|
* Set the right initial value in the UICosimo Cecchi2009-06-011-3/+7
| | | | Set an initial value for the UI string in case we're not using hash.
* Properly handle checksumming in the receiver UICosimo Cecchi2009-06-011-13/+40
|
* Remove the singleton logic from the managerCosimo Cecchi2009-06-011-27/+24
| | | | | | Don't use a singleton logic for the FT Manager, but let the manager itself hold the references according to the state of the toplevel window.
* Adjust clear button sensitivityCosimo Cecchi2009-06-011-0/+27
| | | | | Set the clear button sensitivity according to the number of completed/cancelled handlers in the manager.
* Adapt the manager codeCosimo Cecchi2009-06-011-9/+20
| | | | Adapt the manager code to react to the new possible hashing.
* Cleanup after rebase v2Cosimo Cecchi2009-06-011-0/+10
|
* Add back speed and remaining timeCosimo Cecchi2009-06-011-7/+42
|
* React to Tp remote errorsCosimo Cecchi2009-06-011-24/+1
| | | | Push Tp state change errors to the handler/UI.
* Remove hashing progress debug messageCosimo Cecchi2009-06-011-2/+0
|
* Handle errors coming from the EmpathyFTFactoryCosimo Cecchi2009-06-011-33/+88
|
* First implementation of error handlingCosimo Cecchi2009-06-011-15/+33
| | | | | | Implement the callback in EmpathyFTManager. Erase a redundant is_cancelled property in EmpathyFTHandler and rely on the GCancellable, which is shared by EmpathyTpFile and EmpathyFTHandler.
* Total FileTransfer draft spec exorcismCosimo Cecchi2009-06-011-1/+0
|
* Rework the logic of cancelling transfersCosimo Cecchi2009-06-011-24/+3
| | | | | | Rework the logic of cancelling transfers so that the GCancellable object is not used from an UI frontend, as that would require to duplicate storage for each EmpathyFTHandler in the manager.
* Format messages for hashingCosimo Cecchi2009-06-011-11/+49
| | | | | Format messages when hashing. Also, add some debug spew to see when the callbacks are called.
* Use the proper TP interface instead of emp_cliCosimo Cecchi2009-06-011-9/+24
| | | | Update to use the stable TP interface for FT.
* Make the whole thing compileCosimo Cecchi2009-06-011-211/+229
| | | | | The branch now compiles. Still have to debug and implement error handling.
* s/ft_manager/manager/ where appropriateCosimo Cecchi2009-06-011-57/+54
|
* W.I.P. code for EmpathyFTManager v2Cosimo Cecchi2009-06-011-143/+188
| | | | | Use GET_PRIV everywhere Stubs of implementations of the transfer state machine
* First batch of W.I.P. rework of EmpathyFTManagerCosimo Cecchi2009-06-011-362/+176
|
* empathy-ft-manager: update the FSF addressGuillaume Desmottes2009-05-181-2/+2
|
* empathy-ft-manager: remove trailing spacesGuillaume Desmottes2009-05-151-2/+2
|
* Removed empathy_tp_file_close as it was a duplicate of _cancel.Jonny Lamb2009-04-251-1/+1
| | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* Display the file transfer speed and calculate remaining time more dynamically.Xavier Claessens2009-04-251-9/+15
|
* Correct English.Jonny Lamb2009-04-171-1/+1
| | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* Port EmpathyFtManager to new APIXavier Claessens2009-04-161-7/+6
| | | | | | From: Xavier Claessens <xclaesse@gmail.com> svn path=/trunk/; revision=2858
* Added translator commentWouter Bolsterlee2009-03-241-0/+1
| | | | svn path=/trunk/; revision=2736
* Make sure the UI is build in empathy_ft_manager_get_dialogXavier Claessens2009-03-081-0/+2
| | | | | | From: Xavier Claessens <xclaesse@gmail.com> svn path=/trunk/; revision=2632
* Don't leak EmpathyFTManager object. Rebuild UI if it got destroyed.Xavier Claessens2009-03-081-51/+57
| | | | | | From: Xavier Claessens <xclaesse@gmail.com> svn path=/trunk/; revision=2631
* Some string comments requested by translators (#572875)Frederic Peters2009-02-241-0/+2
| | | | svn path=/trunk/; revision=2532
* Use tp-glib generated code for file transfers rather than extensions.Jonny Lamb2009-02-211-28/+28
| | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=2523
* Fix type punned pointers warningsOlivier Crête2009-02-121-1/+1
| | | | | | | | | Remove senseless (void **) From: Olivier Crête <olivier.crete@collabora.co.uk> Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> svn path=/trunk/; revision=2440
* Removed extensions.h inclusion in public API.Jonny Lamb2009-01-171-0/+2
| | | | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=2236
* Explicitly close file channels when removing them from the FT managerSjoerd Simons2009-01-101-0/+2
| | | | | | Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> svn path=/trunk/; revision=2141
* Set the right weak pointer.Xavier Claessens2009-01-091-1/+1
| | | | svn path=/trunk/; revision=2122
* Port EmpathyFTManager to the new singleton policy.Xavier Claessens2009-01-091-13/+30
| | | | svn path=/trunk/; revision=2118
* Drop libgnomeui dependency (Cosimo Cecchi).Xavier Claessens2008-12-021-14/+8
| | | | svn path=/trunk/; revision=1943
* Use GTK+ 2.14.0 and gtk_show_uri (Cosimo Cecchi).Xavier Claessens2008-12-021-1/+1
| | | | svn path=/trunk/; revision=1942
* Replace Q_() with C_() for translation context.Xavier Claessens2008-11-221-12/+3
| | | | svn path=/trunk/; revision=1915
* If first_line xor second_line is NULL, use only one line in ↵Xavier Claessens2008-11-221-3/+6
| | | | | | ft_manager_update_ft_row. svn path=/trunk/; revision=1914
* Cleanup the code inside ft_manager_build_ui.Xavier Claessens2008-11-221-59/+50
| | | | svn path=/trunk/; revision=1911
* Simplify and comment the livetime of EmpathyFTManagerXavier Claessens2008-11-221-21/+28
| | | | svn path=/trunk/; revision=1910
* Reorder the code for more clarity.Xavier Claessens2008-11-221-225/+221
| | | | svn path=/trunk/; revision=1909
* Cleanup of ft_manager_add_tp_file_to_list.Xavier Claessens2008-11-221-21/+20
| | | | svn path=/trunk/; revision=1908
* Remove useless gnomevfs include.Xavier Claessens2008-11-221-1/+0
| | | | svn path=/trunk/; revision=1907
* Update the selection only if we are removing the selected row.Xavier Claessens2008-11-221-9/+11
| | | | svn path=/trunk/; revision=1906
* Check if URI is not NULL before adding it to the recent manager.Xavier Claessens2008-11-221-1/+2
| | | | svn path=/trunk/; revision=1905
* Fix ref counting of tp_file, make it singleton per channel, and add a ↵Xavier Claessens2008-11-221-7/+10
| | | | | | _keep_alive method that adds a tmp ref until the transfer finishes. svn path=/trunk/; revision=1904
* Fix a comment phrasingXavier Claessens2008-11-221-1/+1
| | | | svn path=/trunk/; revision=1903
* Update the selection of the ft manager when a ft is removed only if it's not ↵Xavier Claessens2008-11-221-8/+15
| | | | | | empty. svn path=/trunk/; revision=1902
* There is no reason to remove the FT if it's cancelled while the window was ↵Xavier Claessens2008-11-221-33/+8
| | | | | | hidden. svn path=/trunk/; revision=1899
* Fix glade lookupXavier Claessens2008-11-221-2/+1
| | | | svn path=/trunk/; revision=1898
* Simplify ft_manager_remove_file_from_list.Xavier Claessens2008-11-221-39/+14
| | | | svn path=/trunk/; revision=1897
* Clean ft_manager_update_ft_row()Xavier Claessens2008-11-221-19/+19
| | | | svn path=/trunk/; revision=1896
* Simplify conditionXavier Claessens2008-11-221-3/+1
| | | | svn path=/trunk/; revision=1895
* Add all reasons in ft_manager_state_change_reason_to_string(). Don't use ↵Xavier Claessens2008-11-221-3/+4
| | | | | | | | default in the switch so we get compile warning if more reasons is added to the spec (makes easier to not forget to update that function). svn path=/trunk/; revision=1894
* Simplify the code to set sensibility of buttonsXavier Claessens2008-11-221-21/+8
| | | | svn path=/trunk/; revision=1892
* When the channel is invalidated, change state to CANCELLED.Xavier Claessens2008-11-221-7/+6
| | | | svn path=/trunk/; revision=1885
* Move the ft manager to src/ other programs do not need it.Xavier Claessens2008-11-221-0/+1134
svn path=/trunk/; revision=1884