• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/transmission/transmission-2.73/gtk/

Lines Matching refs:data

23 #define DATA_KEY "gtr-relocate-data"
40 struct relocate_dialog_data * data = gdata;
41 g_slist_free( data->torrent_ids );
42 g_free( data );
50 startMovingNextTorrent( struct relocate_dialog_data * data )
53 const int id = GPOINTER_TO_INT( data->torrent_ids->data );
55 tr_torrent * tor = gtr_core_find_torrent( data->core, id );
57 tr_torrentSetLocation( tor, previousLocation, data->do_move, NULL, &data->done );
59 data->torrent_ids = g_slist_delete_link( data->torrent_ids,
60 data->torrent_ids );
63 gtk_message_dialog_set_markup( GTK_MESSAGE_DIALOG( data->message_dialog ), str );
72 struct relocate_dialog_data * data = gdata;
73 const int done = data->done;
79 GtkWidget * w = gtk_message_dialog_new( GTK_WINDOW( data->message_dialog ),
86 gtk_widget_destroy( GTK_WIDGET( data->message_dialog ) );
91 if( data->torrent_ids != NULL )
93 startMovingNextTorrent( data );
97 gtk_widget_destroy( GTK_WIDGET( data->chooser_dialog ) );
112 struct relocate_dialog_data * data = g_object_get_data( d, DATA_KEY );
117 data->do_move = gtk_toggle_button_get_active( move_tb );
134 data->message_dialog = w;
135 data->done = TR_LOC_DONE;
136 onTimer( data );
137 gdk_threads_add_timeout_seconds( 1, onTimer, data );
154 struct relocate_dialog_data * data;
183 w = gtk_radio_button_new_with_mnemonic_from_widget( GTK_RADIO_BUTTON( w ), _( "Local data is _already there" ) );
187 data = g_new0( struct relocate_dialog_data, 1 );
188 data->core = core;
189 data->torrent_ids = torrent_ids;
190 data->chooser_dialog = d;
191 g_object_set_data_full( G_OBJECT( d ), DATA_KEY, data, data_free );