xzgv  0.9.1
About: A picture viewer for X, with a thumbnail-based file selector (uses GTK+ and Imlib).
  Fossies Dox: xzgv-0.9.1.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
copymove.c File Reference
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <utime.h>
#include <errno.h>
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
#include "backend.h"
#include "main.h"
#include "copymove.h"
Include dependency graph for copymove.c:

Go to the source code of this file.

Macros

#define TRANSFER_BUF_SIZE   8192
#define DO_TBL_LEFT(table, row, name)
#define DO_TBL_RIGHT(table, row, name)

Functions

int copyfile (const char *src, const char *dstdir)
int movefile (const char *src, const char *dstdir)
int ok_for_copymove (void)
void cm_copymove_gotdir (const char *destdir)
void cb_copymove_file_or_tagged_files (int do_move)

Macro Definition Documentation

#define DO_TBL_LEFT (   table,
  row,
  name 
)
Value:
label=gtk_label_new(name); \
gtk_misc_set_alignment(GTK_MISC(label),1.,0.5); \
gtk_table_attach_defaults(GTK_TABLE(table),label, 0,1, (row),(row)+1); \
gtk_widget_show(label)

Referenced by cb_copymove_file_or_tagged_files(), cb_goto_dir(), cb_rename_file(), and make_details_win().

#define DO_TBL_RIGHT (   table,
  row,
  name 
)
Value:
label=gtk_label_new(name); \
gtk_misc_set_alignment(GTK_MISC(label),0.,0.5); \
gtk_table_attach_defaults(GTK_TABLE(table),label, 1,3, (row),(row)+1); \
gtk_widget_show(label)

Referenced by cb_copymove_file_or_tagged_files(), cb_goto_dir(), cb_rename_file(), and make_details_win().

#define TRANSFER_BUF_SIZE   8192

Definition at line 25 of file copymove.c.

Referenced by copyfile().


Function Documentation

void cb_copymove_file_or_tagged_files ( int  do_move)

Definition at line 421 of file copymove.c.

References DO_TBL_LEFT, DO_TBL_RIGHT, error_dialog(), mainwin_accel_group, and ok_for_copymove().

Referenced by cb_copy_files(), and cb_move_files().

void cm_copymove_gotdir ( const char *  destdir)
int copyfile ( const char *  src,
const char *  dstdir 
)

Definition at line 48 of file copymove.c.

References NULL, and TRANSFER_BUF_SIZE.

Referenced by cm_copymove_gotdir(), and movefile().

int movefile ( const char *  src,
const char *  dstdir 
)

Definition at line 112 of file copymove.c.

References copyfile(), and NULL.

Referenced by cm_copymove_gotdir().

int ok_for_copymove ( void  )

Definition at line 208 of file copymove.c.

References clist, get_tagged_state(), clist_data_tag::isdir, and numrows.

Referenced by cb_copymove_file_or_tagged_files().