Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

downloads_cb.c File Reference

#include "gtk/gui.h"
#include "gtk/downloads.h"
#include "gtk/downloads_common.h"
#include "gtk/statusbar.h"
#include "gtk/gtk-missing.h"
#include "gtk/search.h"
#include "downloads_cb.h"
#include "if/bridge/ui2c.h"
#include "if/core/sockets.h"
#include "if/gui_property_priv.h"
#include "lib/override.h"

Functions

 RCSID ("$Id:downloads_cb.c, v 1.12 2005/11/21 21:16:25 rmanfredi Exp $")
void show_removed (guint removed)
 Informs the user about the number of removed downloads.

void on_ctree_downloads_tree_select_row (GtkCTree *ctree, GList *node, gint unused_column, gpointer unused_udata)
void on_ctree_downloads_tree_unselect_row (GtkCTree *ctree, GList *node, gint column, gpointer user_data)
void on_ctree_downloads_resize_column (GtkCList *unused_clist, gint column, gint width, gpointer unused_udata)
gboolean on_ctree_downloads_button_press_event (GtkWidget *widget, GdkEventButton *event, gpointer unused_udata)
gboolean on_ctree_downloads_button_release_event (GtkWidget *unused_widget, GdkEventButton *unused_event, gpointer unused_data)
void on_popup_downloads_push_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 All selected downloads fallback to push.

void browse_host_selected (GtkCTree *ctree)
 Initiate a "browse host" on the selection in the given tree.

void on_popup_downloads_browse_host_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 Initiates a browse host request to the currently selected host.

void on_popup_queue_browse_host_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 Initiates a browse host request to the currently selected host.

void on_popup_downloads_abort_named_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 Abort all downloads with names identical to any of the selected downloads.

void on_popup_downloads_abort_host_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 Abort all downloads with hosts identical to any of the selected downloads.

void on_popup_downloads_abort_sha1_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 Abort all downloads with sha1s identical to any of the selected downloads.

void on_popup_downloads_remove_file_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 Remove all downloads selected.

void on_popup_downloads_queue_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 Move all selected downloads back to queue.

void on_popup_downloads_copy_url_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
void on_popup_downloads_connect_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
void on_popup_queue_start_now_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
void on_popup_queue_abort_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
void on_popup_queue_abort_named_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
void on_popup_queue_abort_host_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
void on_popup_queue_abort_sha1_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
void on_popup_queue_copy_url_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
void on_popup_queue_connect_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
gboolean on_ctree_downloads_queue_button_release_event (GtkWidget *unused_widget, GdkEventButton *unused_event, gpointer unused_data)
void on_button_downloads_abort_clicked (GtkButton *unused_button, gpointer unused_udata)
 For all selected active downloads, forget them.

void on_button_downloads_resume_clicked (GtkButton *unused_button, gpointer unused_udata)
void on_ctree_downloads_queue_tree_select_row (GtkCTree *ctree, GList *node, gint unused_column, gpointer unused_udata)
void on_ctree_downloads_queue_tree_unselect_row (GtkCTree *ctree, GList *node, gint column, gpointer user_data)
void on_entry_queue_regex_activate (GtkEditable *editable, gpointer unused_udata)
gboolean on_ctree_downloads_queue_button_press_event (GtkWidget *widget, GdkEventButton *event, gpointer unused_udata)
void on_ctree_downloads_queue_resize_column (GtkCList *unused_clist, gint column, gint width, gpointer unused_udata)
void on_ctree_downloads_queue_drag_begin (GtkWidget *unused_widget, GdkDragContext *unused_drag_context, gpointer unused_udata)
void on_ctree_downloads_queue_drag_end (GtkWidget *unused_widget, GdkDragContext *unused_drag_context, gpointer unused_udata)
void on_popup_downloads_expand_all_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 Expands all parent nodes.

void on_popup_downloads_collapse_all_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 Collapses all parent nodes.

void on_popup_queue_expand_all_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 Expands all parent nodes.

void on_popup_queue_collapse_all_activate (GtkMenuItem *unused_menuitem, gpointer unused_udata)
 Collapses all parent nodes.

void on_popup_downloads_selection_get (GtkWidget *unused_widget, GtkSelectionData *data, guint unused_info, guint unused_eventtime, gpointer unused_udata)
 Make the current selected URL the selection data.

gint on_popup_downloads_selection_clear_event (GtkWidget *unused_widget, GdkEventSelection *unused_event)
 Frees the string holding current selected URL if any.


Variables

gchar * selected_url = NULL
gboolean refresh_on_release = FALSE


Function Documentation

void browse_host_selected GtkCTree *  ctree  )  [static]
 

Initiate a "browse host" on the selection in the given tree.

void on_button_downloads_abort_clicked GtkButton *  unused_button,
gpointer  unused_udata
 

For all selected active downloads, forget them.

This doubles as the callback for the abort option on the popup menu.

void on_button_downloads_resume_clicked GtkButton *  unused_button,
gpointer  unused_udata
 

gboolean on_ctree_downloads_button_press_event GtkWidget *  widget,
GdkEventButton *  event,
gpointer  unused_udata
 

gboolean on_ctree_downloads_button_release_event GtkWidget *  unused_widget,
GdkEventButton *  unused_event,
gpointer  unused_data
 

gboolean on_ctree_downloads_queue_button_press_event GtkWidget *  widget,
GdkEventButton *  event,
gpointer  unused_udata
 

gboolean on_ctree_downloads_queue_button_release_event GtkWidget *  unused_widget,
GdkEventButton *  unused_event,
gpointer  unused_data
 

void on_ctree_downloads_queue_drag_begin GtkWidget *  unused_widget,
GdkDragContext *  unused_drag_context,
gpointer  unused_udata
 

void on_ctree_downloads_queue_drag_end GtkWidget *  unused_widget,
GdkDragContext *  unused_drag_context,
gpointer  unused_udata
 

void on_ctree_downloads_queue_resize_column GtkCList *  unused_clist,
gint  column,
gint  width,
gpointer  unused_udata
 

void on_ctree_downloads_queue_tree_select_row GtkCTree *  ctree,
GList *  node,
gint  unused_column,
gpointer  unused_udata
 

void on_ctree_downloads_queue_tree_unselect_row GtkCTree *  ctree,
GList *  node,
gint  column,
gpointer  user_data
 

void on_ctree_downloads_resize_column GtkCList *  unused_clist,
gint  column,
gint  width,
gpointer  unused_udata
 

void on_ctree_downloads_tree_select_row GtkCTree *  ctree,
GList *  node,
gint  unused_column,
gpointer  unused_udata
 

void on_ctree_downloads_tree_unselect_row GtkCTree *  ctree,
GList *  node,
gint  column,
gpointer  user_data
 

void on_entry_queue_regex_activate GtkEditable *  editable,
gpointer  unused_udata
 

void on_popup_downloads_abort_host_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

Abort all downloads with hosts identical to any of the selected downloads.

void on_popup_downloads_abort_named_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

Abort all downloads with names identical to any of the selected downloads.

void on_popup_downloads_abort_sha1_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

Abort all downloads with sha1s identical to any of the selected downloads.

void on_popup_downloads_browse_host_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

Initiates a browse host request to the currently selected host.

void on_popup_downloads_collapse_all_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

Collapses all parent nodes.

void on_popup_downloads_connect_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

void on_popup_downloads_copy_url_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

void on_popup_downloads_expand_all_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

Expands all parent nodes.

void on_popup_downloads_push_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

All selected downloads fallback to push.

void on_popup_downloads_queue_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

Move all selected downloads back to queue.

void on_popup_downloads_remove_file_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

Remove all downloads selected.

gint on_popup_downloads_selection_clear_event GtkWidget *  unused_widget,
GdkEventSelection *  unused_event
 

Frees the string holding current selected URL if any.

void on_popup_downloads_selection_get GtkWidget *  unused_widget,
GtkSelectionData *  data,
guint  unused_info,
guint  unused_eventtime,
gpointer  unused_udata
 

Make the current selected URL the selection data.

void on_popup_queue_abort_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

void on_popup_queue_abort_host_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

void on_popup_queue_abort_named_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

void on_popup_queue_abort_sha1_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

void on_popup_queue_browse_host_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

Initiates a browse host request to the currently selected host.

void on_popup_queue_collapse_all_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

Collapses all parent nodes.

void on_popup_queue_connect_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

void on_popup_queue_copy_url_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

void on_popup_queue_expand_all_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

Expands all parent nodes.

void on_popup_queue_start_now_activate GtkMenuItem *  unused_menuitem,
gpointer  unused_udata
 

RCSID "$Id:downloads_cb.  c,
v 1.12 2005/11/21 21:16:25 rmanfredi Exp $" 
 

void show_removed guint  removed  )  [static]
 

Informs the user about the number of removed downloads.

Parameters:
removed amount of removed downloads.


Variable Documentation

gboolean refresh_on_release = FALSE [static]
 

gchar* selected_url = NULL [static]
 


Generated on Sun Feb 12 10:50:00 2006 for Gtk-Gnutella by doxygen 1.3.6