~ubuntu-branches/debian/sid/gmtp/sid

« back to all changes in this revision

Viewing changes to src/callbacks.c

  • Committer: Package Import Robot
  • Author(s): Alessio Treglia
  • Date: 2012-06-14 10:12:49 UTC
  • mfrom: (1.1.12)
  • Revision ID: package-import@ubuntu.com-20120614101249-sds3t0jzopmywdvm
Tags: 1.3.2-1
* New upstream bugfix release:
  - Correct Makefile to fix when building with GTK+-3.4.
  - Reworked pkg-config handling to respect $(PKG_CONFIG) in Makefile.
  - Add additional error checking on connection of new devices, to hopefully
    avoid seg-fault with some very problematic devices. Ubuntu bugs:
    LP: #917314 LP: #948621 LP: #968798 LP: #995503
  - Fix issue with some Android 3.2 implementations and GetStorage() MTP API
    function. (Uses cached information, rather than full item rescan in some
    instances). (Closes: #667795)
  - Correct German Translations. (Closes: #672298)
  - Fix FLAC file handling.
* Update debian/copyright.
* Bump Standards.
* Drop 0001-missing_linker_flag.patch, applied upstream.
* Enable harden'd compilation.
* Add 0002-format_security.patch to prevent build failure with the flag
  '-Werror=format-security' enabled.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 *
3
3
 *   File: callbacks.c
4
4
 *
5
 
 *   Copyright (C) 2009-2011 Darran Kartaschew
 
5
 *   Copyright (C) 2009-2012 Darran Kartaschew
6
6
 *
7
7
 *   This file is part of the gMTP package.
8
8
 *
1202
1202
 * @param user_data
1203
1203
 */
1204
1204
void on_editFindClose_activate(GtkMenuItem *menuitem, gpointer user_data) {
 
1205
    gchar* tmp_string;
 
1206
 
1205
1207
    gtk_widget_hide(findToolbar);
1206
1208
    if (Preferences.view_folders == TRUE) {
1207
1209
        gtk_widget_show(scrolledwindowFolders);
1209
1211
    fileListClear();
1210
1212
    inFindMode = FALSE;
1211
1213
    gtk_tree_view_column_set_visible(column_Location, FALSE);
1212
 
    deviceRescan();
 
1214
 
 
1215
    // First we clear the file and folder list...
 
1216
    fileListClear();
 
1217
    folderListClear();
 
1218
    // Refresh the file listings.
 
1219
    fileListAdd();
 
1220
    folderListAdd(deviceFolders, NULL);
 
1221
 
 
1222
    // Update the status bar.
 
1223
    if (DeviceMgr.storagedeviceID == MTP_DEVICE_SINGLE_STORAGE) {
 
1224
        tmp_string = g_strdup_printf(_("Connected to %s - %d MB free"), DeviceMgr.devicename->str,
 
1225
                (int) (DeviceMgr.devicestorage->FreeSpaceInBytes / MEGABYTE));
 
1226
    } else {
 
1227
        if (DeviceMgr.devicestorage->StorageDescription != NULL) {
 
1228
            tmp_string = g_strdup_printf(_("Connected to %s (%s) - %d MB free"), DeviceMgr.devicename->str,
 
1229
                    DeviceMgr.devicestorage->StorageDescription,
 
1230
                    (int) (DeviceMgr.devicestorage->FreeSpaceInBytes / MEGABYTE));
 
1231
        } else {
 
1232
            tmp_string = g_strdup_printf(_("Connected to %s - %d MB free"), DeviceMgr.devicename->str,
 
1233
                    (int) (DeviceMgr.devicestorage->FreeSpaceInBytes / MEGABYTE));
 
1234
        }
 
1235
    }
 
1236
    statusBarSet(tmp_string);
 
1237
    g_free(tmp_string);
 
1238
 
1213
1239
    // Now clear the Search GList;
1214
1240
    if (searchList != NULL) {
1215
1241
        g_slist_foreach(searchList, (GFunc) g_free_search, NULL);